Skip to content

Commit 6ca88e0

Browse files
authored
[CI] Documentation rendering fixes (#105)
1 parent e81c7a6 commit 6ca88e0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ model.fit(X_train, y_train)
8080

8181
We have a two parts tutorial:
8282

83-
1. [Using a Quantum Device to extract machine-learning features](https://pasqal-io.github.io/quantum-evolution-kernel/latest/tutorial%201%20-%20Using%20a%20Quantum%20Device%20to%20Extract%20Machine-Learning%20Features);
84-
2. [Machine Learning with the Quantum Evolution Kernel](https://github.com/pasqal-io/quantum-evolution-kernel/blob/main/examples/tutorial%202%20-%20Machine-Learning%20with%20the%20Quantum%20EvolutionKernel/)
83+
1. [Using a Quantum Device to extract machine-learning features](https://pasqal-io.github.io/quantum-evolution-kernel/v0.3.0/tutorial%201%20-%20Using%20a%20Quantum%20Device%20to%20Extract%20Machine-Learning%20Features);
84+
2. [Machine Learning with the Quantum Evolution Kernel](https://pasqal-io.github.io/quantum-evolution-kernel/v0.3.0/tutorial%202%20-%20Machine-Learning%20with%20the%20Quantum%20EvolutionKernel/)
8585

86-
See also the [full API documentation](https://pasqal-io.github.io/quantum-evolution-kernel/latest/).
86+
See also the [full API documentation](https://pasqal-io.github.io/quantum-evolution-kernel/v0.3.0/).
8787

8888
## Getting in touch
8989

examples/tutorial 1a - Using a Quantum Device to Extract Machine-Learning Features - low-level.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@
4141
"source": [
4242
"# Ignore warnings for this tutorial.\n",
4343
"import logging\n",
44+
"import os\n",
4445
"import sys\n",
4546
"\n",
4647
"logger = logging.getLogger()\n",
4748
"logger.disabled = True\n",
48-
"sys.stderr.close()"
49+
"sys.stderr = open(os.devnull, 'w')"
4950
]
5051
},
5152
{

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ dependencies = [
109109
]
110110

111111
[tool.hatch.envs.docs.scripts]
112-
build = "cp examples/*.ipynb examples/*.json docs; mkdocs build --clean --strict {args}"
112+
build = "cp examples/*.ipynb examples/*.json docs; cp examples/*.json docs; mkdocs build --clean --strict {args}"
113113
serve = "mkdocs serve --dev-addr localhost:8000"
114114
test = "mkdocs build --clean --strict"
115115

0 commit comments

Comments
 (0)