Compare commits
7 Commits
rc2026.0
...
afd82d071c
| Author | SHA1 | Date | |
|---|---|---|---|
| afd82d071c | |||
| ead328c075 | |||
| 155c9a4222 | |||
| bdbce0664b | |||
| c185079bf1 | |||
| 039228ab99 | |||
| 58d7f6be48 |
24
.github/workflows/ci-docs.yml
vendored
24
.github/workflows/ci-docs.yml
vendored
@@ -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}"
|
||||
2
.github/workflows/deploy-rc-pages.yml
vendored
2
.github/workflows/deploy-rc-pages.yml
vendored
@@ -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
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
title: Chicago Metropolitan Baseball Association
|
||||
subtitle: Constitution and By-Laws
|
||||
date: 2024-06-06
|
||||
---
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user