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

Update readme to include preview instructions #1334

Merged
merged 5 commits into from
May 10, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,12 @@ Warning: `./start` does not check if there is a new version of the docs applicat

### API docs authors: How to preview your changes

API docs authors can preview their changes to one of the APIs by following these steps:

1. Go to your `qiskit/documentation` folder
2. Create a folder named `.sphinx-artifacts/<pkg-name>/<major>.<minor>/artifact`, or use the one that already exists if you have generated that version before.
3. Move the HTML output of Sphinx, including all the folders (e.g., apidoc and stubs) into the artifact folder
4. Run `npm run gen-api -- -p qiskit -v 1.1.0 --skip-download`
5. Open Rancher Desktop (not necessary for Linux)
6. Execute `./start`
7. Go to http://localhost:3000
API docs authors can preview their changes to one of the APIs by using the `-a` parameter to specify the path to the docs folder:

1. Run `npm run gen-api -- -p <pkg-name> -v <version> -a <path/to/docs/_build/html>`.
2. Open Rancher Desktop (not necessary for Linux).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be better to move these instructions to the above section. I'd explain the step in the above section as:

Ensure Docker is running. For example, open Rancher Desktop.

Then, this secton can be:

1. <same as before>
2. Execute `./start` and open up `http://localhost:3000`, as explained in the prior section.

3. Execute `./start` as explained in the previous section.
4. Go to http://localhost:3000 in your browser.

## Preview the docs in PRs

Expand Down
Loading