Skip to content

Commit feb12f6

Browse files
committed
Merge branch 'main' into kjs/transpiler-plugins
2 parents 9337456 + 007787b commit feb12f6

File tree

609 files changed

+40707
-4548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

609 files changed

+40707
-4548
lines changed

.github/workflows/api-checks.yml

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
- "docs/api/qiskit/**/*"
2222
- "docs/api/qiskit-ibm-provider/**/*"
2323
- "docs/api/qiskit-ibm-runtime/**/*"
24+
- "public/api/**/*"
25+
- "scripts/checkLinks.ts"
26+
- "scripts/lib/links/ignores.ts"
2427

2528
jobs:
2629
link-checker:

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ __pycache__/
1212
node_modules
1313
tsconfig.tsbuildinfo
1414

15-
.out/
15+
/.out/
16+
/.sphinx-artifacts/
1617
poetry.lock
1718
pyproject.toml

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ There are two ways to deal with cSpell incorrectly complaining about a word, suc
243243
Ayyyyy, this is a fake description.
244244
```
245245

246-
2. Add the word to the file `cSpell.json` in the `words` section. The word is not case-sensitive.
246+
2. If the word is a name, add it to the `cspell/dictionaries/people.txt` file. If it is a scientific or quantum specific word, add it to the `cspell/dictionaries/qiskit.txt` file. If it doesn't fit in either category, add it to the `words` section in `cspell/cSpell.json`. The word is not case-sensitive.
247247

248-
If the word appears in multiple files, prefer the second approach to add it to `cSpell.json`.
248+
If the word appears in multiple files, prefer the second approach to add it to one of the dictionaries or `cSpell.json`.
249249

250250
## Check that pages render
251251

@@ -441,7 +441,8 @@ To use an `Admonition`, use the following syntax
441441
<Admonition type="note">This is a __note__ example</Admonition>
442442
```
443443

444-
Available types are `note, tip, info, caution, danger`
444+
Available types are `note, tip, info, caution, danger`. This is what they look like:
445+
![types](https://github.com/Qiskit/documentation/assets/66339736/ebf5794e-45eb-49ee-97df-41ff08ee876d)
445446

446447
By default, the title is the `type` capitalized. You can customize it by setting `title`:
447448

cSpell.json

-285
This file was deleted.

cspell/cSpell.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
// This file is copied from IBM's closed source configuration. When updating it
2+
// here, also update the closed source repository, or ask a maintainer to do so
3+
// if you do not have access.
4+
{
5+
"version": "0.2",
6+
"language": "en",
7+
"allowCompoundWords": true,
8+
"dictionaryDefinitions": [
9+
{
10+
"name": "qiskit",
11+
"path": "dictionaries/qiskit.txt",
12+
"addWords": true
13+
},
14+
{
15+
"name": "people",
16+
"path": "dictionaries/people.txt",
17+
"addWords": true
18+
}
19+
],
20+
"dictionaries": [
21+
"qiskit",
22+
"people",
23+
"python",
24+
"python-common",
25+
"markdown",
26+
"softwareTerms",
27+
"scientific-terms-us"
28+
],
29+
"words": ["Qiskit", "qiskit"],
30+
"ignoreRegExpList": [
31+
// Markdown links
32+
"\\((.*)\\)",
33+
// markdown code blocks. https://github.com/streetsidesoftware/vscode-spell-checker/issues/202#issuecomment-377477473
34+
"/^\\s*```[\\s\\S]*?^\\s*```/gm",
35+
// inline code blocks. https://stackoverflow.com/questions/41274241/how-to-capture-inline-markdown-code-but-not-a-markdown-code-fence-with-regex
36+
"\\`([^\\`].*?)\\`",
37+
// $$ ... $$ code blocks
38+
"\\$\\$\n(?:.*\n)*?\\$\\$",
39+
// markdown metadata block. e.g. title, description, etc.
40+
"---\n(?:.*\n)*?---",
41+
// words inside curly braces. e.g. {word}
42+
"{\\w+}",
43+
// words inside colons. e.g. :word:
44+
":\\S+:",
45+
// words joined by underscores. e.g. hello_world, NEW_KEY_VALUE
46+
"\\S+_\\S+(_\\S+)*",
47+
// separate line <span id="" /> tags
48+
"^<span id=\\S+ />$",
49+
"^<span id=\\S+></span>$"
50+
],
51+
"ignorePaths": [
52+
// We cannot easily control these API docs since they live in other repositories.
53+
"../docs/api/qiskit/**/*.md*",
54+
"../docs/api/qiskit-ibm-runtime/**/*.md*",
55+
"../docs/api/qiskit-ibm-provider/**/*.md*"
56+
]
57+
}

0 commit comments

Comments
 (0)