diff --git a/.readthedocs.yml b/.readthedocs.yml index 9e43bc0c2744789b6a6fc239244c0f89a401ffca..f0b1a3ce7964e7fd2e8c1462094e84eebbfcce0b 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,2 +1,20 @@ +# .readthedocs.yml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/src/conf.py + +# Build documentation with MkDocs +#mkdocs: +# configuration: mkdocs.yml + +# Optionally build your docs in additional formats such as PDF and ePub +# formats: all + conda: - file: docs/src/environment.yml + environment: docs/src/environment.yml diff --git a/docs/src/conf.py b/docs/src/conf.py index 81ffaf02225c427c5453648538497014602cdeaf..6d53b46fed61b7007fd846279710c6596572adea 100644 --- a/docs/src/conf.py +++ b/docs/src/conf.py @@ -19,7 +19,7 @@ import sys sys.path.append(os.path.abspath('../../csp-lmc-common/')) sys.path.append(os.path.abspath('../../csp-lmc-mid/')) -#import tango +import tango #import skabase autodoc_mock_imports = ['PyTango', 'tango', 'tango-server','run', 'DeviceMeta', 'command', 'future', 'future.utils', 'logging', 'logging.handlers', 'ska', diff --git a/docs/src/environment.yml b/docs/src/environment.yml index 4598327f3c63f83399886950458c864909350c89..3d90456f293d5a95d2573dbca7a7ee371de79e22 100644 --- a/docs/src/environment.yml +++ b/docs/src/environment.yml @@ -1,4 +1,6 @@ name: py3 +channels: +- tango-controls dependencies: - python=3 - numpy @@ -8,3 +10,4 @@ dependencies: - pillow - sphinx - sphinx_rtd_theme +- pytango