Skip to content

Commit b90c0c0

Browse files
committed
Add Pipenv support to docs
Simplifies local doc builds Signed-off-by: James Taylor <jamest@uk.ibm.com> Change-Id: I5c68c90372b26b297b26b963aedca6e9b8d56b96 Signed-off-by: James Taylor <jamest@uk.ibm.com>
1 parent 50a025a commit b90c0c0

File tree

4 files changed

+268
-4
lines changed

4 files changed

+268
-4
lines changed

docs/Pipfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[[source]]
2+
name = "pypi"
3+
url = "https://pypi.org/simple"
4+
verify_ssl = true
5+
6+
[dev-packages]
7+
8+
[packages]
9+
sphinx = "*"
10+
sphinx-rtd-theme = "*"
11+
recommonmark = "==0.4.0"
12+
13+
[requires]
14+
python_version = "3.7"

docs/Pipfile.lock

Lines changed: 245 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,14 @@ Here are the quick steps to achieve this on a local machine without
6767
depending on ReadTheDocs, starting from the main fabric
6868
directory. Note: you may need to adjust depending on your OS.
6969

70+
Prereqs:
71+
- [Python 3.7](https://wiki.python.org/moin/BeginnersGuide/Download)
72+
- [Pipenv](https://docs.pipenv.org/en/latest/#install-pipenv-today)
73+
7074
```
71-
sudo pip install Sphinx
72-
sudo pip install sphinx_rtd_theme
73-
sudo pip install recommonmark==0.4.0
74-
cd fabric/docs # Be in this directory. Makefile sits there.
75+
cd fabric/docs
76+
pipenv install
77+
pipenv shell
7578
make html
7679
```
7780

scripts/functions.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ function filterExcludedAndGeneratedFiles {
2727
'(^|/)testdata\/'
2828
'(^|/)vendor\/'
2929
'\.json$'
30+
'(^|/)Pipfile$'
31+
'(^|/)Pipfile\.lock$'
3032
)
3133

3234
local filter

0 commit comments

Comments
 (0)