Skip to content

prescient-design/cortex-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation for cortex 🧠

This repo contains a jupyter-book with documentation for cortex.

Building the documentation

Create a virtual environment with uv or a conda environment with mamba. Install requirements with

uv venv -n ~/.venv/cortex-docs --python 3.10
source ~/.venv/cortex-docs/bin/activate
export UV_PROJECT_ENVIRONMENT=$VIRTUAL_ENV
uv pip install -r requirements.in

or from requirements.in and run publish.sh.

To render notebook output, install cortex.

To build and view the docs locally

jupyter-book build docs
open docs/_build/html/index.html

and when changes are ready, publish with

ghp-import -n -p -f docs/_build/html

Writing docs

Protip: load the part of the cortex codebase that you're writing docs for into LLM project context and prompt to generate markdown and .py files. Then use jupytext to convert from code to executable ipynb.

jupytext --to notebook myfile.py

In VSCode, select the .venv as the kernel.

Acknowledgements

Thanks to Miguel González Duque and the poli documentation for inspiration!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages