Skip to content

docs: hide CLI, Scaffold, and Hyperboards pages - #157

Open
Kzoeps wants to merge 4 commits into
mainfrom
docs/hide-cli-scaffold-hyperboards
Open

docs: hide CLI, Scaffold, and Hyperboards pages#157
Kzoeps wants to merge 4 commits into
mainfrom
docs/hide-cli-scaffold-hyperboards

Conversation

@Kzoeps

@Kzoeps Kzoeps commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • move the CLI, Scaffold, and Hyperboards pages from pages/tools/ to drafts/tools/
  • remove navigation, quick-link, and internal documentation references to those routes
  • keep the Markdown source available to restore later without generating public routes
  • add regression coverage that keeps archived pages outside pages/ and unlinked

Validation

  • pnpm test — 31 tests passed
  • pnpm build — passed; the three archived routes are not generated

@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hypercerts-v0.2-documentation Ready Ready Preview Jul 30, 2026 11:46am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This change centralizes hidden tool routes, excludes them from search and sitemap generation, removes authored navigation references, updates related documentation, and adds tests verifying source availability and discoverability exclusions.

Changes

Hidden Tool Visibility

Layer / File(s) Summary
Hidden route configuration and generated artifacts
lib/page-visibility.json, lib/generate-search-index.js, lib/generate-sitemap.js
Defines hidden tool paths and filters matching routes from generated search and sitemap outputs.
Navigation and documentation references
lib/navigation.js, components/Layout.js, components/SearchDialog.js, pages/architecture/..., pages/getting-started/quickstart.md, pages/tools/hyperscan.md
Removes hidden tool links, points the header Tools link to Agent Skills, updates quick links, and revises related documentation.
Hidden route validation
test/hidden-tool-visibility.test.js
Checks that hidden tool Markdown sources exist and that their routes are absent from search indexes, sitemaps, and authored links.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: hiding the CLI, Scaffold, and Hyperboards pages from site visibility.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/hide-cli-scaffold-hyperboards

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
test/hidden-tool-visibility.test.js (1)

9-14: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Use the shared hidden-route configuration in the test.

This test duplicates lib/page-visibility.json, so adding a future hidden route can change production behavior without extending regression coverage. Import hiddenPaths and derive HIDDEN_PAGE_FILES from that shared value.

Proposed fix
-const HIDDEN_PATHS = [
-  '/tools/hypercerts-cli',
-  '/tools/scaffold',
-  '/tools/hyperboards',
-];
+const { hiddenPaths: HIDDEN_PATHS } = require('../lib/page-visibility.json');
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/hidden-tool-visibility.test.js` around lines 9 - 14, Update
test/hidden-tool-visibility.test.js to import the shared hiddenPaths
configuration from lib/page-visibility.json and derive HIDDEN_PAGE_FILES from
it, removing the duplicated HIDDEN_PATHS list. Preserve the existing
pages${path}.md mapping so the test automatically covers future hidden routes.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@test/hidden-tool-visibility.test.js`:
- Around line 29-30: Update the setup around the hidden-tool visibility test and
its execFileSync call to ensure external-docs-content.json is available before
invoking lib/generate-search-index.js. Use the repository’s documented
preparation step or add the required test fixture, while preserving the existing
hidden-page exclusion assertion.

---

Nitpick comments:
In `@test/hidden-tool-visibility.test.js`:
- Around line 9-14: Update test/hidden-tool-visibility.test.js to import the
shared hiddenPaths configuration from lib/page-visibility.json and derive
HIDDEN_PAGE_FILES from it, removing the duplicated HIDDEN_PATHS list. Preserve
the existing pages${path}.md mapping so the test automatically covers future
hidden routes.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 1c75c9b9-92ef-487c-9bad-292a828fa9b7

📥 Commits

Reviewing files that changed from the base of the PR and between ab6e013 and 1f04cd2.

📒 Files selected for processing (10)
  • components/Layout.js
  • components/SearchDialog.js
  • lib/generate-search-index.js
  • lib/generate-sitemap.js
  • lib/navigation.js
  • lib/page-visibility.json
  • pages/architecture/account-and-identity.md
  • pages/getting-started/quickstart.md
  • pages/tools/hyperscan.md
  • test/hidden-tool-visibility.test.js
💤 Files with no reviewable changes (3)
  • pages/tools/hyperscan.md
  • components/SearchDialog.js
  • lib/navigation.js

Comment thread test/hidden-tool-visibility.test.js Outdated
Comment on lines +29 to +30
test('excludes hidden tool pages from the generated search index', () => {
execFileSync(process.execPath, ['lib/generate-search-index.js'], { cwd: ROOT });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win

Provide the external-docs-content prerequisite before running this test.

execFileSync invokes the search-index generator directly, but CI reports that it crashes with missing external-docs-content.json; the hidden-route assertion is never reached. Add test setup/fixtures for that prerequisite, or invoke the repository’s documented preparation step before generating the index.

🧰 Tools
🪛 GitHub Actions: Docs CI / 0_Test and build documentation.txt

[error] 29-30: Test failed: 'excludes hidden tool pages from the generated search index' (ERR_TEST_FAILURE) due to missing external docs content file.

🪛 GitHub Actions: Docs CI / Test and build documentation

[error] 29-30: Test failed: 'excludes hidden tool pages from the generated search index' due to missing external-docs-content.json (generate-search-index crashed with ERR_TEST_FAILURE).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@test/hidden-tool-visibility.test.js` around lines 29 - 30, Update the setup
around the hidden-tool visibility test and its execFileSync call to ensure
external-docs-content.json is available before invoking
lib/generate-search-index.js. Use the repository’s documented preparation step
or add the required test fixture, while preserving the existing hidden-page
exclusion assertion.

Source: Pipeline failures

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