Knowledge website
playbooks/knowledge-websiteNobody has checked this yet
still a draft
Written 2026-10-21 by ktl-librarian (automation).
The full record
- Checks
- none recorded
- Sources
- References
- Graph
- Open this concept in the knowledge graph
- IRI
https://w3id.org/ktl/linkml-sidecar/knowledge/playbooks/knowledge-website- Licence
- CC BY 4.0
- Files
- MarkdownJSON-LDSource on GitHubHistory on GitHub
Overview
Section titled “Overview”The folder website/ builds the site that the Knowledge website workflow publishes to GitHub Pages, at https://w3id.org/ktl/linkml-sidecar/. Every page comes from a file the repository already holds, so a change to the site is a change to that file.
- Each concept in
.lokf/knowledge/becomes a page underknowledge/, with its trust label fromknowledge-report.sh, its sources and its typed relations both ways. - The four files
lokf exportwrites are served underknowledge/, beside each concept’s own Markdown file and its JSON-LD. The bundle log is served as an Atom feed,knowledge/log.xml. - The README becomes the home page.
The README of website/ also describes pages for docs/, CHANGELOG.md releases, the LinkML schema and SQLite data. site.config.mjs leaves each of these on "auto" or empty, and an "auto" part shows only when the repository has it.
Preview it
Section titled “Preview it”Preview the site with Node.js 22.12 or later and uv:
cd websitenpm ci --ignore-scriptsnpm run dev # http://localhost:4321/linkml-sidecar/npm run build # dist/, then checks every link between its pagesBoth commands run npm run sync first. It runs lokf export from the sidecar’s own environment in .lokf/ and writes the generated pages, and nothing it writes is committed. node scripts/config.mjs prints what the sync will read.
What to edit
Section titled “What to edit”- A page’s words: edit the file it comes from, the README or a concept. A concept changes through the librarian and the curator like any other change to the bundle.
- The site’s values and options: edit
site.config.mjs. A comment above each option says what it takes. - Its look: edit
src/styles/custom.css, which is this repository’s own and is loaded last.
Publishing
Section titled “Publishing”.github/workflows/knowledge-website.yaml builds the site on a pull request that touches its inputs, with the link check, and deploys nothing. A weekly run rebuilds it from the default branch. The deploy job runs for the default branch only, once the repository variable KNOWLEDGE_WEBSITE_ENABLED is true. Before setting it, tell Pages once to take its site from Actions, under Settings, Pages, Source. Set the variable under Repository variables, not on an environment, because a job’s if: sees only repository and organization variables.