Skip to content

Commit 9b95e6a

Browse files
SunsetWolfyou-n-g
andauthored
docs: add badge & Github button & issue template (microsoft#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 <you-n-g@users.noreply.github.com>
1 parent 64e9a8e commit 9b95e6a

File tree

7 files changed

+93
-5
lines changed

7 files changed

+93
-5
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: "\U0001F41B Bug Report"
3+
about: Submit a bug report to help us improve RD-Agent
4+
labels: bug
5+
6+
---
7+
8+
## 🐛 Bug Description
9+
10+
<!-- A clear and concise description of what the bug is. -->
11+
12+
## To Reproduce
13+
14+
Steps to reproduce the behavior:
15+
16+
1.
17+
2.
18+
3.
19+
20+
21+
## Expected Behavior
22+
23+
<!-- A clear and concise description of what you expected to happen. -->
24+
25+
## Screenshot
26+
27+
<!-- A screenshot of the error message or anything shouldn't appear-->
28+
29+
## Environment
30+
<!-- TODO: We may provide a more automatic way to get the information -->
31+
- RD-Agent version:
32+
- Python version:
33+
- OS: Linux
34+
- Commit number (optional, please provide it if you are using the dev version):
35+
36+
## Additional Notes
37+
38+
<!-- Add any other information about the problem here. -->
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: "\U0001F4D6 Documentation"
3+
about: Report an issue related to documentation
4+
5+
---
6+
7+
## 📖 Documentation
8+
9+
<!-- Please specify whether it's tutorial part or API reference part, and describe it.-->
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: "\U0001F31FFeature Request"
3+
about: Request for a new RD-Agent feature
4+
labels: enhancement
5+
6+
---
7+
8+
## 🌟 Feature Description
9+
<!-- A clear and concise description of the feature proposal -->
10+
11+
## Motivation
12+
13+
1. Application scenario
14+
2. Related works (Papers, Github repos etc.):
15+
3. Any other relevant and important information:
16+
17+
<!-- Please describe why the feature is important. -->
18+
19+
## Alternatives
20+
21+
<!-- A short description of any alternative solutions or features you've considered. -->
22+
23+
## Additional Notes
24+
25+
<!-- Add any other context or screenshots about the feature request here. -->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: "❓Questions & Help"
3+
about: Have some questions? We can offer help.
4+
labels: question
5+
6+
---
7+
8+
## ❓ Questions and Help
9+
10+
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.

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@
66
[![Release.yml](https://github.com/microsoft/RD-Agent/actions/workflows/release.yml/badge.svg)](https://github.com/microsoft/RD-Agent/actions/workflows/release.yml)
77
[![PyPI](https://img.shields.io/pypi/v/rdagent)](https://pypi.org/project/rdagent/)
88
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/rdagent)](https://pypi.org/project/rdagent/)
9+
[![Release](https://img.shields.io/github/v/release/microsoft/RD-Agent)](https://github.com/microsoft/RD-Agent/releases)
10+
[![GitHub](https://img.shields.io/github/license/microsoft/RD-Agent)](https://github.com/microsoft/RD-Agent/blob/main/LICENSE)
911
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
1012
[![Checked with mypy](https://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
1113
[![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)
12-
<!-- [![Release](https://img.shields.io/github/v/release/microsoft/RD-Agent)](https://github.com/microsoft/RD-Agent/releases) -->
13-
<!-- [![GitHub](https://img.shields.io/github/license/microsoft/RD-Agent)](https://github.com/microsoft/RD-Agent/blob/main/LICENSE) -->
14-
15-
<!-- Comment badge to wait until the project is publicly available. -->
1614

1715
# 📰 News
1816
| 🗞️ News | 📝 Description |

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
autodoc_member_order = "bysource"
2323

2424
# The suffix of source filenames.
25-
source_suffix = ".rst"
25+
source_suffix = {".rst": "restructuredtext"}
2626

2727
# The encoding of source files.
2828
source_encoding = "utf-8"
@@ -62,3 +62,9 @@
6262
html_theme = "default"
6363

6464
html_static_path = ["_static"]
65+
66+
html_theme_options = {
67+
"source_repository": "https://github.com/microsoft/RD-Agent",
68+
"source_branch": "main",
69+
"source_directory": "docs/",
70+
}

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Welcome to RDAgent's documentation!
2020
api_reference
2121
policy
2222

23+
GitHub <https://github.com/microsoft/RD-Agent>
24+
2325

2426
Indices and tables
2527
==================

0 commit comments

Comments
 (0)