Commit 6daefa1
Set up GitHub Pages publishing (#11)
* Set up GitHub Pages publishing (cache + publish workflows, environment)
Mirrors the fa edition's publishing machinery, adapted for fr:
- environment.yml copied from the English source (anaconda 2026.06,
quantecon-book-theme 0.21.0) so the build matches the seeded content
- cache.yml builds the execution cache on every push to main
- publish.yml builds HTML on publish* tags, uploads a release archive,
and deploys to gh-pages (custom-domain CNAME left commented pending
the DNS decision); -W disabled for the first publishes, as in cache.yml
- _config.yml now points at this repo and its actual serving URL
(quantecon.github.io/lecture-python-programming.fr) instead of the
English site, avoiding the baseurl/CNAME mismatch found on fa and
zh-cn; also sets Sphinx language: fr
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Deploy Pages via the native artifact flow instead of a gh-pages branch
Replaces peaceiris/actions-gh-pages with actions/upload-pages-artifact
+ actions/deploy-pages (both v5), matching the Pages source already
enabled on this repo (build_type: workflow). No gh-pages branch and no
post-publish settings flip needed; the custom domain, when decided, is
set in Settings -> Pages together with the _config.yml baseurl.
The github-pages environment's deployment policy has been extended with
a publish* tag rule so tag-triggered deploys pass protection checks.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Simplify publish.yml: HTML only, via quantecon/actions/publish-gh-pages
Follows the English source repo's publish workflow (the current fleet
convention) rather than fa's older hand-rolled pattern:
- deploy + release assets (archive, checksum, manifest) collapse into
one quantecon/actions/publish-gh-pages@v0.8.0 step, which uses the
native Pages artifact flow
- commented PDF/notebook blocks and the LaTeX toolchain install removed
(HTML only for now); GPU runner and JAX steps from the source repo
are not needed here, as on fa
- no cname: the site serves at the default Pages URL,
https://quantecon.github.io/lecture-python-programming.fr/, and the
custom-domain TODO comment is dropped from _config.yml
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Add Netlify PR previews (ci.yml) for reviewer-facing rendered builds
Uses quantecon/actions/preview-netlify@v0.8.0 (the lecture-python.myst
pattern), HTML only, on ubuntu-latest. The action posts a PR comment
with the preview URL and the changed lectures, so translation review
can happen on rendered French pages rather than MyST diffs.
Requires two secrets not yet available to this repo: the org-level
NETLIFY_AUTH_TOKEN extended to include this repo, and a repo-level
NETLIFY_SITE_ID for a new Netlify site. Until they exist the preview
step self-skips for untrusted actors but will fail for in-repo PRs, so
grant them before merging or expect red previews.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* Address Copilot review: drop dangling nb_repository_url, clear doctrees
- nb_repository_url pointed at lecture-python-programming.fr.notebooks,
which does not exist; the theme (launch.py) skips notebook-launch
links entirely when the key is unset, so removing it is clean for an
HTML-only edition
- publish.yml now clears _build/.doctrees after downloading the cache
(as ci.yml already did, following lecture-python.myst), removing the
one staleness vector in the latest-from-main cache convention
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent e641d96 commit 6daefa1
5 files changed
Lines changed: 193 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| |||
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | | - | |
71 | | - | |
| 72 | + | |
| 73 | + | |
72 | 74 | | |
73 | 75 | | |
74 | 76 | | |
| |||
0 commit comments