Skip to content

Commit

Permalink
ready to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
yiiyama committed Feb 20, 2024
1 parent de2be86 commit e8a58ba
Show file tree
Hide file tree
Showing 27 changed files with 207 additions and 11 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/publish.yml
Expand Up @@ -10,25 +10,21 @@ jobs:
- name: Checkout the latest
uses: actions/checkout@v4

- name: Build the books (ja)
- name: Build the books
run: |
docker run --rm --mount type=bind,src=$GITHUB_WORKSPACE,dst=/qc-workbook yiiyama/jupyterbook-qiskit:1.2.1 /qc-workbook/build-runner/build_and_publish.py --account $GITHUB_REPOSITORY_OWNER --lang ja
docker run --rm --mount type=bind,src=$GITHUB_WORKSPACE,dst=/qc-workbook yiiyama/jupyterbook-qiskit:1.2.1 /qc-workbook/build-runner/build_and_publish.py --account $GITHUB_REPOSITORY_OWNER --lang en
mkdir _site
mv build/ja/_build/html _site/ja
mv build/en/_build/html _site/en
cp $GITHUB_WORKSPACE/source/common/redirect.html _site/index.html
cp -r build/ja/_build/html _site/ja
cp -r build/en/_build/html _site/en
cp $GITHUB_WORKSPACE/source/common/redirections/*.html _site/
upload:
needs: build
runs-on: ubuntu-latest
steps:
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3

deploy:
# Add a dependency to the build job
needs: upload
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
Expand Down
8 changes: 8 additions & 0 deletions source/common/redirections/addition_on_ibmq.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/addition_on_ibmq.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/bibliography.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/bibliography.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/chsh_inequality.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/chsh_inequality.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/circuit_from_scratch.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/circuit_from_scratch.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/dynamics_simulation.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/dynamics_simulation.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/extreme_simd.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/extreme_simd.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/genindex.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/genindex.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/grover.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/grover.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/grover_number_light.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/grover_number_light.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/index.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/index.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/more_dynamics.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/more_dynamics.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/nonlocal_correlations.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/nonlocal_correlations.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/numerics.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/numerics.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/prerequisites.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/prerequisites.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/python_intro.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/python_intro.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/qkc_machine_learning.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/qkc_machine_learning.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/quantum_computation.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/quantum_computation.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/references.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/references.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/search.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/search.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/shor.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/shor.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/spectrum_estimation.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/spectrum_estimation.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/toffoli_shor_code.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/toffoli_shor_code.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/vqc_machine_learning.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/vqc_machine_learning.html'" />
</head>
<body>
</body>
</html>
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja'" />
<meta http-equiv="refresh" content="0; url='./ja/vqe.html'" />
</head>
<body>
</body>
Expand Down
8 changes: 8 additions & 0 deletions source/common/redirections/vqe_tracking.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/vqe_tracking.html'" />
</head>
<body>
</body>
</html>
8 changes: 8 additions & 0 deletions source/common/redirections/welcome.html
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='./ja/welcome.html'" />
</head>
<body>
</body>
</html>

0 comments on commit e8a58ba

Please sign in to comment.