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

Build conceptual and API docs with Sphinx #30

Merged
merged 28 commits into from
Jan 13, 2022
Merged

Conversation

cgranade
Copy link
Contributor

@cgranade cgranade commented Jan 4, 2022

This PR adds support for building conceptual and API documentation using Sphinx, and for publishing the resulting documentation as a build artifact and to GitHub Pages. In particular, this PR focuses on setting up infrastructure and publishing pipelines for docs, but there's significant work remaining to make sure that API docs have complete coverage.

This PR is progress towards, but does not completely fix #28.

@cgranade cgranade requested a review from idavis January 4, 2022 19:24
.github/workflows/ci.yml Outdated Show resolved Hide resolved
pyqir-jit/src/lib.rs Outdated Show resolved Hide resolved
docs/Makefile Show resolved Hide resolved
docs/apiref/parser.md Outdated Show resolved Hide resolved
docs/apiref/generator.md Outdated Show resolved Hide resolved
eng/psakefile.ps1 Outdated Show resolved Hide resolved
cgranade and others added 5 commits January 6, 2022 16:50
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
eng/psakefile.ps1 Outdated Show resolved Hide resolved
@cgranade
Copy link
Contributor Author

@samarsha: Thanks for the review, Sarah! We should be good to merge soon, I think.

Looking into markdownlint and link checking in more detail, it seems two of the errors were actual errors caused by using ordinary links instead of Sphinx-aware links, while the rest were due to false positives (DavidAnson/markdownlint#479 for upstream feature request). There may be a workaround for the false positives, will take a few minutes to try that out.

@cgranade
Copy link
Contributor Author

@samarsha: To fix the CI warnings, I wound up having to fix the missing config files for markdownlint and cspell. I realize you approved, but the PR has changed a bit since then thanks to the CI issues; if you'd like to take another look, please let me know and I'll hold off on merging. Thanks!

eng/psakefile.ps1 Outdated Show resolved Hide resolved
eng/psakefile.ps1 Outdated Show resolved Hide resolved
Cassandra Granade and others added 2 commits January 13, 2022 09:20
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
Co-authored-by: Sarah Marshall <33814365+samarsha@users.noreply.github.com>
@cgranade cgranade enabled auto-merge (squash) January 13, 2022 17:21
@cgranade cgranade merged commit cdea4a1 into main Jan 13, 2022
@cgranade cgranade deleted the cgranade/sphinx-docs branch January 13, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate API Documentation
2 participants