-
Notifications
You must be signed in to change notification settings - Fork 909
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
Revamp and simplify Sphinx documentation process #2454
Comments
First revamp happened in gh-2459. Pending:
Then some low priority stuff:
|
Marking this a parent ticket for #2459 |
Maybe you meant some other issue? (That one is the PR we merged last week) |
Note to self: |
Another note to self: |
Conclusion: it won't be possible to cleanly migrate to statically building our API docs without significant breakage (or redirects toil), significant coding efforts, or both. I'm abandoning that effort for now (keeping in mind for our upcoming discussions on #2072). @stichbury do you still want to keep this as a parent issue of gh-2483 and gh-2394? I think those two are not so much about the process (assuming unchanged outputs, as we did with gh-2459), but more about the outputs themselves (URLs, and look & feel). |
Agreed, let's close this and keep those issues separate, not children of this one. |
Lately we've been having some hiccups with the docs (kedro-org/kedro-plugins#134, #2451, #2453) which are difficult to fix because building the full documentation locally without warnings is nearly impossible. In gh-2452 I ended up disabling the strict mode on Read the Docs to try to come back to these with more calm.
The amount of non-standard customization we're doing on our
docs/conf.py
is quite large. Parts of that are necessary (like installingkedro-datasets
to a custom location until 0.19 is released, see gh-2006, gh-1651) but we should try to keep it to the minimum.And finally, we are using a really old version of Sphinx, which prevents us from profiting from recent quality of life improvements, like sphinx-doc/sphinx#9481 and sphinx-doc/sphinx#7989.
Without the need of boiling the ocean, and in the broader context of gh-2025, I think we should:
kedro/docs/conf.py
Lines 354 to 359 in c144b87
kedro/docs/conf.py
Lines 496 to 507 in c144b87
One more thing that could greatly improve the process, but that need some investigation, is moving away from
sphinx.ext.autosummary
and use eithersphinx-autoapi
orsphinx-autodoc2
instead (probably the latter, since it can generate Markdown). The reason is thatautosummary
needs to import the code, and therefore all the dependencies of allkedro-datasets
need to be installed. On the other hand,autoapi
andautodoc2
use static analysis, and therefore don't need any of the dependencies installed.The text was updated successfully, but these errors were encountered: