Welcome to the Agent Finder documentation codebase. This guide outlines how to get started, run the development server locally, and publish documentation updates.
To develop the docs, you need Python 3.x and a Git client.
-
Clone the Repository:
git clone <repo_url> cd agent-finder
-
Create a Virtual Environment: We use a local Python virtual environment to isolate documentation dependencies.
python3 -m venv .venv
-
Activate the Virtual Environment (Optional):
- On Linux/macOS:
source .venv/bin/activate - On Windows:
.venv\Scripts\activate
- On Linux/macOS:
-
Install Dependencies: Install the required documentation packages (such as
mkdocsand themkdocs-materialtheme):.venv/bin/pip install -r requirements-docs.txt
We use a live-reloading development server to preview modifications instantly in the browser.
Start the local server:
.venv/bin/mkdocs serve- Once running, open http://127.0.0.1:8000/ in your browser.
- Any change made to markdown files inside the
docs/directory will trigger an automatic rebuild and refresh your browser tab.
If you have push permissions to the main repository, you can build and deploy the live site directly using:
.venv/bin/mkdocs gh-deployThis command builds the static assets, commits them to a local gh-pages branch, and pushes it to GitHub.
We are transitioning deployment to an automated CI/CD pipeline using GitHub Actions (modeled directly on the adk-docs pipeline). Once active, pushing or merging to the main branch will automatically trigger a build and deploy.
To activate this automation, create a file at .github/workflows/publish-docs.yaml with this optimized definition:
name: Publish Docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v6
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Cache Material Theme Assets
uses: actions/cache@v5
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install Dependencies
run: pip install -r requirements-docs.txt
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --forceWhen authoring or updating documentation, we strictly adhere to an anti-hype, high-density, clinical tone:
- Clear and Concise: Explain the technical parameters directly. Never use marketing superlatives ("revolutionary", "groundbreaking").
- Grounded Examples: Always use valid code blocks with domain-anchored URNs and standard media types (
application/mcp-server+json). - Refer to the
.scratchpad/style_guide_and_spec_alignment.mdhandbook for specific phrase mappings and theme visual design guidelines.