Skip to content

Switch Python API reference to Quarto #640

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

Merged
merged 72 commits into from
Mar 20, 2025

Conversation

nrichers
Copy link
Collaborator

@nrichers nrichers commented Jan 30, 2025

Internal notes for reviewers

This PR replaces the pdoc-generated Python HTML docs with Quarto Markdown source, which is rendered alongside the rest of the site: Live preview

Relates to: validmind/validmind-library#306

Before After
image image

Modified files

  • site/Makefile — Updated make python-docs to handle the new Quarto docs
  • site/_quarto.yml — Updated to use the new QMD source and removed the post-render action for Python docs
  • python-docs.zip (DELETED) — No longer needed with the new Quarto source

Bonus: make clone now accepts a branch for PR testing.

New files and folders

Do not review here, post comments to [#306]( validmind/validmind-library#306:

  • site/validmind/README.md — How the Quarto Markdown gets generated
  • site/validmind/_metadata.yml — Configuration for Python API content
  • site/validmind/_sidebar.yml — Generated sidebar for Python docs
  • site/validmind/validmind.css — Styling for the API docs
  • site/validmind/validmind.qmd, site/validmind/validmind/** — Generated API documentation matching the codebase and pdoc structure

Notes on reviewing

site/validmind/

Do not review the Quarto Markdown files here. If you see issues, review them in the PR that generates them: validmind/validmind-library#306

The Quarto Markdown files are a drop-in replacements with only minor differences.

quarto preview

Important: If you test this PR locally, delete the site/_site folder first to remove outdated Python HTML files.

(This step is unnecessary when running quarto render, which removes old HTML output automatically.)

Makefile

To test how the Quarto Markdown source files get from the validmind-library repo into this one:

gh pr checkout 640
make clean
make clone BRANCH=nrichers/sc-4660/python-api-with-quarto
make python-docs

You should see the site/validmind/ folder disappearing and reappearing with the new source files.

External release notes

This release introduces a completely redesigned Python API reference using Quarto instead of the previous HTML-generated docs. The new ValidMind Library documentation features improved navigation with a familiar sidebar, enhanced code signature styling, and integration with our main docs site search.

The documentation structure mirrors the Python package layout, ensuring backward compatibility with our old Python API reference while providing a more maintainable and reader-friendly experience.

ValidMind Library

@nrichers nrichers added DO NOT MERGE PR is not ready to be merged internal Not to be externalized in the release notes labels Jan 30, 2025
@nrichers nrichers changed the title Add Quarto Python Docs — IN PROGRESS [DEMO] Add Quarto Python Docs — IN PROGRESS Jan 31, 2025
@nrichers nrichers changed the title [DEMO] Add Quarto Python Docs — IN PROGRESS [DEMO] Quarto Python Docs — IN PROGRESS Jan 31, 2025
Copy link
Contributor

A PR preview is available: Preview URL

Copy link
Contributor

A PR preview is available: Preview URL

Copy link
Contributor

A PR preview is available: Preview URL

Copy link
Contributor

github-actions bot commented Mar 5, 2025

A PR preview is available: Preview URL

Copy link
Contributor

github-actions bot commented Mar 5, 2025

A PR preview is available: Preview URL

Copy link
Contributor

github-actions bot commented Mar 5, 2025

A PR preview is available: Preview URL

Copy link
Contributor

github-actions bot commented Mar 5, 2025

A PR preview is available: Preview URL

@validbeck validbeck self-requested a review March 6, 2025 00:39
Copy link
Contributor

github-actions bot commented Mar 6, 2025

A PR preview is available: Preview URL

Copy link
Contributor

github-actions bot commented Mar 6, 2025

A PR preview is available: Preview URL

Copy link
Collaborator

@validbeck validbeck left a comment

Choose a reason for hiding this comment

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

Since we did have to go with the zero-width whitespace as a workaround, can we please leave a comment on the variable file for future reference? 🙏🏻 (I would do it, but I think I'm still not understanding the root cause of the issue as I wasn't the one that investigated it...)

Otherwise, there was a broken link when we changed the .html to .qmd that I fixed — we linked to the full docs site URL instead of the relative root /validmind folder so that was expected.

Copy link
Contributor

github-actions bot commented Mar 6, 2025

A PR preview is available: Preview URL

Copy link
Contributor

github-actions bot commented Mar 6, 2025

A PR preview is available: Preview URL

@validbeck validbeck self-requested a review March 6, 2025 23:36
Copy link
Collaborator

@validbeck validbeck left a comment

Choose a reason for hiding this comment

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

One last suggestion (my bad for missing it the 1st few rounds) but I think we're ready! 🚀

Copy link
Contributor

github-actions bot commented Mar 7, 2025

A PR preview is available: Preview URL

Co-authored-by: Beck <164545837+validbeck@users.noreply.github.com>
Copy link
Contributor

A PR preview is available: Preview URL

Copy link
Contributor

A PR preview is available: Preview URL

@nrichers nrichers merged commit f5e5f31 into main Mar 20, 2025
2 of 3 checks passed
@nrichers nrichers deleted the nrichers/sc-4660/python-api-with-quarto branch March 20, 2025 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation highlight Feature to be curated in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants