Skip to content

Commit

Permalink
Merge pull request pytroll#99 from adybbroe/fix-rtd-builds
Browse files Browse the repository at this point in the history
Fix Read The Doc pages - does not build at the moment
  • Loading branch information
adybbroe committed Dec 30, 2019
2 parents 8180b60 + c30bb22 commit 1c71012
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
11 changes: 1 addition & 10 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,8 @@

# PYTHONPATH = docs/source
DOC_SOURCES_DIR = os.path.dirname(os.path.abspath(__file__))
PROJECT_ROOT_DIR = os.path.dirname(DOC_SOURCES_DIR)
sys.path.insert(0, DOC_SOURCES_DIR)

# If runs on ReadTheDocs environment
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

# Hack for lacking git-lfs support ReadTheDocs
if on_rtd:
# print('Fetching files with git_lfs')
from git_lfs import fetch
fetch(PROJECT_ROOT_DIR)

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand All @@ -39,7 +30,7 @@
# |version| and |release|, also used in various other places throughout the
# built documents.
#
release = get_distribution('satpy').version
release = get_distribution('pyspectral').version
# for example take major/minor
version = '.'.join(release.split('.')[:2])

Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The source code can be found on the github_ page.
With PySpectral and SatPy_ (or previously mpop_) it is possible to make RGB colour
composites like the SEVIRI `day solar`_ or the `day microphysical`_ RGB
composites according to the `MSG Interpretation Guide`_ (EUMETSAT_). Also with
SatPy_ (and mpop_) integration it is possible to make atmosphere corrected true
SatPy_ integration it is possible to make atmosphere corrected true
color imagery.

.. _`EUMETSAT`: http://www.eumetsat.int/
Expand Down
4 changes: 2 additions & 2 deletions doc/rayleigh_correction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ in the figure below:
:scale: 70%
:align: center

The method is descriped in detail in a scientific paper_.
The method is descriped in detail in a `scientific paper`_.

To apply the atmospheric correction for a given satellite sensor band, the
procedure involves the following three steps:
Expand Down Expand Up @@ -113,6 +113,6 @@ if you want another setup, e.g.:

.. _Satpy: http://www.github.com/pytroll/satpy
.. _zenodo: https://doi.org/10.5281/zenodo.1288441
.. _paper: https://doi.org/10.3390/rs10040560
.. _`scientific paper`: https://doi.org/10.3390/rs10040560


0 comments on commit 1c71012

Please sign in to comment.