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

Replace Python SDK docs with vanilla Sphinx + Read the Docs theme #10279

Merged
merged 6 commits into from
Dec 15, 2023

Conversation

justinvp
Copy link
Member

@justinvp justinvp commented Nov 18, 2023

This PR replaces our custom Sphinx-based tool for generating core Python SDK docs with standard docs generated from Sphinx using the Read the Docs theme.

Screen Shot 2023-12-15 at 7 32 46 AM

Note: I've changed the left nav's "SDK docs" under Python to open in a new tab, similar to .NET (and Go and Java), since the new Python docs have a different style/layout from the rest of the site. This requires pulumi/pulumi-hugo#3754 to actually make it open in a new tab.

Screen Shot 2023-12-15 at 7 30 39 AM

Another note: There is more cleanup and adjustments to be made in the docstrings in https://github.com/pulumi/pulumi/tree/master/sdk/python/lib/pulumi to further improve the styling/formatting of the content in some cases. But that can be done subsequently and will automatically be updated in the site as newer releases of the pulumi PyPi package are released.

Fixes #4615
Fixes #5047
Fixes #6426
Fixes #7000
Fixes #10154
Fixes #10161
Fixes pulumi/pulumi-hugo#434

There's no longer a need for the pydocgen tool to drive running sphinx. We can run sphinx-build directly from `scripts/generate_python_docs.sh`.
And add `.doctrees/` and `.buildinfo` to `.gitignore`
`#pulumi-python-sdk` no longer exists (by design).
This makes it consistent with .NET (and Go and Java). A small change in `pulumi/pulumi-hugo` is also needed to make this work.
Copy link
Contributor

@cnunciato cnunciato left a comment

Choose a reason for hiding this comment

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

🏆 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants