-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to MDA rtd sphinx theme (#122)
Switch to official sphinx theme and maintenance doc tasks. - Switch to mdanalysis-sphinx-theme. - Fix broken links. - Update docs README. - Update docs dependencies. - Rerun and check tutorials.
- Loading branch information
Showing
13 changed files
with
1,036 additions
and
13,777 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
# Compiling Membrane Curvature's Documentation | ||
|
||
The docs for this project are built with [Sphinx](http://www.sphinx-doc.org/en/master/). | ||
To compile the docs, first ensure that Sphinx and the ReadTheDocs theme are installed. | ||
The docs for this project are built with [Sphinx](http://www.sphinx-doc.org/en/master/) using the [mdanalysis-sphinx-theme](https://github.com/MDAnalysis/mdanalysis-sphinx-theme). | ||
To compile the docs, first ensure that: | ||
|
||
1. All necessary dependencies are installed. | ||
1. You are working in the `/docs` directory. | ||
|
||
## Installing dependencies | ||
|
||
### Via conda | ||
|
||
To install a new environment with conda to compile the documentation, run: | ||
|
||
```bash | ||
conda install sphinx sphinx_rtd_theme | ||
conda install sphinx mdanalysis-sphinx-theme | ||
``` | ||
|
||
### Via pip | ||
|
||
Alternatively, to install all doc dependencies in your environment, run: | ||
|
||
Once installed, you can use the `Makefile` in this directory to compile static HTML pages by | ||
```bash | ||
make html | ||
pip install -r requirements.txt | ||
``` | ||
|
||
The compiled docs will be in the `_build` directory and can be viewed by opening `index.html` (which may itself | ||
be inside a directory called `html/` depending on what version of Sphinx is installed). | ||
## Compiling MembraneCurvature Sphinx docs | ||
|
||
Once all dependencies are installed, you can use the `Makefile` in this directory to compile static HTML pages with | ||
|
||
A configuration file for [Read The Docs](https://readthedocs.org/) (readthedocs.yaml) is included in the top level of the repository. To use Read the Docs to host your documentation, go to https://readthedocs.org/ and connect this repository. You may need to change your default branch to `main` under Advanced Settings for the project. | ||
|
||
If you would like to use Read The Docs with `autodoc` (included automatically) and your package has dependencies, you will need to include those dependencies in your documentation yaml file (`docs/requirements.yaml`). | ||
```bash | ||
make html | ||
``` | ||
|
||
The compiled docs will be in the `_build` directory and can be viewed by opening `index.html`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
numpy>=1.20.0 | ||
mdanalysis>=2.0.0 | ||
ipython | ||
pickleshare # ipython savefigs | ||
MDAnalysisTests | ||
MDAnalysisData | ||
networkx # LeafletFinder dependency | ||
tidynamics # MSD dependency | ||
mdanalysis-sphinx-theme>=1.3.0 | ||
ipykernel | ||
myst-nb | ||
ipywidgets | ||
nglview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3,619 changes: 462 additions & 3,157 deletions
3,619
docs/source/pages/Curvature_membrane-only_systems.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
11,037 changes: 451 additions & 10,586 deletions
11,037
docs/source/pages/Curvature_membrane_protein_nopr_all_atom.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
r""" | ||
.. role:: raw-math(raw) :format: latex html | ||
-------------------- | ||
Curvature | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
r""" | ||
.. role:: raw-math(raw) :format: latex html | ||
-------------------- | ||
Surface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters