Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to mkdocs #346

Draft
wants to merge 85 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
5855705
Move to mkdocs
ItsDrike Aug 1, 2024
1a46a23
Add mike for mkdocs versioning
ItsDrike Aug 2, 2024
05652da
Add changelog fragment for 346
ItsDrike Aug 2, 2024
b17c312
Split off the installation page to its own tab
ItsDrike Aug 2, 2024
936dc21
Add changelog file (incomplete)
ItsDrike Aug 2, 2024
371927e
Add code of conduct and license pages
ItsDrike Aug 2, 2024
2863450
Include changelog.md
ItsDrike Aug 2, 2024
fe8541a
Add attribution page to docs
ItsDrike Aug 2, 2024
1046a92
Add bug reporting instructions
ItsDrike Aug 2, 2024
47cc0b3
Use new link to code of conduct docs
ItsDrike Aug 2, 2024
d706f14
Add next steps section to reporting_a_bug page
ItsDrike Aug 2, 2024
6e40d5c
Add making_a_pr.md & template for contributing guides
ItsDrike Aug 2, 2024
a306fa8
Multiple minor fixes in the version guarantees page
ItsDrike Aug 2, 2024
1a32320
Add work-in-progress notices
ItsDrike Aug 2, 2024
835f3db
Fix docs url for code-of-conduct
ItsDrike Aug 2, 2024
ffba25e
Use dashes instead of underscores in file names
ItsDrike Aug 4, 2024
363c907
Improve directory structure of docs/
ItsDrike Aug 4, 2024
b692426
Add contributing guidelines index page
ItsDrike Aug 4, 2024
676f435
Add project setup instructions
ItsDrike Aug 4, 2024
ae5ffd0
Add note about skipping issues for minor tasks
ItsDrike Aug 4, 2024
45d4b38
Add the golden rules of contributing
ItsDrike Aug 4, 2024
b5c582a
Note about skipping guide pages
ItsDrike Aug 4, 2024
8a9a047
Add assumptions setup guide makes
ItsDrike Aug 4, 2024
9cc87be
Add style guide
ItsDrike Aug 4, 2024
bd11105
Add docstrings & other-tools (blank) pages
ItsDrike Aug 4, 2024
4c52ba8
Add the PEP8 song!
ItsDrike Aug 4, 2024
4465d89
Remove wip banner from style guide
ItsDrike Aug 4, 2024
495410f
Update licence 3rd party
ItsDrike Aug 4, 2024
aa4147c
Mention using an existing fork for new contributions
ItsDrike Aug 4, 2024
b9d64c3
Explain CI & code reviews
ItsDrike Aug 4, 2024
d3fcbd3
Add type hints page
ItsDrike Aug 4, 2024
8419d90
Update installation commands
ItsDrike Aug 5, 2024
3963508
Use markdown-exec to dynamically run python code in docs
ItsDrike Aug 5, 2024
953fcfb
Update changelog & change fragments to render properly
ItsDrike Aug 5, 2024
b184130
Watch some external files for reloading docs
ItsDrike Aug 5, 2024
a66ad3f
Fetch the entire git history for mkdocs workflow
ItsDrike Aug 5, 2024
ff21bbc
Add towncrier to docs dependencies
ItsDrike Aug 5, 2024
85031a2
Fix reference
ItsDrike Aug 5, 2024
de07bef
Add changelog explanation
ItsDrike Aug 5, 2024
e499bf7
Fix reference to git-pull
ItsDrike Aug 5, 2024
82dc9c4
Add some todos
ItsDrike Aug 5, 2024
48f4425
Fix some typos in the docs
ItsDrike Aug 6, 2024
314b15f
License the docs itself under CC BY-NC-SA 4.0
ItsDrike Aug 6, 2024
866b0c6
Add great commits guide
ItsDrike Aug 7, 2024
444fbee
Remove license from coc (docs now have global cc license)
ItsDrike Aug 8, 2024
0f2dbd3
Add tip about skipping internal changelog changes
ItsDrike Aug 8, 2024
75e8c32
Add section for running basedpyright from cli
ItsDrike Aug 8, 2024
beb6d32
Add pre-commit docs
ItsDrike Aug 9, 2024
762bfa5
Add slotscheck page
ItsDrike Aug 9, 2024
7e778fa
Update docs taskipy task to use mkdocs
ItsDrike Aug 9, 2024
fe9defc
Add link to slotscheck config docs
ItsDrike Aug 23, 2024
0d53599
Add API reference (with mkdocstrings)
ItsDrike Oct 18, 2024
bc4cc91
Add authentication usage guide
ItsDrike Oct 18, 2024
fb0cc8a
Improve wording in coc
ItsDrike Oct 20, 2024
f0cdfb4
Properly show all private members
ItsDrike Oct 22, 2024
86f824b
Add private api docs for packets
ItsDrike Oct 22, 2024
d25424c
Add notice for pending rewrite of packets docs
ItsDrike Oct 22, 2024
1e1356f
Show the buffer class properly
ItsDrike Oct 22, 2024
70f6eba
Remove unnecessary indent from exaple code in docs
ItsDrike Oct 22, 2024
d18a187
Add copyright notice to footer
ItsDrike Oct 22, 2024
9840a3f
Add custom css for mkdocstrings
ItsDrike Oct 22, 2024
f0070d5
Add extra css styles for material theme
ItsDrike Oct 22, 2024
04a06d6
Add custom important admodition
ItsDrike Oct 24, 2024
1c923fd
Write breaking changes & deprecations guide
ItsDrike Oct 24, 2024
7f416a7
Add wip documentation guide
ItsDrike Oct 24, 2024
4803fe1
Use important block for code quality requiements
ItsDrike Oct 24, 2024
c341155
Use tip block for guide skipping paragraph
ItsDrike Oct 24, 2024
700b869
Explain the versioning model of mcproto
ItsDrike Oct 24, 2024
bfc21d1
Update the ordering of some contributing guides
ItsDrike Oct 24, 2024
479d821
Move usage guides from readme to docs
ItsDrike Oct 26, 2024
8d36d6a
Mention which packages will/won't get deprecated explicitly
ItsDrike Oct 26, 2024
dbf4332
Fix various typos and wording
ItsDrike Oct 26, 2024
f1fe42e
Add FAQ page
ItsDrike Jan 8, 2025
a600f28
Add security policy
ItsDrike Jan 8, 2025
835b444
Remove private api reference docs
ItsDrike Feb 2, 2025
aba88ae
Add documentation writing docs
ItsDrike Feb 2, 2025
3736484
Add a docstring formatting directive (google)
ItsDrike Feb 2, 2025
ff7fa2d
Format mkdocs.yml
ItsDrike Feb 5, 2025
2916edf
Improve docstrings guide
ItsDrike Feb 5, 2025
d8a434d
Move to mkdocstrings-python-xref
ItsDrike Feb 5, 2025
36bef40
Add missing abstract for documentation.md
ItsDrike Feb 5, 2025
5689952
Update the api reference docs
ItsDrike Feb 5, 2025
6c2bf17
Fix abstract in api reference
ItsDrike Feb 5, 2025
c85c6ec
Improve wording of to code-of-conduct
ItsDrike Feb 5, 2025
74819ae
Downgrade mkdocs-autorefs
ItsDrike Feb 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update the api reference docs
  • Loading branch information
ItsDrike committed Feb 5, 2025
commit 5689952f5443268a34d3449eef44a5da59a2111f
Original file line number Diff line number Diff line change
@@ -2,7 +2,14 @@

This page is still being written. The content below (if any) may change.

# Docstrings and API reference
# API reference

???+ abstract

This page contains the guide on documenting the code that will appear in the API reference section of this
documentation. It goes over the technology and libraries that we use to generate this API reference docs, details the
docstring style we use, mentions how to add something into the API reference (like new modules) and details what
should and shouldn't be documented here.

As was already briefly mentioned in the [documentation](./documentation.md) section, we're using
[mkdocstrings](https://mkdocstrings.github.io/), which is an extension of `mkdocs` that is able to automatically
@@ -170,6 +177,8 @@ document something from the docs directly, rather than just from docstrings.
Rather than rewriting what's already really well explained, we'll instead just point you towards the [mkdocstrings
documentation](https://mkdocstrings.github.io/usage/).

## What to document

Finally, before including something into the docs, make sure it makes sense as a part of your Public API. When deciding
this, you might find this [Griffe
guide](https://mkdocstrings.github.io/griffe/guide/users/recommendations/public-apis/) to be helpful.
2 changes: 1 addition & 1 deletion docs/contributing/guides/documentation.md
Original file line number Diff line number Diff line change
@@ -25,4 +25,4 @@ some more life to the docs, but aren't something that you'd need to work with al
it out though, so that you know what's available.

Finally, for generating our API reference page, we're using [mkdocstrings](https://mkdocstrings.github.io/). More on
that in the [docstrings and reference](./docstrings-and-reference.md) guide though.
that in the [API reference](./api-reference.md) guide though.
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ nav:
- Breaking Changes: contributing/guides/breaking-changes.md
- Unit Tests: contributing/guides/unit-tests.md
- Documentation: contributing/guides/documentation.md
- Docstrings and API Reference: contributing/guides/docstrings-and-reference.md
- API Reference: contributing/guides/api-reference.md
- Great commits: contributing/guides/great-commits.md
- API Reference:
- Protocol: reference/protocol.md