diff --git a/.github/workflows/content-rules-checks.yml b/.github/workflows/content-rules-checks.yml new file mode 100644 index 0000000..37ff04a --- /dev/null +++ b/.github/workflows/content-rules-checks.yml @@ -0,0 +1,36 @@ +name: Content Rules Checks + +on: + pull_request: + branches: ["main"] + paths: + - "history.md" + - "_research/index.md" + - "CLAUDE.md" + - "README.md" + - "scripts/validate-content-rules.sh" + paths-ignore: + - ".*/**/*.md" + - "**/.*/**/*.md" + push: + branches: ["main"] + paths: + - "history.md" + - "_research/index.md" + - "CLAUDE.md" + - "README.md" + - "scripts/validate-content-rules.sh" + paths-ignore: + - ".*/**/*.md" + - "**/.*/**/*.md" + +jobs: + content-rules: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Validate history and research content rules + run: bash scripts/validate-content-rules.sh diff --git a/.github/workflows/teaching-content-checks.yml b/.github/workflows/teaching-content-checks.yml new file mode 100644 index 0000000..52cc39a --- /dev/null +++ b/.github/workflows/teaching-content-checks.yml @@ -0,0 +1,42 @@ +name: Teaching Content Checks + +on: + pull_request: + branches: ["main"] + paths: + - "_teaching/**/*.md" + - ".markdownlint-cli2.jsonc" + - ".prettierrc.json" + - "package.json" + - "package-lock.json" + push: + branches: ["main"] + paths: + - "_teaching/**/*.md" + - ".markdownlint-cli2.jsonc" + - ".prettierrc.json" + - "package.json" + - "package-lock.json" + +jobs: + markdown-quality: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Run markdownlint for teaching content + run: npx markdownlint-cli2 --config .markdownlint-cli2.jsonc "_teaching/**/*.md" + + - name: Check prettier formatting for teaching content + run: npx prettier --check "_teaching/**/*.md" diff --git a/.opencode/commands/add-news.md b/.opencode/commands/add-news.md index f90a08b..2cbc08e 100644 --- a/.opencode/commands/add-news.md +++ b/.opencode/commands/add-news.md @@ -11,7 +11,7 @@ Follow these steps: - Years are organized with `## Year` headings (e.g., `## 2026`, `## 2025`) - Years are sorted descending (newest first) - Create year section if it doesn't exist - - Months within a year are in chronological order (January at top) + - Months within a year are in reverse chronological order (December at top) - Format: `- [news content]` 5. Add the same item to News.md: - Years are organized with `## Year` headings diff --git a/.opencode/commands/add-paper.md b/.opencode/commands/add-paper.md index 244dbf5..df76730 100644 --- a/.opencode/commands/add-paper.md +++ b/.opencode/commands/add-paper.md @@ -150,7 +150,7 @@ Output (for paper [18]): ```markdown