summaryrefslogtreecommitdiffstats
path: root/docs/README.md
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-12-06 21:20:27 +0400
committerGravatar GitHub <[email protected]>2021-12-06 21:20:27 +0400
commitcfe4d495f7e9581fe58576cdf5e5dd9a490e52ed (patch)
treea3919899b8adbbed5822d40e2ab7dacfa084ab9c /docs/README.md
parentMerge pull request #1 from python-discord/mbaruh/setup (diff)
parentMove Doc Dependencies Into Dev Section (diff)
Merge pull request #2 from python-discord/docs-buildv1.1.0
Documentation
Diffstat (limited to 'docs/README.md')
-rw-r--r--docs/README.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/docs/README.md b/docs/README.md
new file mode 100644
index 00000000..06c5a739
--- /dev/null
+++ b/docs/README.md
@@ -0,0 +1,45 @@
+# Docs
+Meta information about this project's documentation.
+
+Table of contents:
+- [Building the docs](#Building)
+- [Writing docstrings](#Docstrings)
+- [Writing a changelog](#Changelog)
+
+
+## Building
+To build the docs, you can use the following task:
+```shell
+poetry run task docs
+```
+
+The output will be in the [`/docs/build`](.) directory.
+
+Additionally, there are two helper tasks: `apidoc` and `builddoc`.
+`apidoc` is responsible for calling autodoc and generating docs from docstrings.
+`builddoc` generates the HTML site, and should be called after apidoc.
+
+Neither of these two tasks needs to be manually called, as the `docs` task calls both.
+
+
+## Docstrings
+To have your code properly added to the generated docs, you need to do a couple of things:
+1. Write your code with annotations.
+2. [Write your docstring, using the Google docstring format][google]
+
+Refer to the [sphinx documentation][docstring-sections] for more information.
+
+
+[google]: https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
+[docstring-sections]: https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html#docstring-sections
+
+
+## Changelog
+Each change requires an entry in the [Changelog](./changelog.rst).
+
+Refer to the [Releases][releases] documentation for more information on the exact format and content of entries
+You can use [this site][releases] to get the PR number you'll use for your entry.
+
+
+[next]: https://ichard26.github.io/next-pr-number/?owner=python-discord&name=bot-core
+[releases]: https://releases.readthedocs.io/en/latest/concepts.html