-
Notifications
You must be signed in to change notification settings - Fork 81
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
Add autodocs boilerplate #1108
Add autodocs boilerplate #1108
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1108 +/- ##
=======================================
Coverage 95.45% 95.45%
=======================================
Files 54 54
Lines 4733 4733
Branches 836 836
=======================================
Hits 4518 4518
Misses 132 132
Partials 83 83
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also just in general would be great to have this generated in a container so it's reproducible on all machines
This patch adds the initial setup if the Python Sphinx Autodocs. We use autosummary extension to generate recursively the tree of all modules, classes and functions. Then we additionally add two pages (actions.rst and pkgmanager.rst) to show the possibility to add custom content to the autogenerated documentation. To build the docs you need python3-sphinx python3-sphinx-autodoc-typehints installed on the environment (via dnf or pip)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it works for you I don't mind merging it. I can figure out the Container later
This patch adds autodocs skeleton without adding any automation to generate the docs.
Checklist
[RHELC-]
is part of the PR titleRelease Pending
if relevant