Files
penguin-harness/packages/docs/README.md
T
Yaowei Zheng 45bfae6e94 Initialize repository with harness code and assets
Initial import of all source code, config, and README assets: the
packages workspace (cli, core, server, web, docs, landing, skills),
build scripts, tooling config, and CI workflows.

Includes the data-layout revision made on this branch: the local data
root defaults to ~/.penguin/data (PENGUIN_HOME still overrides; the
installer keeps its binaries in ~/.penguin), and every Agent lives
under <project>/agents/<agent>/ — path helpers, the three
agent-enumeration scans, the system prompt, built-in Skills, tests
and docs all follow the new layout.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018ihk8iQuo3kv2aPjAYEPuR
2026-07-19 14:06:53 +08:00

2.0 KiB

@prismshadow/penguin-docs

The PenguinHarness documentation site (React + Vite + Tailwind CSS 4). Its own package, sharing the landing page's visual language: bilingual pages (zh/en), light/dark themes, a sidebar + per-page table of contents, and a "Copy Markdown" button on every page.

Live at https://prism-shadow.github.io/penguin-harness/docs/.

Content model

Pages are local Markdown files — content/<slug>.<zh|en>.md, one file per page per language (missing languages fall back to the other). Frontmatter:

---
title: Page title
description: One-line summary rendered under the title
---

Navigation (sections, order, prev/next) is defined once in src/lib/nav.ts; a vitest check (test/content.test.ts) keeps nav and content in sync — every navigated slug must have both language files with a title, and no orphan files may exist. Internal links are written as absolute doc paths ([Core Interfaces](/interfaces)).

Development

pnpm dev:docs                                      # http://127.0.0.1:7367 (repo root script)
pnpm --filter @prismshadow/penguin-docs build      # dist/ + per-route shells for deep links
pnpm --filter @prismshadow/penguin-docs typecheck
pnpm --filter @prismshadow/penguin-docs test

Deployment

Deployed to GitHub Pages together with the landing page as one artifact: scripts/build-site.mjs (repo root) builds landing with BASE_PATH=<base> and docs with BASE_PATH=<base>docs/, then copies this package's dist/ into the landing dist under docs/. .github/workflows/pages.yml runs it on pushes to main touching either package.

BASE_PATH=/ pnpm build:site                        # assemble locally
pnpm --filter @prismshadow/penguin-landing preview # serve the assembled site

Deep links work without a 404 fallback: the post-build step copies the SPA shell to dist/<slug>/index.html for every content slug.

Part of PenguinHarness · Apache-2.0