27 Commits

Author SHA1 Message Date
76964d837c flesh out miscellaneous and dissolution
All checks were successful
Build & publish docs (rc + release) / publish (push) Successful in 8s
2026-02-06 17:39:53 -06:00
0b4fadf18d flesh out treasurer and secretary 2026-02-06 17:39:53 -06:00
694c423772 remove commissioner power 2026-02-06 17:39:53 -06:00
3669173cb6 capitalization fix 2026-02-06 17:39:53 -06:00
47a3a32632 by-laws => Bylaws 2026-02-06 17:39:53 -06:00
70eace7afb typo 2026-02-06 17:39:53 -06:00
43d7b10551 amend purpose to include members 2026-02-06 17:39:53 -06:00
dcbe64b222 add powers, limitations, office and agent 2026-02-06 17:39:52 -06:00
85856af1fd remove date from index 2026-02-06 16:31:39 -06:00
04285c9817 fix pre-release
All checks were successful
Build & publish docs (rc + release) / publish (push) Successful in 8s
2026-02-06 16:00:26 -06:00
82098131aa split bylaws and policy
All checks were successful
Build & publish docs (rc + release) / publish (push) Successful in 8s
2026-02-05 20:37:48 -06:00
d5a2d95ed6 from melanie 2026-02-05 20:37:48 -06:00
89fd2860ae from tony 2026-02-05 20:37:48 -06:00
1bd64f7a99 budget section, unify on "dues" 2026-02-05 20:37:48 -06:00
5c08d16be3 restructure officers, unify on "Commissioner" 2026-02-05 20:37:48 -06:00
2cd58ee332 Add directors 2026-02-05 20:37:48 -06:00
e8ea6bccb6 simplify member standing and voting 2026-02-05 20:37:48 -06:00
3bfe28a61e section -> provision 2026-02-05 20:37:48 -06:00
4ae1d6898f clarify membership. formalize "Manager" 2026-02-05 20:37:48 -06:00
0c8c37907d amend purpose 2026-02-05 20:37:48 -06:00
f92d67775b Update name section, unify to "League" 2026-02-05 20:37:47 -06:00
5e8ef75063 promote name and purpose to sections 2026-02-05 20:37:47 -06:00
d670a6b450 move assets, styles to docs folder 2026-02-05 20:37:47 -06:00
d5669178db implement mkdocs, remove pandoc 2026-02-05 20:37:41 -06:00
44d0a66aa5 moved general play section to new document as playing rules 2026-02-05 20:34:00 -06:00
f59d056cf4 ci, build, release
All checks were successful
Build & publish docs (rc + release) / publish (push) Successful in 8s
+ update spellcheck to use cspell
2026-02-05 20:17:04 -06:00
eaf916443c implement mkdocs, remove pandoc
directory restructuring, remove makefile and build files in repo
moved general play section to new document as playing rules
move assets, styles to docs folder
2026-02-05 18:09:06 -06:00
7 changed files with 146 additions and 98 deletions

View File

@@ -1,19 +1,26 @@
name: CI - Docs build check
on:
pull_request:
branches-ignore:
- gh-pages
push:
push:
branches:
- main
- develop
- release-candidate
workflow_dispatch:
permissions:
contents: read
env:
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT || 'true' }}
MKDOCS_CONFIG: mkdocs/mkdocs.yml
MKDOCS_OFFLINE: false
CSPELL_CONFIG: tools/spellcheck/cspell.yml
CSPELL_TARGETS: docs/**/*.md README.md
jobs:
build-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -27,9 +34,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 +43,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

@@ -1,76 +0,0 @@
name: Deploy RC preview to GitHub Pages
on:
push:
tags: ["rc*"]
workflow_dispatch:
permissions:
contents: write
jobs:
deploy-rc-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout (tag)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
set -euo pipefail
pip install -r mkdocs/requirements.txt
- name: Build site (strict default)
run: |
set -euo pipefail
export MKDOCS_STRICT="${MKDOCS_STRICT:-true}"
export TMPDIR="${RUNNER_TEMP:-$TMPDIR}"
export OUTPUT_DIR="${OUTPUT_DIR:-${TMPDIR}/dist/}"
tools/build.sh --config mkdocs/mkdocs.yml
- name: Checkout gh-pages branch
run: |
set -euo pipefail
git fetch origin gh-pages:gh-pages || true
if git show-ref --verify --quiet refs/heads/gh-pages; then
git switch gh-pages
else
git switch --orphan gh-pages
rm -rf ./*
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git commit --allow-empty -m "Initialize gh-pages"
fi
- name: Publish RC preview under /rc/<tag>/
run: |
export TMPDIR="${RUNNER_TEMP:-$TMPDIR}"
export OUTPUT_DIR="${OUTPUT_DIR:-${TMPDIR}/dist/}"
set -euo pipefail
rm -rf "rc"* || true
mkdir -p "rc/"
cp -a "$OUTPUT_DIR/." "rc/"
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 ${GITHUB_REF_NAME}" || echo "No changes to commit"
git push origin gh-pages
- name: Publish prerelease (GitHub)
uses: softprops/action-gh-release@v2
with:
prerelease: true
body: |
RC preview: https://<org>.github.io/<repo>/rc/
Tag: ${{ github.ref_name }}
Commit: ${{ github.sha }}

114
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,114 @@
name: Build & publish docs (rc + release)
on:
push:
tags:
- "rc*"
- "v*"
workflow_dispatch:
permissions:
contents: write
env:
MKDOCS_CONFIG: mkdocs/mkdocs.yml
MKDOCS_STRICT: ${{ vars.MKDOCS_STRICT || 'true' }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout (tag)
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install deps
run: |
set -euo pipefail
pip install -r mkdocs/requirements.txt
- name: Build docs (normal + offline, strict gate)
run: |
set -euo pipefail
FLAGS=()
if [ "${MKDOCS_STRICT}" = "true" ]; then
FLAGS+=(--strict)
fi
OUT_BASE="${RUNNER_TEMP}/mkdocs_out"
SITE="${OUT_BASE}/site"
SITE_OFFLINE="${OUT_BASE}/site_offline/${GITHUB_REF_NAME}"
rm -rf "${OUT_BASE}"
mkdir -p "${SITE}" "${SITE_OFFLINE}"
mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${SITE}"
OFFLINE=true mkdocs build "${FLAGS[@]}" -f "${MKDOCS_CONFIG}" -d "${SITE_OFFLINE}"
- name: Zip offline site
run: |
set -euo pipefail
cd "${RUNNER_TEMP}/mkdocs_out/site_offline/"
zip -r "${GITHUB_REF_NAME}.zip" ./${GITHUB_REF_NAME}
- name: Publish prerelease
if: startsWith(github.ref_name, 'rc')
uses: softprops/action-gh-release@v2
with:
prerelease: true
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
body: |
Release candidate preview.
files: |
${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip
- name: Publish release
if: startsWith(github.ref_name, 'v')
uses: softprops/action-gh-release@v2
with:
name: ${{ github.ref_name }}
tag_name: ${{ github.ref_name }}
files: |
${{ runner.temp }}/mkdocs_out/site_offline/${{ github.ref_name }}.zip
- name: Checkout gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0
- name: Deploy release to gh-pages root
if: startsWith(github.ref_name, 'v')
run: |
set -euo pipefail
rm -rf ./*
cp -a ${RUNNER_TEMP}/mkdocs_out/site/. .
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 release ${GITHUB_REF_NAME}" || echo "No changes to commit"
git push origin gh-pages
- name: Deploy RC preview to /rc/
if: startsWith(github.ref_name, 'rc')
run: |
set -euo pipefail
rm -rf rc
mkdir -p rc
cp -a ${RUNNER_TEMP}/mkdocs_out/site/. rc/
printf '{"tag":"%s"}\n' "${GITHUB_REF_NAME}" > rc/rc.json
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 ${GITHUB_REF_NAME}" || echo "No changes to commit"
git push origin gh-pages

View File

@@ -1,5 +1,5 @@
<p align="center">
<img src="assets/cmba-logo.svg" width="200">
<img src="docs/assets/cmba-logo.svg" width="200">
</p>
# CMBA Constitution and Bylaws

View File

@@ -1,3 +1 @@
# CMBA Rulebooks
Use the navigation to view the documents.
# CMBA Constitution and By-Laws

View File

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

View File

@@ -1,4 +1,4 @@
site_name: CMBA Rulebook
site_name: CMBA Constitution and By-Laws
docs_dir: ../docs
# Prevent accidental publishing of repo/CI/dev clutter
@@ -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