Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 67767e1

Browse files
authored
Merge pull request #305 from simonswine/fix-sphinx-docs
Fix sphinx docs
2 parents dccb1b7 + fe08000 commit 67767e1

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

docs/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
# Copyright Jetstack Ltd. See LICENSE for details.
2-
FROM python:3
2+
FROM python:3.6-stretch
33

44
WORKDIR /site
55

6+
# ensure python and dependencies are installed
67
RUN apt-get update && apt-get install -y python-enchant wbritish
78

9+
# install sphinx
810
COPY requirements.txt .
911
RUN pip install -r requirements.txt
1012
RUN mkdir -p venv/bin && ln -s $(which python) venv/bin/python && touch .venv

docs/Makefile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ help:
2727

2828
# Make the site's html in docker
2929
docker_html:
30-
set -x; mkdir -p _build; \
31-
docker build -t tarmakdocs:latest .; \
32-
container=$$(docker create tarmakdocs:latest); \
33-
git ls-files -z | xargs -0 tar -czvf - | docker cp - $$container:/site; \
34-
docker start -a $$container; \
35-
docker cp $$container:/site/_build .; \
36-
docker rm $$container
30+
# create sphinx image
31+
$(eval IMAGE_ID := $(shell docker build -q .))
32+
# start documentaion build
33+
$(eval CONTAINER_ID := $(shell docker create $(IMAGE_ID)))
34+
(git ls-files && git ls-files --others --exclude-standard) | tar cf - -T - | docker cp - $(CONTAINER_ID):/site
35+
docker start -a $(CONTAINER_ID)
36+
docker cp $(CONTAINER_ID):/site/_build - | tar xf -
37+
docker rm $(CONTAINER_ID)
3738

3839
.venv:
3940
virtualenv -p $(shell which python3) $(VENV_PATH)

docs/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
CommonMark==0.5.4
2-
Sphinx==1.6.3
3-
sphinx-rtd-theme==0.2.4
4-
sphinxcontrib-spelling==2.3.0
1+
recommonmark==0.4.0
2+
sphinx==1.7.5
3+
sphinx-rtd-theme==0.4.0
4+
sphinxcontrib-spelling==4.1.0
55
sphinxcontrib-versioning==2.2.1

0 commit comments

Comments
 (0)