This repository was archived by the owner on Jul 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 143
Create new documentation page #1166
Merged
mtreinish
merged 26 commits into
Qiskit:master
from
Guillermo-Mijares-Vilarino:create-doc-page
May 11, 2023
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
15099f3
Change rtd theme to qiskit_sphinx_theme
Guillermo-Mijares-Vilarino 299736a
Add tutorials and GitHub to sidebar and use nbsphinx
Guillermo-Mijares-Vilarino ea7ad26
Create deploy_documentation.sh
Guillermo-Mijares-Vilarino 0b33d53
Add docs deployment workflow
Guillermo-Mijares-Vilarino 02ef4b4
add pandoc to docs CI
Guillermo-Mijares-Vilarino 75e2fd0
add toxinidir to gettext paths
Guillermo-Mijares-Vilarino be791bc
Fix copyright dates
Guillermo-Mijares-Vilarino 0305773
Added deprecation warning from metapackage
Guillermo-Mijares-Vilarino 75b69c6
Revert changes
Guillermo-Mijares-Vilarino 97f5483
Add pandoc to docs push test
Guillermo-Mijares-Vilarino cfd1437
Fix deploy-docs.yml
Guillermo-Mijares-Vilarino c21f4c1
Fix workflow file
Guillermo-Mijares-Vilarino 243fc06
fix workflow file
Guillermo-Mijares-Vilarino 005a456
move docs build to deploy_documentation.sh
Guillermo-Mijares-Vilarino 044fd4c
rclone.conf.enc
1ucian0 27becf3
Add Documentation Home to toctree
Guillermo-Mijares-Vilarino c64bbac
Remove deployment to qiskit.org/documentation
Guillermo-Mijares-Vilarino 125ffb8
remove comments from tutorial index
Guillermo-Mijares-Vilarino e7910b6
Fix copyright date
Guillermo-Mijares-Vilarino b8ffe79
Removed earliest_version from docs deployment workflow
Guillermo-Mijares-Vilarino 204f02c
Apply suggestions from code review
Guillermo-Mijares-Vilarino 3aace7c
add sphinxcontrib.jquery to extensions
Guillermo-Mijares-Vilarino 3c19b14
remove extra os import
Guillermo-Mijares-Vilarino abeb9d7
Group datetime import with the rest
Guillermo-Mijares-Vilarino 9fc47e6
Add .doctrees directory for cached files
Guillermo-Mijares-Vilarino 2827f40
Merge branch 'master' into create-doc-page
mtreinish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,52 @@ | ||
| # This code is part of Qiskit. | ||
| # | ||
| # (C) Copyright IBM 2023. | ||
| # | ||
| # This code is licensed under the Apache License, Version 2.0. You may | ||
| # obtain a copy of this license in the LICENSE.txt file in the root directory | ||
| # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
| # | ||
| # Any modifications or derivative works of this code must retain this | ||
| # copyright notice, and modified files need to carry a notice indicating | ||
| # that they have been altered from the originals. | ||
|
|
||
| name: Deploy Docs | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - "*" | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.repository }}-${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| docs_publish: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: [3.8] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install Dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -U virtualenv setuptools wheel tox | ||
| sudo apt-get install -y graphviz pandoc | ||
| shell: bash | ||
| - name: Build and publish | ||
| env: | ||
| encrypted_rclone_key: ${{ secrets.encrypted_rclone_key }} | ||
| encrypted_rclone_iv: ${{ secrets.encrypted_rclone_iv }} | ||
| QISKIT_PARALLEL: False | ||
| QISKIT_DOCS_BUILD_TUTORIALS: 'always' | ||
| run: | | ||
| tools/deploy_documentation.sh | ||
| shell: bash |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -106,3 +106,4 @@ Qconfig.py | |
| .DS_Store | ||
|
|
||
| /docs/stubs/ | ||
| /docs/.doctrees/ | ||
This file contains hidden or 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 hidden or 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 hidden or 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,9 @@ | ||
| ############################# | ||
| Qiskit IBM Provider Tutorials | ||
| ############################# | ||
|
|
||
|
|
||
| .. nbgallery:: | ||
|
|
||
| 1_the_ibmq_account | ||
| 2_jupyter_tools |
This file contains hidden or 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,3 @@ | ||
| --- | ||
| encoding: utf8 | ||
| default_branch: master |
This file contains hidden or 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 hidden or 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,32 @@ | ||
| #!/bin/bash | ||
|
|
||
| # This code is part of Qiskit. | ||
| # | ||
| # (C) Copyright IBM 2023. | ||
| # | ||
| # This code is licensed under the Apache License, Version 2.0. You may | ||
| # obtain a copy of this license in the LICENSE.txt file in the root directory | ||
| # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
| # | ||
| # Any modifications or derivative works of this code must retain this | ||
| # copyright notice, and modified files need to carry a notice indicating | ||
| # that they have been altered from the originals. | ||
|
|
||
| # Script for pushing the documentation to qiskit.org/ecosystem. | ||
| set -e | ||
|
|
||
| curl https://downloads.rclone.org/rclone-current-linux-amd64.deb -o rclone.deb | ||
| sudo apt-get install -y ./rclone.deb | ||
|
|
||
| RCLONE_CONFIG_PATH=$(rclone config file | tail -1) | ||
|
|
||
| # Build the documentation. | ||
| tox -edocs | ||
|
|
||
| echo "show current dir: " | ||
| pwd | ||
|
|
||
| # Push to qiskit.org/ecosystem | ||
| openssl aes-256-cbc -K $encrypted_rclone_key -iv $encrypted_rclone_iv -in tools/rclone.conf.enc -out $RCLONE_CONFIG_PATH -d | ||
| echo "Pushing built docs to qiskit.org/ecosystem" | ||
| rclone sync --progress ./docs/_build/html IBMCOS:qiskit-org-web-resources/ecosystem/ibmq-provider |
Binary file not shown.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.