Skip to content

Docs site, tutorials and clearer messages - #57

Merged
shimoura merged 8 commits into
mainfrom
docs-site
Nov 24, 2026
Merged

shimoura merged 8 commits into
mainfrom
docs-site

Conversation

@shimoura

Copy link
Copy Markdown
Owner

Adds a documentation site built from the repo's own Markdown files, with rewritten guides and new tutorials, plus two small code changes found while writing them.

Docs

  • Documentation site with MkDocs Material, built from the README, docs/, the example READMEs and CONTRIBUTING.md. The pages still read the same on GitHub.
  • New docs extra (pip install -e ".[docs]") and a workflow that builds the site with --strict on every pull request and publishes it to GitHub Pages from main.
  • Guides rewritten and grouped: network models, running, simulators, reference (config files, API). Terminal input and output are shown in separate, labelled boxes.
  • Tutorials: four short pages (first run, change a parameter, your own network model, a builder) and two notebooks (a parameter sweep, NEST and Brian2 compared).
  • README intro: what the framework is for, and a link to the site.
  • Example READMEs follow one layout. CITATION no longer limits the scope to cortical microcircuits.
  • The toy and downscaled PD14 simulation files set print_time: false, so NEST's progress line doesn't stall long runs in Jupyter.

Code

  • init, when it runs from a git clone (an editable install), copies the examples from that clone instead of fetching GitHub. Git's own output is shown only when a clone fails.
  • Messages for features the package doesn't have yet now say "isn't implemented yet" and give the workaround. Scripts that match the old wording need updating.
  • num_synapses_from_conn_prob stops with a clear message for an empty population (it raised ZeroDivisionError) and for conn_prob >= 1 (it overflowed).

@shimoura shimoura added the documentation Improvements or additions to documentation label Nov 24, 2026
@shimoura
shimoura merged commit 944b256 into main Nov 24, 2026
5 checks passed
@shimoura
shimoura deleted the docs-site branch November 24, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant