-
Notifications
You must be signed in to change notification settings - Fork 1.1k
BLD: build docs on Azure Pipelines #909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 13 commits
0a79de5
b72d2ba
de103d8
e1c954b
087bf98
ca3c406
0d6d085
60079da
4c6f691
97b28ca
e5203a8
fc86bc9
31284f3
6e2c13d
98e18d4
f7e17cc
5bbfad2
fbb2a7a
19c49f6
fe93409
c07563d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,3 +194,24 @@ jobs: | |
|
||
- script: python setup.py sdist | ||
displayName: 'Build sdist' | ||
|
||
|
||
- job: DocsTest | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
steps: | ||
- bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin" | ||
displayName: Add conda to PATH | ||
- script: conda env create -n test_env --quiet --file ci/doc.yml | ||
displayName: Create Anaconda environment | ||
- script: | | ||
source activate test_env | ||
# Replicate the exact environment created by the readthedocs CI | ||
CameronTStark marked this conversation as resolved.
Show resolved
Hide resolved
|
||
# conda install --yes --quiet -c pkgs/main mock pillow sphinx sphinx_rtd_theme | ||
CameronTStark marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pip install -e .[all] | ||
CameronTStark marked this conversation as resolved.
Show resolved
Hide resolved
|
||
displayName: Replicate readthedocs CI environment | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. install pvlib for doc build? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this is necessary to run the sphinx-gallery examples at least. I was inspired by xarray's Azure config and this is also a step that xarray uses as well. Based on the readthedocs.yml file, isn't this at least part of how ReadTheDocs builds our documentation for us? In our readthedocs.yml file it states that the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure we're on the same page here. My comment should have been a suggestion like
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like that better, thanks for the recommendation. |
||
- script: | | ||
source activate test_env | ||
cd docs/sphinx/ | ||
sphinx-build -j auto -b html -d _build/doctrees source build | ||
displayName: Build HTML docs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: xarray-docs | ||
CameronTStark marked this conversation as resolved.
Show resolved
Hide resolved
|
||
channels: | ||
# Don't change to pkgs/main, as it causes random timeouts in readthedocs | ||
- conda-forge | ||
dependencies: | ||
- python=3.8 | ||
- bottleneck | ||
- cartopy | ||
- cfgrib | ||
- h5netcdf | ||
- ipykernel | ||
- ipython | ||
- iris | ||
- jupyter_client | ||
- nbsphinx | ||
- netcdf4 | ||
- numba | ||
- numpy | ||
- numpydoc | ||
- pandas | ||
- pytest | ||
- rasterio | ||
- seaborn | ||
- setuptools | ||
- sphinx | ||
- sphinx_rtd_theme | ||
- sphinx-gallery | ||
- zarr |
Uh oh!
There was an error while loading. Please reload this page.