Rework docs structure#2308
Merged
Merged
Conversation
| theme: | ||
| name: 'material' | ||
| features: | ||
| - navigation.sections |
Contributor
There was a problem hiding this comment.
- What change does this feature effect?
- Where would I find this documented?
Contributor
Author
There was a problem hiding this comment.
This allows showing navigation sections as always-unfolded, instead of foldable groupings as is the default in mkdocs.
This is here: https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-sections
Contributor
Author
There was a problem hiding this comment.
Is this clarification enough or are there any changes to the code you'd think worthy?
lovelydinosaur
approved these changes
Jul 18, 2022
c91ea74 to
d95df67
Compare
d95df67 to
7d6d989
Compare
Contributor
Author
|
Let’s merge then! :-) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

I didn't raise a discussion about this, but this PR also serves as a hands-on proposal. Happy to discuss separately if need be.
This PR restructures the documentation in four well-visible sections:
Open for text version
This takes inspiration from the 4-part Tutorials/How-To's/Discussions/Reference theorised by Daniele Procida (see What nobody tells you about documentation (talk)).
It doesn't exactly match that structure -- e.g. I don't think we've got something resembling "discussions" yet, although stuff like #207 would be potential candidates.
But we do have different kinds of documentation in HTTPX already. The motivation here was to group them to help people find what they're looking for more easily.
So, each section answers the following questions:
The only shuffling of content I had to do was split the "Exceptions" docs across Quickstart vs. API Reference, as it mixed general usage hints and reference material. This matches how there's a Exceptions and errors section in the Requests quickstart documentation, and then an Exceptions section on its API Reference page.