Skip to content

Commit eba00e7

Browse files
committed
fix comments
- work-around for jupyter-book/jupyter-book#2066 - fixes #81
1 parent a87e03e commit eba00e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ jobs:
5757
sudo apt install -qq ghostscript fonts-freefont-otf # https://stackoverflow.com/a/69012150
5858
sed -ri 's#^(\s*baseurl:).*#\1 ${{ steps.pages.outputs.base_url }}/'$SITE_PREFIX'#g' _config.yml
5959
jupyter-book build --builder dirhtml --warningiserror --nitpick --keep-going .
60+
# fix https://github.com/executablebooks/jupyter-book/issues/2066
61+
sed -ri 's#(.*link rel="canonical" href=".*)\.html(".*)#\1/\2#' _build/dirhtml/*/index.html
6062
jupyter-book build --builder latex --warningiserror --nitpick --keep-going .
6163
cd _build/latex
6264
# fix contrib.rocks

0 commit comments

Comments
 (0)