Skip to content

update renderer so that <tmpl> converts to <pre class="z-tmpl"> #18

update renderer so that <tmpl> converts to <pre class="z-tmpl">

update renderer so that <tmpl> converts to <pre class="z-tmpl"> #18

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
branches:
- main
workflow_run:
workflows: ['Sync Global Documentation']
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install markdown pyyaml beautifulsoup4
- name: Build all documentation
run: |
export TUNA_TEMP_DIR=$(mktemp -d)
git worktree add "$TUNA_TEMP_DIR" --no-checkout --detach ../mirrorz-tr origin/transpiled
cat enabled.txt | xargs python global/compile.py -v --lang zh -C dom -C tuna
git -C "$TUNA_TEMP_DIR" add --all --verbose
if git diff --exit-code --quiet --cached; then
echo "No changes to commit."
exit 0
fi
git -C "$TUNA_TEMP_DIR" \
-c user.name="GitHub Actions" \
-c user.email="github-actions[bot]@users.noreply.github.com" \
commit -m "Auto build for $GITHUB_REPOSITORY@${GITHUB_SHA::7}"
git -C "$TUNA_TEMP_DIR" push --force origin HEAD:transpiled