7 Commits

Author SHA1 Message Date
afd82d071c test 2026-02-05 12:44:38 -06:00
ead328c075 fix env
Some checks failed
CI - Docs build check / build-check (push) Failing after 7s
2026-02-05 09:49:35 -06:00
155c9a4222 fix strict var
All checks were successful
CI - Docs build check / build-check (push) Successful in 8s
2026-02-05 09:46:32 -06:00
bdbce0664b fix validation
Some checks failed
CI - Docs build check / build-check (push) Failing after 8s
2026-02-05 09:42:36 -06:00
c185079bf1 fix
All checks were successful
CI - Docs build check / build-check (push) Successful in 9s
2026-02-05 09:28:36 -06:00
039228ab99 update ci
All checks were successful
CI - Docs build check / build-check (push) Successful in 8s
Deploy RC preview to GitHub Pages / deploy-rc-pages (push) Successful in 6s
2026-02-05 09:24:58 -06:00
58d7f6be48 update
All checks were successful
CI - Docs build check / build-check (push) Successful in 8s
Deploy RC preview to GitHub Pages / deploy-rc-pages (push) Successful in 6s
2026-02-05 08:46:15 -06:00
5 changed files with 25 additions and 14 deletions

View File

@@ -10,6 +10,12 @@ on:
permissions:
contents: read
env:
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT:-true }}
MKDOCS_CONFIG: mkdocs/mkdocs.yml
CSPELL_CONFIG: tools/spellcheck/cspell.yml
CSPELL_TARGETS: "docs/**/*.md" README.md
jobs:
build-check:
runs-on: ubuntu-latest
@@ -27,9 +33,8 @@ jobs:
run: |
set -euo pipefail
npx --yes cspell \
--config tools/spellcheck/cspell.yml \
"docs/**/*.md" \
README.md
--config ${CSPELL_CONFIG \
${CSPELL_TARGETS}
- name: Install build dependencies
run: |
@@ -37,8 +42,15 @@ jobs:
pip install -r mkdocs/requirements.txt
- name: MkDocs build (strict default)
run: |
set -euo pipefail
# Default not strict on if unset
export MKDOCS_STRICT="${MKDOCS_STRICT:-true}"
tools/build.sh --config mkdocs/mkdocs.yml
echo "Strict is set to ${MKDOCS_STRICT}"
FLAGS=()
if [ "${MKDOCS_STRICT}" = "true" ]; then
FLAGS+=(--strict)
fi
MKDOCS_OUTPUT_DIR="${RUNNER_TEMP:-${TMPDIR:-/tmp}}/dist"
mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${MKDOCS_OUTPUT_DIR}"

View File

@@ -63,7 +63,7 @@ jobs:
git add -A
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Deploy RC preview ${REF}" || echo "No changes to commit"
git commit -m "Deploy RC preview ${GITHUB_REF_NAME}" || echo "No changes to commit"
git push origin gh-pages
- name: Publish prerelease (GitHub)
uses: softprops/action-gh-release@v2

View File

@@ -1,5 +0,0 @@
---
title: Chicago Metropolitan Baseball Association
subtitle: Constitution and By-Laws
date: 2024-06-06
---

View File

@@ -36,4 +36,8 @@ plugins:
- enumerate-headings:
toc_depth: 2
exclude:
- index.md
- index.md
validation:
links:
anchors: warn #this defaults to info, but it will cause broken links in anchor headers

View File

@@ -11,5 +11,5 @@ STRICT_FLAG=""
if [ "${MKDOCS_STRICT}" = "true" ]; then
STRICT_FLAG="--strict"
fi
echo "MKDOCS_STRICT: $MKDOCS_STRICT, STRICT_FLAG: $STRICT_FLAG"
mkdocs build ${STRICT_FLAG} -f $MKDOCS_CONFIG -d $OUTPUT_DIR