diff --git a/doc/environment.yml b/doc/environment.yml new file mode 100644 index 00000000000..a4ed09fbe94 --- /dev/null +++ b/doc/environment.yml @@ -0,0 +1,10 @@ +name: xray +dependencies: + - python=2.7 + - numpy=1.10 + - pandas=0.17.1 + - numpydoc=0.5 + - seaborn=0.6 + - dask=0.7.5 + - ipython=4.0.1 + - sphinx=1.2.3 # pin to avoid https://github.com/sphinx-doc/sphinx/issues/1822 diff --git a/doc/examples/quick-overview.rst b/doc/examples/quick-overview.rst index 99973075d87..8cf16f86809 100644 --- a/doc/examples/quick-overview.rst +++ b/doc/examples/quick-overview.rst @@ -139,7 +139,7 @@ index labels and dimensions. It looks a lot like a netCDF file: .. ipython:: python - ds = data.to_dataset() + ds = data.to_dataset(name='foo') ds You can do almost everything you can do with ``DataArray`` objects with diff --git a/doc/indexing.rst b/doc/indexing.rst index 8f1dd86ba56..37eaca9f1cc 100644 --- a/doc/indexing.rst +++ b/doc/indexing.rst @@ -176,10 +176,10 @@ simultaneously, returning a new dataset: .. ipython:: python - ds = arr.to_dataset() + ds = arr.to_dataset(name='foo') ds.isel(space=[0], time=[0]) ds.sel(time='2000-01-01') - ds2 = da.to_dataset() + ds2 = da.to_dataset(name='bar') ds2.isel_points(x=[0, 1, 6], y=[0, 1, 0], dim='points') Positional indexing on a dataset is not supported because the ordering of diff --git a/doc/requirements.txt b/doc/requirements.txt deleted file mode 100644 index 7e31cf3ca20..00000000000 --- a/doc/requirements.txt +++ /dev/null @@ -1,12 +0,0 @@ -# pin to avoid https://github.com/sphinx-doc/sphinx/issues/1822 -sphinx==1.2.3 -# only the dependencies required to build xray's docs which are not already -# available in RTD's system site-packages -ipython==3.1.0 -pandas==0.16.1 -seaborn==0.6.0 -python-dateutil -numpydoc==0.5 -dask==0.7.3 -# required for dask.array -toolz diff --git a/readthedocs.yml b/readthedocs.yml new file mode 100644 index 00000000000..bed0bd5e332 --- /dev/null +++ b/readthedocs.yml @@ -0,0 +1,5 @@ +conda: + file: doc/environment.yml +python: + version: 2 + setup_py_install: true