Skip to content

Commit d4ca610

Browse files
committed
Remove redundant CLAUDE doc and clean local generated artifacts
1 parent 552ce71 commit d4ca610

7 files changed

Lines changed: 195 additions & 218 deletions

File tree

.github/workflows/validate.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: Validate Site
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
validate:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Build with Jekyll
19+
uses: actions/jekyll-build-pages@v1
20+
with:
21+
source: .
22+
destination: ./_site
23+
24+
- name: Validate generated output
25+
run: |
26+
set -euo pipefail
27+
28+
for f in \
29+
_site/index.html \
30+
_site/assets.html \
31+
_site/challenge.html \
32+
_site/capability.html \
33+
_site/framework.html \
34+
_site/decisions.html \
35+
_site/measurement.html \
36+
_site/barriers.html \
37+
_site/assets/css/site.css \
38+
_site/assets/js/site.js \
39+
_site/assets/images/network.png \
40+
_site/assets/images/kore-logo-horizontal-gradient-dark.svg; do
41+
test -f "$f" || { echo "Missing expected file: $f"; exit 1; }
42+
done
43+
44+
python3 - <<'PY'
45+
import re
46+
import pathlib
47+
import sys
48+
49+
pages = [
50+
"_site/index.html",
51+
"_site/assets.html",
52+
"_site/challenge.html",
53+
"_site/capability.html",
54+
"_site/framework.html",
55+
"_site/decisions.html",
56+
"_site/measurement.html",
57+
"_site/barriers.html",
58+
]
59+
nav_targets = [
60+
"/assets.html",
61+
"/challenge.html",
62+
"/capability.html",
63+
"/framework.html",
64+
"/decisions.html",
65+
"/measurement.html",
66+
"/barriers.html",
67+
]
68+
expected_canonical = {
69+
"_site/index.html": "https://knowledge-intelligence.dev/",
70+
"_site/assets.html": "https://knowledge-intelligence.dev/assets.html",
71+
"_site/challenge.html": "https://knowledge-intelligence.dev/challenge.html",
72+
"_site/capability.html": "https://knowledge-intelligence.dev/capability.html",
73+
"_site/framework.html": "https://knowledge-intelligence.dev/framework.html",
74+
"_site/decisions.html": "https://knowledge-intelligence.dev/decisions.html",
75+
"_site/measurement.html": "https://knowledge-intelligence.dev/measurement.html",
76+
"_site/barriers.html": "https://knowledge-intelligence.dev/barriers.html",
77+
}
78+
79+
for page in pages:
80+
html = pathlib.Path(page).read_text(encoding="utf-8")
81+
if 'href="/assets/css/site.css"' not in html:
82+
print(f"Missing shared CSS reference in {page}")
83+
sys.exit(1)
84+
if 'src="/assets/js/site.js"' not in html:
85+
print(f"Missing shared JS reference in {page}")
86+
sys.exit(1)
87+
for target in nav_targets:
88+
if f'href="{target}"' not in html:
89+
print(f"Missing nav target {target} in {page}")
90+
sys.exit(1)
91+
match = re.search(r'<link rel="canonical" href="([^"]+)"', html)
92+
if not match:
93+
print(f"Missing canonical tag in {page}")
94+
sys.exit(1)
95+
if match.group(1) != expected_canonical[page]:
96+
print(f"Canonical mismatch in {page}: {match.group(1)}")
97+
sys.exit(1)
98+
99+
print("Validation passed.")
100+
PY

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ instructions/
1313
# Local Claude Code settings
1414
.claude/
1515

16+
# Jekyll local build and cache artifacts
17+
_site/
18+
.jekyll-cache/
19+
.jekyll-metadata
20+
.sass-cache/
21+
1622
# Images not used by the deployed site
1723
images/3d-network.png
1824
images/blue-graph.png
@@ -23,4 +29,3 @@ images/mockup-tacit-constellation.svg
2329
images/dalle-prompt-pack.md
2430
images/diagrams/
2531
images/simple_landing_concept_1.png
26-
_site/

AGENTS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
Repository-specific guidance for Codex and other coding agents.
44

5+
## Authority
6+
- This file is the single source of truth for agent behavior in this repository.
7+
- If another agent-specific file conflicts with this file, follow `AGENTS.md`.
8+
- Agent-specific files are optional compatibility notes only and must not override this file.
9+
510
## Project Context
611
- Repo: `knowledge-intelligence`
712
- Type: Static GitHub Pages site (Jekyll build in CI)
@@ -31,6 +36,12 @@ Repository-specific guidance for Codex and other coding agents.
3136
- Public URLs stay root-level (`/assets.html`, etc.) via `permalink` values in `pages/*.html`.
3237
- Keep `CNAME` in the repo root to preserve custom domain mapping.
3338

39+
## Content Governance
40+
- Write in plain, precise language; avoid hype and transformation buzzwords.
41+
- Avoid unverified statistics or claims.
42+
- Prefer structurally defensible assertions tied to governance, measurement, and decision quality.
43+
- Treat Knowledge Intelligence as an operating/governance capability, not a marketing category.
44+
3445
## Validation Checklist (Before Commit)
3546
1. Confirm changed assets exist and paths in `index.html` / `pages/*.html` are correct.
3647
2. Verify no local/internal directories were unintentionally unignored for publishing.

CLAUDE.md

Lines changed: 0 additions & 217 deletions
This file was deleted.

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,35 @@ The site is deployed by GitHub Actions + GitHub Pages via `.github/workflows/dep
3131
- Published artifact: `./_site`
3232
- Public chapter URLs remain clean at root (`/assets.html`, `/challenge.html`, etc.) via page-level `permalink` front matter in `pages/*.html`
3333

34+
## Editing guide
35+
36+
- Update homepage content in `index.html`.
37+
- Update chapter content in `pages/*.html`.
38+
- Keep each chapter front matter intact:
39+
- `---`
40+
- `permalink: /<chapter>.html`
41+
- `---`
42+
- Shared presentation logic belongs in:
43+
- `assets/css/site.css`
44+
- `assets/js/site.js`
45+
- Use root-relative paths for internal links and assets (e.g. `/assets.html`, `/assets/css/site.css`).
46+
47+
## Quality checks
48+
49+
- PR validation workflow: `.github/workflows/validate.yml`
50+
- Builds with Jekyll
51+
- Verifies expected output files
52+
- Verifies canonical tags and critical nav links
53+
54+
Local validation (optional):
55+
56+
```bash
57+
JEKYLL_ENV=production jekyll build --source . --destination ./_site
58+
```
59+
60+
## SEO and crawl files
61+
62+
- `robots.txt`
63+
- `sitemap.xml`
64+
3465
From information abundance to decision advantage.

0 commit comments

Comments
 (0)