-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc(quil-py): Publish documentation to https://rigetti.github.io/quil-rs
(#314)
- quil-rs/v0.30.1
- quil-rs/v0.30.1-rc.0
- quil-rs/v0.30.0
- quil-rs/v0.30.0-rc.2
- quil-rs/v0.30.0-rc.1
- quil-rs/v0.30.0-rc.0
- quil-rs/v0.29.3-rc.0
- quil-rs/v0.29.2
- quil-rs/v0.29.2-rc.2
- quil-rs/v0.29.2-rc.1
- quil-rs/v0.29.2-rc.0
- quil-rs/v0.29.1
- quil-rs/v0.29.1-rc.0
- quil-rs/v0.29.0
- quil-rs/v0.29.0-rc.3
- quil-rs/v0.29.0-rc.2
- quil-rs/v0.29.0-rc.1
- quil-rs/v0.29.0-rc.0
- quil-rs/v0.28.1
- quil-rs/v0.28.1-rc.1
- quil-rs/v0.28.1-rc.0
- quil-rs/v0.28.0
- quil-rs/v0.28.0-rc.0
- quil-rs/v0.27.3
- quil-rs/v0.27.3-rc.0
- quil-rs/v0.27.2
- quil-rs/v0.27.2-rc.0
- quil-rs/v0.27.1
- quil-rs/v0.27.1-rc.0
- quil-rs/v0.27.0
- quil-rs/v0.27.0-rc.1
- quil-rs/v0.27.0-rc.0
- quil-rs/v0.26.2-rc.0
- quil-rs/v0.26.1
- quil-rs/v0.26.1-rc.1
- quil-rs/v0.26.1-rc.0
- quil-rs/v0.26.0
- quil-rs/v0.26.0-rc.0
- quil-rs/v0.25.1
- quil-rs/v0.25.1-rc.0
- quil-rs/v0.25.0
- quil-rs/v0.25.0-rc.0
- quil-rs/v0.24.1-rc.0
- quil-rs/v0.24.0
- quil-rs/v0.24.0-rc.0
- quil-rs/v0.23.0
- quil-rs/v0.23.0-rc.1
- quil-rs/v0.23.0-rc.0
- quil-rs/v0.22.6
- quil-rs/v0.22.6-rc.0
- quil-rs/v0.22.5
- quil-rs/v0.22.5-rc.0
- quil-rs/v0.22.4
- quil-rs/v0.22.4-rc.0
- quil-rs/v0.22.3
- quil-rs/v0.22.3-rc.1
- quil-rs/v0.22.3-rc.0
- quil-py/v0.15.3
- quil-py/v0.15.3-rc.0
- quil-py/v0.15.2
- quil-py/v0.15.2-rc.0
- quil-py/v0.15.1
- quil-py/v0.15.1-rc.0
- quil-py/v0.15.0
- quil-py/v0.15.0-rc.0
- quil-py/v0.14.0
- quil-py/v0.14.0-rc.2
- quil-py/v0.14.0-rc.1
- quil-py/v0.14.0-rc.0
- quil-py/v0.13.3-rc.1
- quil-py/v0.13.3-rc.0
- quil-py/v0.13.2
- quil-py/v0.13.2-rc.2
- quil-py/v0.13.2-rc.1
- quil-py/v0.13.2-rc.0
- quil-py/v0.13.1
- quil-py/v0.13.1-rc.0
- quil-py/v0.13.0
- quil-py/v0.13.0-rc.3
- quil-py/v0.13.0-rc.2
- quil-py/v0.13.0-rc.1
- quil-py/v0.13.0-rc.0
- quil-py/v0.12.2-rc.0
- quil-py/v0.12.1
- quil-py/v0.12.1-rc.1
- quil-py/v0.12.1-rc.0
- quil-py/v0.12.0
- quil-py/v0.12.0-rc.0
- quil-py/v0.11.4
- quil-py/v0.11.4-rc.0
- quil-py/v0.11.3
- quil-py/v0.11.3-rc.0
- quil-py/v0.11.2
- quil-py/v0.11.2-rc.0
- quil-py/v0.11.1
- quil-py/v0.11.1-rc.0
- quil-py/v0.11.0
- quil-py/v0.11.0-rc.1
- quil-py/v0.11.0-rc.0
- quil-py/v0.10.2-rc.0
- quil-py/v0.10.1
- quil-py/v0.10.1-rc.1
- quil-py/v0.10.1-rc.0
- quil-py/v0.10.0
- quil-py/v0.10.0-rc.0
- quil-py/v0.9.1
- quil-py/v0.9.1-rc.0
- quil-py/v0.9.0
- quil-py/v0.9.0-rc.0
- quil-py/v0.8.1-rc.0
- quil-py/v0.8.0
- quil-py/v0.8.0-rc.0
- quil-py/v0.7.1
- quil-py/v0.7.1-rc.0
- quil-py/v0.7.0
- quil-py/v0.7.0-rc.1
- quil-py/v0.7.0-rc.0
- quil-py/v0.6.6
- quil-py/v0.6.6-rc.0
- quil-py/v0.6.5
- quil-py/v0.6.5-rc.0
- quil-py/v0.6.4
- quil-py/v0.6.4-rc.0
- quil-py/v0.6.3
- quil-py/v0.6.3-rc.1
- quil-py/v0.6.3-rc.0
- quil-cli/v0.7.1
- quil-cli/v0.7.1-rc.0
- quil-cli/v0.7.0
- quil-cli/v0.7.0-rc.2
- quil-cli/v0.7.0-rc.1
- quil-cli/v0.7.0-rc.0
- quil-cli/v0.6.3-rc.0
- quil-cli/v0.6.2
- quil-cli/v0.6.2-rc.2
- quil-cli/v0.6.2-rc.1
- quil-cli/v0.6.2-rc.0
- quil-cli/v0.6.1
- quil-cli/v0.6.1-rc.0
- quil-cli/v0.6.0
- quil-cli/v0.6.0-rc.3
- quil-cli/v0.6.0-rc.2
- quil-cli/v0.6.0-rc.1
- quil-cli/v0.6.0-rc.0
- quil-cli/v0.5.1
- quil-cli/v0.5.1-rc.1
- quil-cli/v0.5.1-rc.0
- quil-cli/v0.5.0
- quil-cli/v0.5.0-rc.0
- quil-cli/v0.4.3
- quil-cli/v0.4.3-rc.0
- quil-cli/v0.4.2
- quil-cli/v0.4.2-rc.0
- quil-cli/v0.4.1
- quil-cli/v0.4.1-rc.0
- quil-cli/v0.4.0
- quil-cli/v0.4.0-rc.1
- quil-cli/v0.4.0-rc.0
- quil-cli/v0.3.2-rc.0
- quil-cli/v0.3.1
- quil-cli/v0.3.1-rc.1
- quil-cli/v0.3.1-rc.0
- quil-cli/v0.3.0
- quil-cli/v0.3.0-rc.0
- quil-cli/v0.2.1
- quil-cli/v0.2.1-rc.0
- quil-cli/v0.2.0
- quil-cli/v0.2.0-rc.1
- quil-cli/v0.2.0-rc.0
- quil-cli/v0.1.1-rc.0
- quil-cli/v0.1.0
- quil-cli/v0.1.0-rc.0
Showing
23 changed files
with
1,194 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish quil-py documentation | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- closed | ||
|
||
jobs: | ||
publish-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install poetry | ||
uses: snok/install-poetry@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Install cargo-make | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: --debug cargo-make | ||
- name: Build quil-py documentation | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: make | ||
args: --cwd quil-py --makefile Makefile.toml docs | ||
- name: Deploy preview | ||
if: ${{ github.event_name == 'pull_request' }} | ||
uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
source-dir: quil-py/build/docs | ||
preview-branch: quil-py-docs | ||
- name: Deploy docs | ||
if: ${{ github.event_name == 'push' }} | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: quil-py/build/docs | ||
publish_branch: quil-py-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,8 @@ node_modules | |
# Python artifacts | ||
*.so | ||
__pycache__ | ||
**./.null-ls-cache* | ||
|
||
# quil-py documentation | ||
quil-py/build | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from pathlib import Path | ||
import sys | ||
|
||
import pdoc | ||
|
||
import quil # noqa - we need to import quil for it to appear in sys.modules | ||
|
||
|
||
if __name__ == "__main__": | ||
print(dir(sys.modules["quil"])) | ||
print(dir(sys.modules["quil.validation"])) | ||
print([k for k in sys.modules.keys() if "quil" in k]) | ||
del sys.modules["quil.validation"] | ||
|
||
pdoc.pdoc("quil", "!quil.quil", output_directory=Path("docs")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="refresh" content="0; url=./quil.html"/> | ||
</head> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
""" | ||
The `quil` package provides tools for constructing, manipulating, parsing, and printing [Quil](https://github.com/quil-lang/quil) programs. | ||
⚠️ This package is still in early development and breaking changes should be expected between minor versions. | ||
""" | ||
from .quil import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from quil.expression import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
""" | ||
The `quil.instructions` module contains classes for representing Quil instructions. | ||
""" | ||
from quil.instructions import * |
Oops, something went wrong.