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

Nen Sack voll documentation improvements #82

Closed
wants to merge 28 commits into from
Closed

Nen Sack voll documentation improvements #82

wants to merge 28 commits into from

Conversation

funkyfuture
Copy link
Contributor

@funkyfuture funkyfuture commented Dec 24, 2023

a great way to procrastinate implementing important parts is to finally overhaul the docs.

mainly triggered by autoclasstoc being essential imo (iits functionality) and kaputt. i also finally ruled out the sphinx-immaterial theme which is more incomplete than one might think. and as i found autodocsumm as replacement for autoclasstoc which is seemingly coded clean enough to adapt to future Sphinx changes i could opt for furo, hossa!

this is left to do:

  • rebase on main after Removes deprecated code #80 was merged
  • adapt docstrings' :meta category: tags, e.g. add-nodes -> Adding nodes
  • add a textual textual to objects that rely on obvious names and annotations so far
  • include Filter, NodeBase, NodeSource and _TagDefinition into the API docs with an explanatory prose, but no members
  • include an autodoc event handler that filters out tuple methods from NamedTuple subclasses, eg. xpath.EvaluationContext
  • investigate whether class member overviews can be ordered, if not create a feature request and take a note
  • figure with which commit the docstring of utils.get_traverser vanished, analyze the error and fix it
  • [ ] i'd love to create prettier tree visualizations for the Design document but haven't found anything suitable that processes text input yet postponed
  • fix broken hyperlinks

@funkyfuture
Copy link
Contributor Author

funkyfuture commented Dec 24, 2023

note that a preview is best obtained from a local webserver, reading over file: creates issues with subsequent resource loads. there's just serve-docs to achieve that now.

the :meta category: docstring tags are kept though until there's no hope
for a re-use left.
thus it replaces autoclasstoc.

the actual categories still need to be adjusted in the docstrings, but
this is deferred to simplify rebasing upon a currently unmerged PR.
Unless its contents grow, it should eventually be dissolved.
this adds the sphinx-design extension to the zoo.
and renames showdocs to show-docs
as a result unnecessary intersphinx prefixes are removed.
that's collision prone, but i don't assume further included inventories
and name collisions with Python are a no-no.
the latter shall be in that order:
- descriptive summary
- fields
- prose
It was motivated to create targets for then hyperlinking type
annotations in the API docs. Turns out the second part doesn't work yet.
I assume that better practices around type documentation will evolve.
And it's still a usable reference that ranks high in searches.
@JKatzwinkel
Copy link
Contributor

shouldnt readthedocs be instructed to use a more recent python version?

.readthedocs.yaml Outdated Show resolved Hide resolved
@JKatzwinkel
Copy link
Contributor

i still would love to go through these properly, as it has been years since the last time i used sphinx. i'll approve regardlesz so you this doesnt collect dust while i try to get around to doing that.

@funkyfuture
Copy link
Contributor Author

i merged the changes here and new graphics for the design chapter manually.

@funkyfuture funkyfuture deleted the docs branch March 24, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants