docs(build): pin the deploy tooling, correct the hook macro-scope note #18

Merged
allan merged 2 commits from docs/pin-deploy-and-hook-scope into main 2026-10-15 18:56:57 +00:00
2 changed files with 21 additions and 7 deletions
Showing only changes of commit 8ed0f16004 - Show all commits

No files matched your search

+10 -7
View File
@@ -31,19 +31,22 @@ jobs:
apt install -y ./google-chrome*.deb; apt install -y ./google-chrome*.deb;
export CHROME_BIN=/usr/bin/google-chrome export CHROME_BIN=/usr/bin/google-chrome
# Deploy tooling is pinned to exact versions: the workflow builds whatever
# is committed, and an unpinned `latest` would let a breaking or
# compromised upstream release ship straight to the live site.
- name: Install Surfer - name: Install Surfer
run: | run: |
npm -g install cloudron-surfer npm -g install cloudron-surfer@6.4.1
- name: build site - name: build site
run: | run: |
pip install mkdocs pip install mkdocs==1.6.1
pip install mkdocs-material pip install mkdocs-material==9.7.7
pip install fontawesome_markdown pip install fontawesome_markdown==0.2.6
pip install mkdocs-redirects pip install mkdocs-redirects==1.2.3
mkdocs build --clean mkdocs build --clean
mkdir site/slides mkdir site/slides
npx @marp-team/marp-cli slides/innovation/innovation.md -o ./site/slides/innovation/index.html npx @marp-team/marp-cli@4.5.1 slides/innovation/innovation.md -o ./site/slides/innovation/index.html
npx @marp-team/marp-cli slides/if/if.md -o site/if.pdf --allow-local-files --html=true npx @marp-team/marp-cli@4.5.1 slides/if/if.md -o site/if.pdf --allow-local-files --html=true
- name: Deploy docs - name: Deploy docs
run: surfer put --token ${{ secrets.SURFERKEY }} --server docs.datacontroller.io site/* / run: surfer put --token ${{ secrets.SURFERKEY }} --server docs.datacontroller.io site/* /
+11
View File
@@ -0,0 +1,11 @@
# npm configuration for this repo's CI and local installs.
#
# ignore-scripts keeps package install scripts (an arbitrary-code execution
# point) from running during the deploy workflow. Both npm packages the
# workflow installs - cloudron-surfer and @marp-team/marp-cli - ship no
# install, preinstall or postinstall hook, so nothing is skipped.
#
# save-exact pins anything installed from here to an exact version rather than
# a caret range.
ignore-scripts=true
save-exact=true