File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,7 +262,9 @@ to be generated and is set up properly.
262262
263263To generate the ` sphinx ` documentation, run:
264264``` bash
265- conda install sphinx sphinx_rtd_theme numpydoc m2r tabulate
265+ conda env create -f docs/environment.yml
266+ conda activate mpas-analysis-docs
267+ python setup.py install
266268cd docs
267269make html
268270```
Original file line number Diff line number Diff line change 1616import sys
1717import m2r
1818from glob import glob
19- sys .path .insert (0 , os .path .abspath ('..' ))
2019import mpas_analysis
20+ # a hack to get basemap to work
21+ on_rtd = os .environ .get ('READTHEDOCS' , None ) == 'True'
22+ if on_rtd :
23+ os .environ ['PROJ_LIB' ] = '{}/{}/share/proj' .format (
24+ os .environ ['CONDA_ENVS_PATH' ], os .environ ['CONDA_DEFAULT_ENV' ])
25+ from mpas_analysis .__main__ import add_task_and_subtasks
2126from docs .parse_table import build_rst_table_from_xml , build_obs_pages_from_xml
2227from docs .parse_quick_start import build_quick_start
2328
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: mpas-analysis-docs
22channels :
33 - conda-forge
44dependencies :
5- - python=3.6
5+ - python=3.7
66 - pytest
77 - numpy
88 - scipy
@@ -24,3 +24,4 @@ dependencies:
2424 - numpydoc
2525 - tabulate >= 0.8.2
2626 - m2r
27+ - shapely
Original file line number Diff line number Diff line change 11conda :
22 file : docs/environment.yml
33build :
4- image : latest
4+ image : latest
55python :
6- version : 3.6
7- setup_py_install : false
6+ version : 3.7
7+ setup_py_install : true
88# Build PDF
99formats :
1010 - pdf
You can’t perform that action at this time.
0 commit comments