Documentation repository for quantum-computing
This repo has a lot of automation set up. Follow these steps to update and build content:
- Make all changes to the
source
branch. - Push commits to the
source
branch. No need to create pull requests. - Sit and wait for the preview (draft) version of the documentation to be built here: https://test.cloud.ibm.com/docs/quantum-computing
- Every time a commit is made, a PR is automatically made, called "Next publish push". Merge this PR to push all changes to the production branch.
- Sit and wait for the production version of the documentation to be built here: https://cloud.ibm.com/docs/quantum-computing
In order to appear in the table of contents, add all new files to TOC.yaml, following the patterns that are already in place. Refer to the cloud TOC documentation if you want to do anything tricky: https://test.cloud.ibm.com/docs/writing?topic=writing-code-nav
We can use tags to control what information shows up where. In general (and in these instructions), we use it to add draft content that we don't want to go live, even when other updates go live.
- The tag needs to be added to the feature-flags.json file. "Location" specifies where the output goes. In this example, the content will show up in the test environment but will NOT show up in the production environment. For example:
{
"name": "migration",
"location": "draft"
},
- Add this tag to any content that you add, in the TOC and around any new content. It can be around the whole file, just a few paragraphs, items in the Table of Contents, etc. For example:
Content
- Check in the changes to the
source
branch as you normally would.