Go to file
Eric Arellano b36e5df762 Regenerate Qiskit documentation (#210)
Even though the API version is the same, this brings in a bunch of
spelling improvements from @abbycross.

It also seems to fix https://github.com/Qiskit/documentation/issues/135!
2023-10-19 17:20:07 -04:00
.github Link checker update (#204) 2023-10-19 15:51:58 +01:00
docs Regenerate Qiskit documentation (#210) 2023-10-19 17:20:07 -04:00
public/images Update qiskit-ibm-provider to 0.7.1 (#202) 2023-10-19 08:30:35 -04:00
qiskit-docs Merge branch 'main' into fix-git-history-tutorials 2023-10-10 09:34:54 -04:00
scripts Fixing straggler broken links (#206) 2023-10-19 14:36:32 -04:00
.gitignore Ignore notebook checkpoints (#158) 2023-10-12 18:10:26 +01:00
CODE_OF_CONDUCT.md update readme (#127) 2023-10-16 11:13:31 -04:00
Dockerfile Switch local preview to public Docker image (#150) 2023-10-11 16:28:15 -04:00
LICENSE Initial commit 2023-09-06 20:07:39 +02:00
README.md Link checker update (#204) 2023-10-19 15:51:58 +01:00
cSpell.json Convert Endianness how to from RST to MDX (#165) 2023-10-13 08:52:07 -04:00
jest.config.js Add Jest and Sphinx parsing library (#61) 2023-09-29 09:33:32 -04:00
package-lock.json Fixing straggler broken links (#206) 2023-10-19 14:36:32 -04:00
package.json Fixing straggler broken links (#206) 2023-10-19 14:36:32 -04:00
start Switch local preview to public Docker image (#150) 2023-10-11 16:28:15 -04:00
tsconfig.json Add Jest and Sphinx parsing library (#61) 2023-09-29 09:33:32 -04:00

README.md

Qiskit docs

The documentation content home for https://docs.quantum-computing.ibm.com. Note this repo does not contain content for https://learning.quantum-computing.ibm.com/ or https://qiskit.org. Refer to https://github.com/Qiskit/qiskit to make changes to the docs at https://qiskit.org/documentation.

Improving IBM Quantum & Qiskit Documentation

Maintaining up-to-date documentation is a huge challenge for any software project, especially in a field like quantum computing where the pace at which advances in new research and technological capabilities happen incredibly fast. As a result, we greatly appreciate any who take the time to support us in keeping this content accurate and up to the highest quality standard possible to benefit the broadest range of users.

Read on for more information about how to support this project:

Best ways to contribute to Documentation

1. Report bugs, inaccuracies or general content issues

This is the quickest, easiest, and most helpful way to contribute to this project and improve the quality of Qiskit and IBM Quantum documentation. There are a few different ways to report issues, depending on where it was found:

  • For problems you've found in the Qiskit API Reference section, open an issue in the Qiskit repo here.
  • For problems you've found in the Qiskit Runtime IBM Client section, open an issue in the Qiskit IBM Runtime repo here.
  • For problems you've found in any other section of docs, open a content bug issue here.

2. Suggest new content

If you think there are gaps in our documentation, or sections that could be expanded upon, we invite you to open a new content request issue here.

Not every new content suggestion is a good fit for docs, nor are we able to prioritize every request immediately. However, we will do our best to respond to content requests in a timely manner, and we greatly appreciate our community's efforts in generating new ideas.

If you are interested in writing the new content yourself, or already have some draft work you think could be integrated, please also mention that in the issue description. If your content suggestion is accepted, we will let you know and work with you to get the content written and reviewed.

Please note: we DO NOT accept unsolicited PRs for new pages or large updates to existing content. The content that we include in docs is carefully planned and curated by our content team and must go through the appropriate review process to ensure the quality is of the highest possible standard before deploying to production. As a result we are very selective with which content suggestions are approved, and it is unlikely that PRs submitted without an associated approved content request will be accepted.

3. Validate existing issues

You can help the team prioritize already-open issues by doing the following:

  • For bug reports, leave a comment in the issue if you have also been experiencing the same problem and can reproduce it (include as much information as you can, e.g., browser type, Qiskit version, etc.).
  • For new content requests, leave a comment or upvote (👍) in the issue if you also would like to see that new content added.

4. Fix an open issue

You can look through the open issues we have in this repo and address them with a PR. We recommend focusing on issues with the "good first issue" label.

Before getting started on an issue, remember to do the following:

  1. Read the Code of Conduct
  2. Check for open, unassigned issues with the "good first issue" label
  3. Select an issue that is not already assigned to someone and leave a comment to request to be assigned

Once you have an issue to work on, see the "How to work with this repo" section below to get going, then open a PR.

Before opening a PR, remember to do the following:

  1. Check that you have addressed all the requirements from the original issue
  2. Run the spell checker
  3. Use the GitHub "fixes" notation to link your PR to the issue you are addressing

How to work with this repo

Prerequisites to building the docs locally

These tools will also run in CI, but it can be convenient when iterating to run the tools locally.

First, install the below software:

  1. Node.js. If you expect to use JavaScript in other projects, consider using NVM. Otherwise, consider using Homebrew or installing Node.js directly.
  2. Docker. You must also ensure that it is running.
    • You can use Colima or Rancher Desktop. When installing Rancher Desktop, choose Moby/Dockerd as the engine, rather than nerdctl. To ensure it's running, open up the app "Rancher Desktop".

Then, install the dependencies with:

npm install

Preview the docs locally

Run ./start in your terminal, then open http://localhost:3000/start in your browser.

The local preview does not include the initial index page and the top nav bar from docs.quantum-computing.ibm.com. Therefore, you must directly navigate in the URL to the folder that you want:

Preview the docs in PRs

Contributors with write access to this repository can use live previews of the docs: GitHub will deploy a website using your changes.

To use live previews, push your branch to upstream rather than your fork. GitHub will leave a comment with the link to the site. Please prefix your branch name with your initials, e.g. EA/fix-build-typo, for good Git hygiene.

Staging

We also re-deploy the docs every time we merge into main at the site https://qiskit-docs-preview-staging.1799mxdls7qz.us-south.codeengine.appdomain.cloud.

This staging environment can be useful to see how the docs are rendering before we push it live to production.

CI will check for broken links. You can also check locally:

# Only check for broken links
npm run check:links

# Or, run all the checks
npm run check

Check file metadata

Every file needs to have a title and description. The lint job in CI will fail with instructions for any bad file.

You can also check for valid metadata locally:

# Only check file metadata
npm run check:metadata

# Or, run all the checks
npm run check

Spellcheck

We use cSpell to check for spelling. The lint job in CI will fail if there are spelling issues.

There are two ways to check spelling locally, rather than needing CI.

# Only check spelling
npm run check:spelling

# Or, run all the checks
npm run check
  1. Use the VSCode extension Code Spell Checker.

Fixing false positives

There are two ways to deal with cSpell incorrectly complaining about a word, such as abbreviations.

  1. Ignore the word in the local markdown file by adding a comment to the file, like below. The word is not case-sensitive, and the comment can be placed anywhere.
{/* cspell:ignore hellllooooo, ayyyyy */}

# Hellllooooo!

Ayyyyy, this is a fake description.
  1. Add the word to the file cSpell.json in the words section. The word is not case-sensitive.

If the word appears in multiple files, prefer the second approach to add it to cSpell.json.