Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ This project is a static toolbox site. The landing page (`index.html`) lists sma
- A new regression spec enforces Home buttons across apps—after tweaking navigation chrome, run `npx playwright test tests/home-navigation.spec.js`.

## Documentation
- The `ai_docs/` directory hosts the Markdown knowledge base. Update the relevant guides whenever you change workflows, scripts, or datasets so the docs remain authoritative.
- When you add, remove, or rename a guide, update the `guides` array in `ai_docs/index.html` so the navigation stays in sync.
- After editing documentation, open `ai_docs/index.html` in a browser (or via `npx serve .`) to confirm the Markdown renders through Marked and the hash navigation works.
- The `docs/` directory hosts the Markdown knowledge base. Update the relevant guides whenever you change workflows, scripts, or datasets so the docs remain authoritative.
- When you add, remove, or rename a guide, update the `guides` array in `docs/index.html` so the navigation stays in sync.
- After editing documentation, open `docs/index.html` in a browser (or via `npx serve .`) to confirm the Markdown renders through Marked and the hash navigation works.
7 changes: 0 additions & 7 deletions ai_docs/AGENTS.md

This file was deleted.

7 changes: 7 additions & 0 deletions docs/AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Documentation workspace

- Keep documentation in Markdown under `docs/docs/`. Use descriptive headings and prefer tables for directory overviews.
- Whenever you add a new guide, update `docs/index.html` so the navigation lists the page. Each entry in the `guides` array should include an `id`, `title`, `file`, and concise `summary`.
- Render tweaks should preserve the two-space indentation used throughout the HTML and CSS. Stick with the existing palette and typography to keep the docs visually aligned with the landing page.
- After editing docs, load `docs/index.html` in a browser (or via `npx serve .`) to confirm the Markdown renders and navigation links update the hash correctly.
- Keep cross-references current: when workflows, scripts, or tests change, update the relevant Markdown sections and summaries so the knowledge base stays authoritative.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions ai_docs/docs/deploy-logs.md → docs/docs/deploy-logs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
## Log excerpt

```
2025-09-25T02:26:41Z warn Service worker returned /index.html for navigation request /ai_docs/
2025-09-25T02:26:41Z warn Service worker returned /index.html for navigation request /docs/
2025-09-25T02:26:42Z info Retrying navigation without cache fallback
2025-09-25T02:26:42Z info Navigation succeeded after bypassing cached landing page
```

## What went wrong

The service worker treated every navigation as eligible for the cached landing page before attempting a network fetch. When the
homepage already lived in the cache, the `ai_docs/` navigation surfaced the landing markup instead of the documentation shell.
homepage already lived in the cache, the `docs/` navigation surfaced the landing markup instead of the documentation shell.

## Mitigation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This guide distils the practices captured across the repository’s `AGENTS.md`
## Adding or updating apps

1. Create a folder under `apps/<name>/` with `index.html`, any supporting datasets, and a script entry point (`app.js`).
2. Follow the landing page card pattern (`<a class="app-button">`) and add the new card to `index.html`. Include developer shortcut links in the `.dev-tools` section when relevant.
2. Follow the landing page card pattern (`<a class="app-button">`) and add the new card to `index.html`. Include developer shortcut links in the `.dev-tools` section when relevant. Pick an emoji or icon that is unique across the landing page so no two apps share the same symbol.
3. If the app ships multiple pages (archives, compact views), ensure each page exposes a Home link (`../../`) so `tests/home-navigation.spec.js` and `tests/home.spec.js` stay green.
4. Update `offline-manifest.json` via `npm run build:offline` so the service worker caches the new assets.
5. Add or extend Playwright specs under `tests/` to cover the new surface area.
Expand All @@ -36,5 +36,5 @@ This guide distils the practices captured across the repository’s `AGENTS.md`

## Documentation upkeep

- The `ai_docs/` folder hosts this documentation hub. Whenever you add a new guide, update `ai_docs/index.html` to register it in the navigation.
- The `docs/` folder hosts this documentation hub. Whenever you add a new guide, update `docs/index.html` to register it in the navigation.
- Keep the docs in sync with behavioural changes (new scripts, updated datasets, revised tests). Treat documentation updates as part of each pull request that changes workflows.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,9 @@ <h2 id="tools-section" class="section-title">Labs &amp; tools</h2>
</a>
</li>
<li>
<a class="docs-button app-button--secondary app-button--wide" href="ai_docs/">
<span aria-hidden="true">📚</span>
<span>AI Docs</span>
<a class="docs-button app-button--secondary app-button--wide" href="docs/">
<span aria-hidden="true">📖</span>
<span>Docs</span>
</a>
</li>
<li>
Expand Down
Loading