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

Extend documentation #10

Merged
merged 6 commits into from
Nov 15, 2024
Merged

Extend documentation #10

merged 6 commits into from
Nov 15, 2024

Conversation

RalfG
Copy link
Contributor

@RalfG RalfG commented Dec 8, 2023

This PR extends the mzpaf.readthedocs.io website with documentation for the LARK grammar, JSON Schema, regular expressions.

For some sections in the documentation, the Sphinx conf.py script automatically generates some markdown files from JSON files, and copies the railroad diagram. No GitHub actions are required for this, as this code runs on docs-generation at readthedocs.io.

The version of the documentation from this branch can be viewed on https://mzpaf.readthedocs.io/en/add-sphinx-docs/.

Edit 11/11/2024: This PR was updated to add upon the existing documentation.

@RalfG RalfG added the documentation Improvements or additions to documentation label Dec 8, 2023
@RalfG RalfG changed the title Add sphinx documentation Extend documentation Nov 11, 2024
@RalfG RalfG requested review from edeutsch and mobiusklein and removed request for edeutsch November 11, 2024 13:53
@@ -7,6 +7,8 @@ Python API
:imported-members:


.. manually documented as parse_annotation is undocumented
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll add a cross-reference to the manual documentation here:

:meth:`AnnotationStringParser.__call__`

The autodoc sees that it is a function and pulls the signature from AnnotationStringParser.__call__, but nothing else.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely following here, but feel free to update

docs/_static/img/lark-railroad-diagram.svg Outdated Show resolved Hide resolved
@RalfG RalfG merged commit 237bc25 into main Nov 15, 2024
12 checks passed
@RalfG RalfG deleted the add-sphinx-docs branch November 15, 2024 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants