Skip to content

feat(wiki): add full in-app wiki browser and llms index#80

Merged
davida-ps merged 16 commits intomainfrom
codex/wiki-tab-ui
Feb 26, 2026
Merged

feat(wiki): add full in-app wiki browser and llms index#80
davida-ps merged 16 commits intomainfrom
codex/wiki-tab-ui

Conversation

@davida-ps
Copy link
Collaborator

@davida-ps davida-ps commented Feb 26, 2026

User description

Opener Type

  • Human
  • Agent (automated)

Summary

Changes Made

Related Issues


Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Security incident (please open a Security Incident Report issue instead of a PR)

Testing

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my changes
  • I have added tests that prove my fix/feature works
  • New and existing tests pass locally

Generated description

Below is a concise technical summary of the changes proposed in this PR:

graph LR
Route_wiki_("Route /wiki/*"):::added
WikiBrowser_("WikiBrowser"):::added
WIKI_DOC_MAP_("WIKI_DOC_MAP"):::added
WIKI_ASSET_MAP_("WIKI_ASSET_MAP"):::added
defaultMarkdownComponents_("defaultMarkdownComponents"):::added
SkillDetail_("SkillDetail"):::modified
Header_("Header"):::modified
Route_wiki_ -- "Adds route rendering WikiBrowser for /wiki/*" --> WikiBrowser_
WikiBrowser_ -- "Builds slug-to-doc map from markdown files" --> WIKI_DOC_MAP_
WikiBrowser_ -- "Indexes wiki assets to resolve relative image/link URLs" --> WIKI_ASSET_MAP_
WikiBrowser_ -- "Uses shared markdown components for consistent rendering" --> defaultMarkdownComponents_
SkillDetail_ -- "Switches to shared defaultMarkdownComponents for skill docs" --> defaultMarkdownComponents_
Header_ -- "Adds 'Wiki' nav link pointing to /wiki route" --> Route_wiki_
classDef added stroke:#15AA7A
classDef removed stroke:#CD5270
classDef modified stroke:#EDAC4C
linkStyle default stroke:#CBD5E1,font-size:13px
Loading

Integrates a full in-app Wiki browser, allowing users to navigate repository documentation directly within the application UI. Establishes an automated system for generating LLM-ready llms.txt exports from markdown files and updates CI/CD pipelines to validate and deploy these new wiki assets.

TopicDetails
In-App Wiki Integration Implements the user-facing Wiki browser, including new application routes, navigation links, and a dedicated component for rendering markdown content. This involves centralizing markdown component definitions and creating utilities for path normalization, title extraction, and asset resolution to provide a seamless documentation experience.
Modified files (7)
  • App.tsx
  • components/Header.tsx
  • pages/SkillDetail.tsx
  • pages/WikiBrowser.tsx
  • utils/markdownComponents.tsx
  • utils/markdownHelpers.mjs
  • utils/wikiPathHelpers.mjs
Latest Contributors(2)
UserCommitDate
[email protected]feat-enhance-support-f...February 25, 2026
[email protected]ClawSec-initFebruary 05, 2026
Wiki Content & CI/CD Establishes the infrastructure for managing and deploying wiki content, including scripts to generate LLM-friendly text exports and updates to the build process. Introduces a new GitHub Actions workflow (pages-verify.yml) for validating wiki builds on pull requests and refines the main deployment workflow (deploy-pages.yml) to ensure proper production deployment. Additionally, migrates existing operational documentation from the docs/ directory into the new wiki/ structure and updates internal references.
Modified files (19)
  • .github/workflows/deploy-pages.yml
  • .github/workflows/pages-verify.yml
  • .gitignore
  • README.md
  • package-lock.json
  • package.json
  • scripts/generate-wiki-llms.mjs
  • scripts/populate-local-wiki.sh
  • skills/clawsec-nanoclaw/README.md
  • wiki/GENERATION.md
  • wiki/INDEX.md
  • wiki/compatibility-report.md
  • wiki/migration-signed-feed.md
  • wiki/overview.md
  • wiki/platform-verification.md
  • wiki/remediation-plan.md
  • wiki/security-signing-runbook.md
  • wiki/security.md
  • wiki/testing.md
Latest Contributors(2)
UserCommitDate
[email protected]feat-enhance-support-f...February 25, 2026
[email protected]feat-enhance-skill-rel...February 12, 2026
This pull request is reviewed by Baz. Review like a pro on (Baz).

Comment on lines +69 to +73
const sanitizeHref = (href: string): string | null => {
const trimmed = href.trim();
if (!trimmed) return null;
if (trimmed.startsWith('//')) return null;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trimming/scheme-validation flow inside sanitizeHref and the nearly identical sanitizeImageSrc in pages/WikiBrowser.tsx are duplicated except for the allowed-schemes set, so scheme changes now require two edits and link/image sanitization can drift—can we extract a shared sanitizeByAllowedSchemes(value, schemes) helper and drive both components through it?

Finding type: Code Dedup and Conventions


  • Apply fix with Baz

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit c899970 addressed this comment by updating the GitHub Pages deployment workflow in .github/workflows/deploy-pages.yml and adding a new .github/workflows/pages-verify.yml workflow for Pages verification.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope it didnt fix it. but we're going to pass on this anyway its petty refactor not in scope

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood, we’ll skip this refactor as it’s out of scope for now—I'll remember this preference after the PR is merged.

@davida-ps davida-ps merged commit fefecaa into main Feb 26, 2026
13 checks passed
@davida-ps davida-ps deleted the codex/wiki-tab-ui branch February 26, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant