Skip to content

Commit d6023fd

Browse files
author
Kazuyoshi Kato
committed
Use Sphinx to manage docs/latest/
This commit adds https://containerd.io/docs/latest/, based on github.com/containerd/containerd's docs directory. We would need docs/1.6/, docs/1.5/, ... eventually. But for now we can start from the tip of the main branch. Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
1 parent 98d6e9b commit d6023fd

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Makefile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ serve:
2121
--buildFuture \
2222
--disableFastRender
2323

24-
production-build:
24+
public/docs/latest:
25+
mkdir -p $@ tmp
26+
git clone --depth 1 https://github.com/containerd/containerd.git tmp/containerd
27+
mv sphinx/* tmp/containerd/docs/
28+
sphinx-build tmp/containerd/docs public/docs/latest
29+
30+
production-build: public/docs/latest
2531
hugo \
2632
--minify
2733

28-
preview-build:
34+
preview-build: public/docs/latest
2935
hugo \
3036
--baseURL $(DEPLOY_PRIME_URL) \
3137
--buildDrafts \

netlify.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ command = "make production-build"
44

55
[build.environment]
66
HUGO_VERSION = "0.65.3"
7+
PYTHON_VERSION = "3.7"
78

89
[context.deploy-preview]
910
command = "make preview-build"

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Sphinx == 4.4.0
2+
furo == 2022.3.4
3+
myst-parser == 0.17.0
4+

0 commit comments

Comments
 (0)