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

[18] Bashkatov, A., Bürkle, F., Demirkır, Ç., Ding, W., Sanjay, V., Babich, A., Yang, X., Mutschke, G., Czarske, J., Lohse, D., Krug, D., Büttner, L., & Eckert, K. Electrolyte droplet spraying in H2 bubbles during water electrolysis. Nat. Commun., 16, 4580 (2025).

-BubblesJets +
BubblesJets
[![Nat. Commun.](https://img.shields.io/static/v1.svg?style=flat-square&label=Nat.%20Commun.&message=OA&color=orange)](https://doi.org/10.1038/s41467-025-59762-7) [![Blog](https://img.shields.io/badge/Blog-Coming%20Soon-yellow?style=flat-square&logo=obsidian&logoColor=white)](https://blogs.comphy-lab.org/0_ToDo-Blog-public) diff --git a/CLAUDE.md b/CLAUDE.md index 3984a61..2d75004 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -30,7 +30,7 @@ The website implements a sophisticated command palette system that requires coor - Client-side JavaScript filtering with SEO-friendly static pages - Pre-generated tag pages that redirect to filtered views - Multiple URL variations for better SEO coverage -- Tags must be added to `_research/index.md` using `TagName` format +- Tags must be added to `_research/index.md` using `
TagName
` format ## Essential Commands @@ -68,7 +68,7 @@ Add to `_research/index.md` with this exact format: ```markdown

[NUMBER] Author1, A., **Author2, B.**, & Author3, C. Title. _Journal_, Volume, Pages (Year).

-Tag1Tag2Featured +
Tag1Tag2Featured
[![Badge](https://img.shields.io/static/v1.svg?style=flat-square&label=LABEL&message=MESSAGE&color=COLOR)](URL) ``` diff --git a/README.md b/README.md index c596134..55e6720 100644 --- a/README.md +++ b/README.md @@ -227,7 +227,7 @@ A static website for the Computational Multiphase Physics Laboratory, built with ```markdown

[NUMBER] Author1, A., **Author2, B.**, & Author3, C. Title. _Journal_, Volume, Pages (Year).

-Tag1Tag2Featured +
Tag1Tag2Featured
[![Badge1](https://img.shields.io/static/v1.svg?style=flat-square&label=LABEL&message=MESSAGE&color=COLOR)](URL) [![Badge2](https://img.shields.io/static/v1.svg?style=flat-square&label=LABEL&message=MESSAGE&color=COLOR)](URL) @@ -429,7 +429,7 @@ The search functionality includes content from our external blog at blogs.comphy Research papers can be tagged with multiple topics. Tags are defined in the markdown files using the following format: ```html -Tag1Tag2 +
Tag1Tag2
``` These tags are: diff --git a/_layouts/history.html b/_layouts/history.html index 6de682b..b9f13fb 100644 --- a/_layouts/history.html +++ b/_layouts/history.html @@ -80,6 +80,7 @@ + @@ -314,4 +315,4 @@ - \ No newline at end of file + diff --git a/_layouts/research.html b/_layouts/research.html index 62a0932..2d93833 100644 --- a/_layouts/research.html +++ b/_layouts/research.html @@ -62,6 +62,9 @@ } + + + @@ -274,12 +277,6 @@

Contents

- - - - - - + @@ -129,8 +130,6 @@ })(); - - - \ No newline at end of file + diff --git a/_layouts/team.html b/_layouts/team.html index d6fd315..5863052 100644 --- a/_layouts/team.html +++ b/_layouts/team.html @@ -398,12 +398,6 @@

Team, collaborators, and Conference visits

- - - - - -