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

docs: basic API reference docs #128

Merged
merged 5 commits into from
Jul 9, 2024

Conversation

tonyandrewmeyer
Copy link
Collaborator

@tonyandrewmeyer tonyandrewmeyer commented May 24, 2024

This adds a tox -e docs command that will generate a local set of API reference documentation with Sphinx, modelled on the ops API reference docs (in turn based on the Canonical docs starter pack). There's also a tox -e docs-deps command to regenerate the requirements file for generating the docs.

The docs are not pushed anywhere, but can be opened locally (from the docs/_build folder that is generated). Most likely, once we have the installation story complete, they'll be found on ops.readthedocs.io. For now, this provides a way to compare the API in main and the 7.0 branch (once this is also merged to there).

The new files are all from the starter pack, with customisations only in custom_conf.py.

A few docstrings are added/adjusted, but in general it seems like it would be better to do that in the 7.0 branch to avoid double-work.

@tonyandrewmeyer tonyandrewmeyer marked this pull request as ready for review July 9, 2024 22:18
@tonyandrewmeyer tonyandrewmeyer merged commit c2253b7 into canonical:main Jul 9, 2024
2 checks passed
@tonyandrewmeyer tonyandrewmeyer deleted the rtd-docs branch July 9, 2024 23:06
tonyandrewmeyer added a commit to tonyandrewmeyer/ops-scenario that referenced this pull request Jul 9, 2024
* Bump required ops version to 2.12 to get CloudSpec/CloudCredential.

* Bump version.

* Add generation of API reference documentation.

* Remove the jujulogline doc, which doesn't work correctly, and confuses the linter, which thinks it's the module docstring.

* Handle ops caching the content.
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.

1 participant