Skip to content

docs(mcpx): mdBook skeleton + .#mcpx-docs flake output (#1939) - #2680

Closed
dezren39 wants to merge 1 commit into
mainfrom
queue/3236-1939-mdbook
Closed

dezren39 wants to merge 1 commit into
mainfrom
queue/3236-1939-mdbook

Conversation

@dezren39

@dezren39 dezren39 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Implements Approach C of the #1939 decision (queue task 3236): stand up the mdBook book skeleton for mcpx.

  • pkgs/mcpx/docs/book.toml — mdBook config; the book source is the docs directory itself, so the markdown that renders on GitHub is the book.
  • pkgs/mcpx/docs/SUMMARY.md — covers all 62 existing markdown files (top-level docs, decisions/, spec/, plus the nested READMEs), titles taken from each file's first heading. No existing content rewritten.
  • pkgs/mcpx/docs.nix — runCommand derivation building the book with the flake's pinned mdbook, sandboxed, no network.
  • lib/default.nix — exposes it as packages.mcpx-docs next to mcpx in make-root-apps.

Known issue (recorded on task 3236): nix build .#mcpx-docs currently fails at evaluation in the make-root-apps scope — pkgs.callPackage ../pkgs/mcpx/docs.nix reports the function called without required arguments (lib on one evaluation, mdbook on the next), i.e. callPackage is not supplying the usual nixpkgs arguments in that scope. The settings docs test and the book files are unaffected; the next worker picks up the diagnosis (fallback if callPackage cannot be fixed there: inline the runCommand in lib/default.nix with pkgs.mdbook referenced directly). Parked for that diagnosis + CI.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Approach C from the #1939 decision: book.toml + SUMMARY.md covering
all 62 existing markdown files under pkgs/mcpx/docs (no content
rewritten), pkgs/mcpx/docs.nix building the book with the pinned
mdbook via runCommand, exposed as packages.mcpx-docs alongside mcpx
in make-root-apps.

Known issue at push time: nix build .#mcpx-docs fails during
evaluation in the make-root-apps callPackage scope -- docs.nix is
called without required arguments (lib, then mdbook on a second
evaluation). Diagnosis continues on the task; CI flake check will
show the same. The book files themselves are verified present and
SUMMARY.md is generated from the docs tree.
@dezren39
dezren39 requested a review from a team as a code owner October 30, 2026 10:24
@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 17cf89dc-4722-4afb-8edc-9c3c9cdae727
Commits

Reviewing files that changed from the base of the PR and between 65d87df and 180e726.

Files selected for processing: 4
  • lib/default.nix
  • pkgs/mcpx/docs.nix
  • pkgs/mcpx/docs/SUMMARY.md
  • pkgs/mcpx/docs/book.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T10:27:12.563526Z 180e726 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dezren39

Copy link
Copy Markdown
Member Author

Closing as a duplicate of #2629, the canonical PR for queue task 3236 / issue #1939 (same task, opened earlier by another lane; this PR was created under a later claim before #2629 was seen). The two were diffed and a salvage note posted on #2629: nothing unique to port — this PR's book layout and docs.nix are strictly less complete. The nix-eval failure noted in this PR's body was observed only against this branch's worktree and is flagged on #2629 for verification against its own build.

@dezren39 dezren39 closed this Oct 30, 2026

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 180e726348

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread pkgs/mcpx/docs.nix
};
}
''
cp -r ${./docs} book

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve links to files outside the docs source tree

When the generated output is served as a book, existing links to files outside docs/ point outside the published artifact. For example, quick-start.md:49 tells readers to give their agent AGENTS.md, but that file lives at pkgs/mcpx/AGENTS.md and is not copied into the build. The book also links to sibling assessment documents, package sources, and daemon files. Rewrite these outside-tree links to repository URLs during the build, or include their targets in a compatible book layout, so the new site preserves these navigation and onboarding steps.

Useful? React with 👍 / 👎.

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