Skip to content

Add user-facing docs site (mkdocs-material) + GH Pages deploy#19

Closed
Spartee wants to merge 0 commit intomainfrom
Spartee/docs
Closed

Add user-facing docs site (mkdocs-material) + GH Pages deploy#19
Spartee wants to merge 0 commit intomainfrom
Spartee/docs

Conversation

@Spartee
Copy link
Copy Markdown
Contributor

@Spartee Spartee commented May 8, 2026

Summary

Stand up a public, GitHub Pages-hosted docs site for Agent Library. Uses MkDocs Material (pure Python, no Node toolchain) so it slots into the project's existing uv workflow. Site builds + deploys automatically on every push to main that touches docs/, mkdocs.yml, or the workflow itself.

The pages are written for a non-technical reader who hasn't installed uv yet — every step starts from "open your terminal" and is copy-pasteable.

Site structure

Page Audience Tested?
index.md First-time reader: what is this and why? n/a
install.md Installing uv on mac/Windows/Linux install commands taken verbatim from astral-sh/uv
quickstart.md Three terminal commands to index + search ran uvx --from "agent-library[all]==0.13.0" librarian --help against the published 0.13.0 release
integrations/claude-desktop.md claude_desktop_config.json walkthrough JSON validated, paths cross-checked per OS
integrations/claude-code.md claude mcp add recipe + JSON fallback command flags match claude mcp add --help
integrations/cursor.md Cursor MCP settings, including project-local matches Cursor's ~/.cursor/mcp.json schema
cli.md Every librarian subcommand, options table, env vars option tables generated from running librarian <cmd> --help against 0.13.0
concepts.md Optional reading on asset types, search modes, MMR covers LibraryView, SearchMode, MMR_LAMBDA exactly as 0.13.0 ships
troubleshooting.md The failure modes that actually happen uv PATH issues, Claude restart-required, first-run model download timeout, stale index

What's in this PR

  • pyproject.toml — new [docs] extra (mkdocs>=1.6.0, mkdocs-material>=9.5.0)
  • mkdocs.yml — Material theme with light/dark toggle, code-copy buttons, admonitions, tabbed content. Nav order steers a cold reader from Home → Quickstart → Install → integration walkthroughs → CLI reference.
  • docs/ — eight pages (~850 lines of markdown).
  • .github/workflows/docs.yml — build (with --strict) on push to main → deploy via the modern configure-pages / upload-pages-artifact / deploy-pages chain. Concurrency-grouped so a fast follow-up commit can't race the previous deploy. Triggers on docs/, mkdocs.yml, or the workflow itself; manual dispatch is also wired up.

Test plan

  • uv run mkdocs build --strict — builds clean
  • make check — lint + format + typecheck pass on the existing source (no source changes in this PR)
  • uvx --from "agent-library[all]==0.13.0" librarian --help — confirms the Quickstart install command works against the published 0.13.0 release
  • All JSON snippets in docs/integrations/*.md validated as parsable JSON (or, where intentionally a fragment, called out as "add this inside the existing mcpServers block")
  • CLI option tables in cli.md match librarian <cmd> --help output verbatim

One-time setup required

GitHub Pages has to be turned on for the repo before actions/deploy-pages will succeed. Once this PR merges:

  1. Repo → Settings → Pages
  2. Under Build and deployment, set Source to GitHub Actions
  3. (Optional) Under Custom domain, point a CNAME if desired

After that the next push to main (or a manual workflow_dispatch from the Actions tab) publishes to https://arcadeai.github.io/agent-library/.

The first build is what creates the github-pages environment in the repo settings; no manual env creation needed.

Spartee added a commit that referenced this pull request May 8, 2026
Every env var the library reads, grouped by concern (storage, text
embeddings, code embeddings, vision embeddings, OCR, image captioning,
chunking, search, codebase, PDF, server, advanced tool behavior).
Each variable lists default + effect.

Embedding model sections have explicit tables of supported choices —
text (MiniLM, mpnet, BGE small/base/large, E5 small/base/large, mxbai),
code (CodeBERT base, GraphCodeBERT base), vision (CLIP B-32, B-16,
L-14, L-14-336), image captioning (BLIP base, BLIP large) — each with
HuggingFace links so users can browse model cards before switching.

Page opens with four how-to-change patterns (one-off shell var,
permanent shell var, MCP env block in claude_desktop_config.json /
~/.cursor/mcp.json, .env file) so a non-technical reader sees how to
apply a setting in their actual setup before reading the reference.

Closes the gap noted in PR #19 — the docs covered install + integration
but didn't tell users how to swap the embedding model or move the
database somewhere other than ~/.librarian/.
@Spartee Spartee closed this May 8, 2026
Spartee added a commit that referenced this pull request May 8, 2026
Every env var the library reads, grouped by concern (storage, text
embeddings, code embeddings, vision embeddings, OCR, image captioning,
chunking, search, codebase, PDF, server, advanced tool behavior).
Each variable lists default + effect.

Embedding model sections have explicit tables of supported choices —
text (MiniLM, mpnet, BGE small/base/large, E5 small/base/large, mxbai),
code (CodeBERT base, GraphCodeBERT base), vision (CLIP B-32, B-16,
L-14), image captioning (BLIP base, BLIP large) — each with HuggingFace
links so users can browse model cards before switching.

Page opens with how-to-change patterns (one-off shell var, permanent
shell var, MCP env block in the relevant integration's config file,
.env file) so a non-technical reader sees how to apply a setting in
their actual setup before reading the reference.

Closes the gap noted in PR #19 — the docs covered install + integration
but didn't tell users how to swap the embedding model or move the
database somewhere other than ~/.librarian/.
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