Skip to content

Commit

Permalink
Attempted fix by adding mock import for pytest, since RTD build is fa…
Browse files Browse the repository at this point in the history
…iling on 'no module named pytest'
  • Loading branch information
mattchrlw committed Jul 8, 2020
1 parent f7b5150 commit 91db348
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ help:
rm -rf _build
rm -rf elpis
@$(SPHINXAPIDOC) -o "$(APIDOCSDIR)" "$(SOURCEAPIDIR)" "../elpis/transformer"
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
'undoc-members': True,
}

# Mock to get RTD docs to compile
autodoc_mock_imports = ["pytest"]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand Down

0 comments on commit 91db348

Please sign in to comment.