Commit Graph

8 Commits

Author SHA1 Message Date
Frank Harkins 8ef53a0a9c Add code to test notebook code examples (#471)
This PR adds a script to automatically execute notebooks in CI.

To keep PRs small and focussed, this only adds the scripts to test
notebooks, it doesn't actually fix those notebooks or add anything to
CI.

<details>
  <summary>Example: Success</summary>

![Screenshot 2023-12-04 at 14 22
15](https://github.com/Qiskit/documentation/assets/36071638/2c6f698d-f990-456c-b20d-241db4d0007c)

</details>

<details>
  <summary>Example: Failure</summary>

![Screenshot 2023-12-04 at 14 23
17](https://github.com/Qiskit/documentation/assets/36071638/4983fcae-6d32-4c26-bdb3-4d6035d0a2fa)

</details>

<details>
  <summary>Why <code>tox</code>?</summary>

An important feature is to be able to run a single notebook in the
virtual environment. With `tox`, we can use commands like this:

```sh
tox -- path/to/notebook
```

Whereas with `nox`, this is the simplest I could get it:

```sh
nox --session 'test(path="path/to/notebook")'
```

Note this also doesn't autocomplete the path.

The main reason for choosing `nox` seems to be more flexible
configuration, but we only need simple configuration in this repo so
this isn't a problem.

</details>

***

Part of #166

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2023-12-05 16:05:44 +00:00
Frank Harkins 48009c86f9 Add tool to upload to IBM Quantum Learning (#358)
This moves a custom tool from
https://github.com/frankharkins/learning-content-tools to this repo as
per
[request](https://github.com/Qiskit/qiskit-ibm-runtime/pull/1111#discussion_r1391399313).

This tool is not actually used in this repo, it will just live here to
be owned by the Qiskit organisation.

---------

Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com>
2023-11-17 17:06:52 +00:00
abbycross cddbc20047 Transpiler introduction section (#260)
Closes #28

---------

Co-authored-by: kaelynj <kaelyn.ferris@gmail.com>
Co-authored-by: Kaelyn Ferris <43348706+kaelynj@users.noreply.github.com>
Co-authored-by: Abby Mitchell <23662430+javabster@users.noreply.github.com>
2023-11-15 11:22:37 -05:00
Frank Harkins ed2a02ece9 Ignore notebook checkpoints (#158)
Less-selfish PR to ignore `.ipynb_checkpoints` folder, which is created
when editing notebooks.
2023-10-12 18:10:26 +01:00
Frank Harkins 1498c6119d Add to `.gitignore` (#139)
Selfish PR to ignore my env files.
2023-10-10 18:10:23 +01:00
Eric Arellano 64a02b7120 Generate API docs (#65)
Closes https://github.com/Qiskit/documentation/issues/9.

Once this lands, we will update the closed source repository to start
consuming this repository and remove the API pipeline from there.

Note that these API docs are not identical to the closed source
versions! This uses qiskit-ibm-provider 0.7 rather than 0.6.3, and
qiskit-ibm-runtime 0.12.2 rather than 0.11.3.

We skip spellcheck issues and the metadata check for certain files
(https://github.com/Qiskit/documentation/issues/66) to facilitate
landing this. They were already issues in closed source.
2023-10-02 17:13:41 -04:00
Eric Arellano ca603cda4e Check for valid metadata (#56)
In the closed source repository that consumes Qiskit/docs, we have this
same check for valid file metadata. It is useful to run it here too so
that we fail more eagerly.

Like the internal code, this uses TypeScript. It makes the code more
readable and better aligned with the internal code.

---------

Co-authored-by: Axel Hernández Ferrera <axelhzf@gmail.com>
2023-09-19 08:01:28 -06:00
Eric Arellano dd9809bd5c Set up NPM, GitHub Actions, and cSpell (#52)
Closes https://github.com/Qiskit/docs/issues/5.

This sets up some initial infrastructure for the repository, like CI and
the folder structure from @axelhzf's proof of concept of how to open
source documentation content.

Follow up PRs will build on this infrastructure as part of
https://github.com/Qiskit/docs/milestone/1.

## Synchronizing cSpell config with closed source

This PR copies the closed source config for cSpell.

It's a bummer that this config is duplicated. I considered if we should
automate synchronizing the config file, which would need to be the
closed source repo pulling in the closed source file, since the open
source repo cannot access the closed source repo. But I think it's not
worth the complexity to automate this, at least for now.

The closed source repository will open up a PR to use a new version of
this qiskit/docs repository. That PR will run its own spellcheck. So if
there is new content with typos, the spellcheck will fail, which is a
signal that we need to update the closed source cSpell config.

If this ends up not being sustainable, then I recommend we figure out
how to automate syncing. But for now, keep it simple.

---------

Co-authored-by: Axel Hernández Ferrera <axelhzf@gmail.com>
Co-authored-by: Eric Harvey <eric@harvey.io>
2023-09-12 08:33:34 -06:00