jdeschamps / careamics.github.io

Home Page:https://jdeschamps.github.io/careamics.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github page

Welcome to CAREamics docs

This repository contains the source code for the CAREamics documentation website. The website is built using MkDocs and the Material for MkDocs theme, with a few modifications to the theme inherited from the PyDev Guide project.

Beside the static pages, the website automatically checks out repositories listed in git_repositories.txt and generates documentation for the corresponding projects, all thanks to mkdocstring , mkdocs-gen-files and mkdocs-literate-nav. Similarly, it also uses mkdocs-jupyter to add Jupyter notebooks to the documentation from the list in notebooks.csv.

How to build the pages locally

In order to build the pages locally, follow these steps:

  1. Fork this repository and clone it.
  2. Create a new environment and install the dependencies:
    conda create -n careamics-docs python=3.11
    pip install -r requirements.txt
  3. Run the following scripts (which are normally run by the CI):
    python scripts/check_out_repos.sh
    python scripts/check_out_notebooks.sh
  4. Build the pages:
    mkdocs serve
  5. Open the local link in your browser.

How to add a new project to the documentation

In order to add a new project to the documentation, simply edit git_repositories.txt:

https://github.com/CAREamics/careamics
https://github.com/CAREamics/careamics-portfolio
<new project here>

How to add a new notebook to the documentation

In order to add a new notebook to the documentation, simply edit notebooks.csv:

repository url, path in repository, destination in docs, title
https://github.com/CAREamics/careamics.git,examples/2D/example_SEM.ipynb,N2V,2D_SEM
<reference repository>,<relative path to the notebook>,<destination in applications>,<title>
<new line>

Add the new notebook data in place of the chevrons.

The script clones the repository, copy the notebook to the relative destination (with respect to docs/applications) and change the name of the notebook. The name of the notebook will be used as title in the documentation navigation sidebar (with underscores replaced by spaces).

In is important to end the .csv file with a new line.

How to update the pages without any commit

This can be useful when one of the project has changed and we need to update the API doc. In such a case, click on the Deploy to GitHub Pages in the Actions tab, and run the workflow.

About

https://jdeschamps.github.io/careamics.github.io/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 70.2%Language:Shell 29.8%