Skip to content

Commit 5ed8a96

Browse files
authored
Merge pull request #31 from Jij-Inc/doc
Again the test has failed because of the settings. So, I'll ignore the test failure and merge this into `main`.
2 parents babc5e0 + c53b5a1 commit 5ed8a96

File tree

7 files changed

+16
-7
lines changed

7 files changed

+16
-7
lines changed

.github/workflows/jupyter-book-publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Deploy Jupyter Book to GitHub Pages
22

33
on:
44
# For now we just use manual trigger.
5-
# push:
6-
# branches: ["main"]
5+
push:
6+
branches: ["main"]
77
workflow_dispatch:
88

99
permissions:
@@ -38,7 +38,7 @@ jobs:
3838
shell: bash
3939
run: |
4040
set -eux
41-
uv sync --all-extras
41+
uv sync --group docs
4242
# Build the jupyter notebooks.
4343
- name: Build the book and LP
4444
run: |
@@ -57,14 +57,16 @@ jobs:
5757
needs: [build-jupyter-book]
5858
runs-on: ubuntu-latest
5959
steps:
60+
- name: Checkout # For getting index.html
61+
uses: actions/checkout@v4
6062
- name: Download all artifacts
6163
uses: actions/download-artifact@v4
6264
- name: Create unified site structure
6365
run: |
6466
mkdir -p docs/_build/html
6567
mkdir -p docs/_build/html/en && cp -r doc-jupyter-book-en/* docs/_build/html/en/
6668
mkdir -p docs/_build/html/ja && cp -r doc-jupyter-book-ja/* docs/_build/html/ja/
67-
cp -r docs/_build/html/en/index.html docs/_build/html/index.html
69+
cp -r docs/index.html docs/_build/html/index.html
6870
# Upload the unified site structure as a single artifact.
6971
- name: Upload artifact
7072
uses: actions/upload-artifact@v4

docs/en/_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ sphinx:
6262
autoapi_ignore:
6363
- "**/uploader.py"
6464
- "**/uploader/*"
65+
- "**/[0-9][0-9]_*/*"
66+
- "**/qoblib/definitions.py"
67+
- "**/ommx_quantum_benchmarks/uploader/*"
6568
autoapi_python_class_content: 'both'
6669
language: en
6770
html_search_language: en

docs/en/_toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ parts:
2424
chapters:
2525
- file: tutorial/examples/index_examples
2626
sections:
27-
- file: tutorial/examples/marketsplit_example
27+
- file: tutorial/examples/labs_example
2828

2929
- caption: API Reference
3030
chapters:

docs/en/tutorial/usage/basic_usage.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# Basic Usage\n",
99
"\n",
10-
"This page covers common usage patterns and best practices when working with QOBLIB in OMMX format. Please refer [OMMX focumentation](https://jij-inc.github.io/ommx/en/introduction.html) as well."
10+
"This page covers common usage patterns and best practices when working with QOBLIB in OMMX format. Please refer [OMMX documentation](https://jij-inc.github.io/ommx/en/introduction.html) as well."
1111
]
1212
},
1313
{

docs/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<meta http-equiv="Refresh" content="0; url=en/index.html" />

docs/ja/_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ sphinx:
6262
autoapi_ignore:
6363
- "**/uploader.py"
6464
- "**/uploader/*"
65+
- "**/[0-9][0-9]_*/*"
66+
- "**/qoblib/definitions.py"
67+
- "**/ommx_quantum_benchmarks/uploader/*"
6568
autoapi_python_class_content: 'both'
6669
language: ja
6770
html_search_language: ja

docs/ja/_toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ parts:
2424
chapters:
2525
- file: tutorial/examples/index_examples
2626
sections:
27-
- file: tutorial/examples/marketsplit_example
27+
- file: tutorial/examples/labs_example
2828

2929
- caption: API リファレンス
3030
chapters:

0 commit comments

Comments
 (0)