From 6e0161cae007b3939f15925073236e1ea32a6342 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 18 Mar 2025 09:33:28 +1100 Subject: [PATCH] setup download notebooks --- .github/workflows/ci.yml | 12 ++++++------ lectures/_config.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 036c0a1..68213cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,12 +57,12 @@ jobs: # with: # name: execution-reports # path: _build/latex/reports - # - name: Build Download Notebooks (sphinx-tojupyter) - # shell: bash -l {0} - # run: | - # jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter - # mkdir -p _build/html/_notebooks - # cp -u _build/jupyter/*.ipynb _build/html/_notebooks + - name: Build Download Notebooks (sphinx-tojupyter) + shell: bash -l {0} + run: | + jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter + mkdir -p _build/html/_notebooks + cp -u _build/jupyter/*.ipynb _build/html/_notebooks # Build HTML (Website) # BUG: rm .doctress to remove `sphinx` rendering issues for ipywidget mimetypes # and clear the sphinx cache for building final HTML documents. diff --git a/lectures/_config.yml b/lectures/_config.yml index 8f63471..bad2784 100644 --- a/lectures/_config.yml +++ b/lectures/_config.yml @@ -80,7 +80,7 @@ sphinx: header_organisation_url: https://quantecon.org header_organisation: QuantEcon repository_url: https://github.com/QuantEcon/lecture-python.myst - nb_repository_url: https://github.com/QuantEcon/lecture-python.notebooks + nb_repository_url: https://github.com/QuantEcon/lecture-python.zh-cn.notebooks twitter: quantecon twitter_logo_url: https://assets.quantecon.org/img/qe-twitter-logo.png og_logo_url: https://assets.quantecon.org/img/qe-og-logo.png