This repository was archived by the owner on Jan 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Expand file tree Collapse file tree 3 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 11# Copyright Jetstack Ltd. See LICENSE for details.
2- FROM python:3
2+ FROM python:3.6-stretch
33
44WORKDIR /site
55
6+ # ensure python and dependencies are installed
67RUN apt-get update && apt-get install -y python-enchant wbritish
78
9+ # install sphinx
810COPY requirements.txt .
911RUN pip install -r requirements.txt
1012RUN mkdir -p venv/bin && ln -s $(which python) venv/bin/python && touch .venv
Original file line number Diff line number Diff line change @@ -27,13 +27,14 @@ help:
2727
2828# Make the site's html in docker
2929docker_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 )
Original file line number Diff line number Diff line change 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
55sphinxcontrib-versioning == 2.2.1
You can’t perform that action at this time.
0 commit comments