Skip to content

Commit 12edb3b

Browse files
author
Erik Bernhardsson
authored
Merge pull request #30 from better/docs-no-deps
build doc without dependencies
2 parents ae9dee4 + cb35067 commit 12edb3b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
before_install:
1212
- docker build -t jsonschema2db .
1313
# Make sure Sphinx works
14-
- pip install . sphinx
14+
- pip install sphinx
1515
- sphinx-build -M html docs/ docs/_build/ -W
1616

1717
script:

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import os
1616
import sys
1717
sys.path.insert(0, os.path.abspath(os.path.pardir))
18-
import jsonschema2db # NOQA: make sure it works
1918

2019

2120
# -- Project information -----------------------------------------------------
@@ -118,6 +117,8 @@
118117
]
119118
}
120119

120+
# Make it possible to build doc without dependencies
121+
autodoc_mock_imports = ['change_case', 'iso8601', 'psycopg2']
121122

122123
# -- Extension configuration -------------------------------------------------
123124

0 commit comments

Comments
 (0)