Gempyor sphinx documentation#550
Conversation
when will I remember to do this the first time through...
|
Question for the group, if I can direct your attention to the index.rst file that helps to configure I have explicitly specified the submodules of Either method requires that we update the .rst file if we add a file that we want documentation on (in the former), or add a file that we don't want documentation on (in the latter). This is pretty nit picky, but I'm trying to make this as dynamic as possible! |
Change job to ignore `build/` directory changes
|
Presently the workflow I implemented runs
|
Switch to CI auto-creating and committing `Sphinx` docs
Making push compatible (not just PR)
…kinsIDD/flepiMoP into gempyor-sphinx-documentation
TimothyWillard
left a comment
There was a problem hiding this comment.
Looks good to me, added one change related to a warning produced by sphinx because it's an easy fix. Other warnings come from docstrings which should be addressed in follow ups.
I think the first follow up to this should be addressing the gempyor.config_validator module, seems like a helpful reference but as is results in an import error so it's hard to keep in its current state.
Co-authored-by: Timothy Willard <9395586+TimothyWillard@users.noreply.github.com>
pearsonca
left a comment
There was a problem hiding this comment.
Seems fine generally, but one question: seems like many of the .rst files are automatically generated / generate-able.
if so, do they belong in the repository?
Meaning, you think the .rst files should be in the |
If they are generated by the build process, and would change whenever we, say, add a function to a module - then yeah, i think the should be .gitignore'd. Basically, if they are a derived product, then they should be ignored so we don't see multiple files changing due to only one real change. |
Add all .rst files to `.gitignore`, make `gempyor` submodule documentation more general, remove unnecessary `BRANCH_NAME` constant
Describe your changes.
This pull request contains the framework for generating
Sphinxdocumentation, autosummaries, etc. for thegempyorAPI (all of its modules except for the ones we wouldn't want public-facing documentation for). It also adds a job in thegempyor-ciGH workflow that fails if users have made changes to thegempyorcodebase and not re-generated the Sphinx docs since doing so.Addressing the downfield: (likely for other PRs)
gempyorsubmodules (to be of higher quality). Presently, all those documented withSphinxhave one-sentence blurbs, but many have nothing more than that.Sphinxdocumentation (e.g., remove extraneous blurbs, remove certain funcs. etc.)Does this pull request make any user interface changes? If so please describe.
Devs can run
make fullbuildin theflepiMoP/flepimop/gempyor_pkg/docsdirectory to generate/re-generateSphinxdocumentation.What does your pull request address? Tag relevant issues.
This pull request addresses GH #458
Tag relevant team members.
@pearsonca @TimothyWillard