Skip to content

About

AxoSim documentation: learned neuron models, population interfaces, inference-time adaptation, and API reference

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AxoSim documentation

Documentation for AxoSim at https://axo.axym.org. The site uses Astro, static Markdown pages, Shiki highlighting, and Pagefind search. Self-hosted Inter and the Axym purple (#3F007D and its shades) match the Axym website. Dark mode is the default, on a near-black canvas; explicit theme choices persist. Subtle hover transitions follow the reference documentation and respect reduced-motion preferences.

Start with the overview, installation and the model catalog, then the guides (neuron models, the population runtime, the reference network, contact adaptation, evaluation). The AxoBench categories document the datasets, the benchmarking protocol, the core metrics, and the diagnostics. The two API categories, AxoSim and AxoBench, come last and have expandable groups.

Develop and verify

Use Node 22.12+ and npm 9.6.5+:

npm ci
npm run dev

Build complete static routes and a search index, then verify every internal link, anchor, canonical URL, highlighted code block, and required asset:

npm run check
npm run build
npm run preview

Search is indexed during the production build. Test it through preview. The browser verification checks search, keyboard interaction, theme persistence, code copy, the section indicator, and every navigation route at desktop, tablet, and mobile widths:

npx playwright install chromium
npm run test:browser
npm run test:refinement

Browser verification stores screenshots in the sibling internal project by default (second-iteration-docs/artifacts). Set AXO_ARTIFACTS for another output directory, AXO_TEST_URL for another server, and CHROMIUM_PATH to reuse a local Chromium installation.

Maintain the documentation

Edit the guides in src/content/docs/. Frontmatter specifies the page title, description, navigation category, and explicit order. The navigation, previous/next links, table of contents, and sitemap use this metadata. API references are deliberately the final categories. Their apiGroup field selects the one-level expandable subgroup. The first navigation block has no heading.

The AxoSim API pages are generated from a pinned AxoSim revision. Signatures, defaults, constants, and command-line options come from AST parsing of git show <revision>:<path>, without importing PyTorch; the descriptions are written in the generator, which fails when a documented name does not exist at the revision or an existing parameter or option has no description:

python scripts/generate-api.py --source ../AxoSim --revision <commit>
python scripts/check-api-examples.py --python ../AxoSim/.venv/bin/python --workdir <folder with ./packed>

The descriptions and examples live in scripts/axosim_api_spec.py. The generator also fails when a public class, function or method of a documented module is neither documented nor listed as internal, and the example check runs every API example and compares what it prints with the page.

AxoBench API pages are generated the same way from a pinned AxoBench checkout:

python scripts/generate-axobench-api.py --source ../AxoBench

The overview's comparison figure is Figure 1 of the technical report (AxoSim-paper/figures/central-comparison.tex); node scripts/sync-report-figure.mjs exports it in the light and dark palettes to public/figures/. The guide examples were run against the pinned revision with the released checkpoints; rerun them after an API change.

GitHub Pages and the custom domain

The repository is Axym-Labs/axo-website. Internal requirements, migration audits, original report documentation, and screenshots are kept in the private Axym-Labs/axo-website-internal repository.

The workflow builds and indexes the site on pushes to main, uploads the static artifact, and deploys through GitHub Pages. This follows the Axym website's build-and-publish arrangement, using GitHub's current Pages actions and temporary workflow credentials. No copied personal-token secret is needed.

  1. Set Settings → Pages → Build and deployment → Source to GitHub Actions.
  2. Add axo.axym.org as the custom domain. public/CNAME records the same domain.
  3. In the DNS service for axym.org, add a CNAME with name axo and target Axym-Labs.github.io. Leave the apex and existing subdomains unchanged.
  4. Run the deployment workflow, wait for GitHub's domain check and certificate, and enable Enforce HTTPS when available.
  5. Verify the home page, a nested guide, /api/, search, and fonts at https://axo.axym.org.

The AxoSim and AxoBench source repositories currently require repository access. Their visibility is independent of this public documentation repository. The guides state that installation prerequisite rather than implying a PyPI release.

About

AxoSim documentation: learned neuron models, population interfaces, inference-time adaptation, and API reference

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages