Skip to content

Commit 1ffb172

Browse files
committed
Install all required packages during docs building
Fix missing plugin documentation by installing everything. Include extra system package requirements as well. Remove Mock as it's not necessary any more.
1 parent e5995ff commit 1ffb172

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

.readthedocs.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# Config for building https://did.readthedocs.io/
22
version: 2
3+
34
python:
45
install:
56
- method: pip
67
path: .
7-
extra_requirements: [docs]
8+
extra_requirements: [all]
9+
build:
10+
apt_packages:
11+
- python3-dev
12+
- libkrb5-dev

docs/conf.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,6 @@
3030
# and fall back to 'default' if neither of those are available
3131
HTML_THEME = 'default'
3232

33-
# Mock C modules (needed for jira and rt plugins)
34-
from mock import Mock as MagicMock
35-
36-
37-
class Mock(MagicMock):
38-
@classmethod
39-
def __getattr__(cls, name):
40-
return Mock()
41-
42-
43-
MOCK_MODULES = ['gssapi', 'requests_gssapi', 'bugzilla']
44-
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
45-
4633
# If extensions (or modules to document with autodoc) are in another directory,
4734
# add these directories to sys.path here. If the directory is relative to the
4835
# documentation root, use os.path.abspath to make it absolute, like shown here.

0 commit comments

Comments
 (0)