From 9b95e6a051caf2873b9f723f93082d8a76f9cfa3 Mon Sep 17 00:00:00 2001 From: Linlang <30293408+SunsetWolf@users.noreply.github.com> Date: Mon, 26 Aug 2024 15:14:28 +0800 Subject: [PATCH] docs: add badge & Github button & issue template (#208) * add badge & add Github button * add issue template * reformat with black * fix issue template error * add edit on github button * fix issue template * change conf.py * Update .github/ISSUE_TEMPLATE/bug-report.md --------- Co-authored-by: you-n-g --- .github/ISSUE_TEMPLATE/bug-report.md | 38 +++++++++++++++++++++++ .github/ISSUE_TEMPLATE/documentation.md | 9 ++++++ .github/ISSUE_TEMPLATE/feature-request.md | 25 +++++++++++++++ .github/ISSUE_TEMPLATE/question.md | 10 ++++++ README.md | 6 ++-- docs/conf.py | 8 ++++- docs/index.rst | 2 ++ 7 files changed, 93 insertions(+), 5 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug-report.md create mode 100644 .github/ISSUE_TEMPLATE/documentation.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request.md create mode 100644 .github/ISSUE_TEMPLATE/question.md diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 000000000..5a5808dac --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,38 @@ +--- +name: "\U0001F41B Bug Report" +about: Submit a bug report to help us improve RD-Agent +labels: bug + +--- + +## πŸ› Bug Description + + + +## To Reproduce + +Steps to reproduce the behavior: + +1. +2. +3. + + +## Expected Behavior + + + +## Screenshot + + + +## Environment + + - RD-Agent version: + - Python version: + - OS: Linux + - Commit number (optional, please provide it if you are using the dev version): + +## Additional Notes + + diff --git a/.github/ISSUE_TEMPLATE/documentation.md b/.github/ISSUE_TEMPLATE/documentation.md new file mode 100644 index 000000000..96c70e5af --- /dev/null +++ b/.github/ISSUE_TEMPLATE/documentation.md @@ -0,0 +1,9 @@ +--- +name: "\U0001F4D6 Documentation" +about: Report an issue related to documentation + +--- + +## πŸ“– Documentation + + diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 000000000..ef2397380 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,25 @@ +--- +name: "\U0001F31FFeature Request" +about: Request for a new RD-Agent feature +labels: enhancement + +--- + +## 🌟 Feature Description + + +## Motivation + +1. Application scenario +2. Related works (Papers, Github repos etc.): +3. Any other relevant and important information: + + + +## Alternatives + + + +## Additional Notes + + diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md new file mode 100644 index 000000000..4b92da909 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.md @@ -0,0 +1,10 @@ +--- +name: "❓Questions & Help" +about: Have some questions? We can offer help. +labels: question + +--- + +## ❓ Questions and Help + +We sincerely suggest you to carefully read the [documentation](http://rdagent.readthedocs.io/). After that, if you still feel puzzled, please describe the question clearly under this issue. diff --git a/README.md b/README.md index 4389aa159..959b8ae4d 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,11 @@ [![Release.yml](https://github.com/microsoft/RD-Agent/actions/workflows/release.yml/badge.svg)](https://github.com/microsoft/RD-Agent/actions/workflows/release.yml) [![PyPI](https://img.shields.io/pypi/v/rdagent)](https://pypi.org/project/rdagent/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/rdagent)](https://pypi.org/project/rdagent/) +[![Release](https://img.shields.io/github/v/release/microsoft/RD-Agent)](https://github.com/microsoft/RD-Agent/releases) +[![GitHub](https://img.shields.io/github/license/microsoft/RD-Agent)](https://github.com/microsoft/RD-Agent/blob/main/LICENSE) [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit) [![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/) [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff) - - - - # πŸ“° News | πŸ—žοΈ News | πŸ“ Description | diff --git a/docs/conf.py b/docs/conf.py index ebe1378c3..4e8e069ee 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -22,7 +22,7 @@ autodoc_member_order = "bysource" # The suffix of source filenames. -source_suffix = ".rst" +source_suffix = {".rst": "restructuredtext"} # The encoding of source files. source_encoding = "utf-8" @@ -62,3 +62,9 @@ html_theme = "default" html_static_path = ["_static"] + +html_theme_options = { + "source_repository": "https://github.com/microsoft/RD-Agent", + "source_branch": "main", + "source_directory": "docs/", +} diff --git a/docs/index.rst b/docs/index.rst index d29eae501..69f6d00d3 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -20,6 +20,8 @@ Welcome to RDAgent's documentation! api_reference policy + GitHub + Indices and tables ==================