Skip to content

Add spectral geometry paper, figures, notebook + DOI 10.5281/zenodo.1… #153

Add spectral geometry paper, figures, notebook + DOI 10.5281/zenodo.1…

Add spectral geometry paper, figures, notebook + DOI 10.5281/zenodo.1… #153

Workflow file for this run

name: Documentation Linter
on:
push:
paths:
- 'publications/papers/markdown/*.md'
- 'docs/*.md'
- '.github/scripts/docs_linter.py'
pull_request:
paths:
- 'publications/papers/markdown/*.md'
- 'docs/*.md'
- '.github/scripts/docs_linter.py'
- '.github/scripts/fix_em_dashes.py'
workflow_dispatch:
jobs:
lint-docs:
runs-on: ubuntu-latest
name: Lint Documentation
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Run documentation linter
run: python .github/scripts/docs_linter.py
- name: Check for em dashes
run: python .github/scripts/fix_em_dashes.py --check
- name: Upload lint report
uses: actions/upload-artifact@v4
if: always()
with:
name: docs-lint-report
path: docs_lint_report.json
retention-days: 30
- name: Check markdown links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
folder-path: 'publications/papers/markdown/, docs/'
config-file: '.github/markdown-link-check-config.json'
continue-on-error: true
style-check:
runs-on: ubuntu-latest
name: Style Consistency
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check consistent notation
run: |
echo "Checking notation consistency..."
# Check for mixed notation styles
MIXED_SIN2=$(grep -rn "sin\^2" publications/papers/markdown/ || true)
if [ -n "$MIXED_SIN2" ]; then
echo "WARNING: Found 'sin^2' notation, prefer 'sin²'"
echo "$MIXED_SIN2"
fi
# Check for proper subscript usage
WRONG_B2=$(grep -rn "b_2\|b\_2" publications/papers/markdown/ | grep -v "b₂" || true)
if [ -n "$WRONG_B2" ]; then
echo "WARNING: Found 'b_2' or 'b\_2', prefer 'b₂'"
echo "$WRONG_B2"
fi
echo "Notation check complete"