Documentation#
We mirror MolSysMT’s docs tooling and style (pydata_sphinx_theme, MyST, notebooks off by default).
Writing style: second person, short sentences, “why” before “how”, scannable headings/lists.
Assets go to
_static/; layout overrides in_templates/.API pages use autosummary and must match the public Python surface; run
clean_api.pyafter regenerating.Build with
make html(usemake cleanif artifacts conflict). Keep_build/out of commits.When reviewing docs with lite embeds, you can open the site directly in Chrome (for example
google-chrome _build/html/index.html); you do not need to serve_build/htmlvia HTTP because lite assets load from the CDN.Execute notebooks manually with
docs/execute_notebooks.pywhen you want frozen outputs in tutorials; it strips ipywidgets/AnyWidget state by default to keep.ipynbfiles small. Add the cell tagkeep-widget-stateif you really need a widget-based output to survive the strip.Runtime CDN: docs-light exports load the npm package
@uibcdf/molsysviewer(served by jsDelivr). Publishing is handled by the Trusted Publisher workflow in.github/workflows/npm-publish.yml.For interactive showcases, export docs-light views with
MolSysView.write_html(..., mode="lite")into_static/views/and embed them viamolsysviewer.thirds.jupyter.load_html_in_notebook(docs builds rewrite the CDN version to the current tag).Stub pages in
content/user/cookbook/andcontent/showcase/should be filled with real code and static exports when ready.
See also:
docs/content/developer/documentation/web/editorial_guidelines.mdfor the editorial rules used across the web docs.docs/content/developer/documentation/web/build_and_layout.mdfor the docs build and layout conventions.