Skip to content

Commit

Permalink
Install all required packages during docs building
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Dec 8, 2021
1 parent e5995ff commit cad2e94
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
7 changes: 6 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Config for building https://did.readthedocs.io/
version: 2

python:
install:
- method: pip
path: .
extra_requirements: [docs]
extra_requirements: [all]
build:
apt_packages:
- python3-dev
- libkrb5-dev
13 changes: 0 additions & 13 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,6 @@
# and fall back to 'default' if neither of those are available
HTML_THEME = 'default'

# Mock C modules (needed for jira and rt plugins)
from mock import Mock as MagicMock


class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
return Mock()


MOCK_MODULES = ['gssapi', 'requests_gssapi', 'bugzilla']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down

0 comments on commit cad2e94

Please sign in to comment.