-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocs-local.sh
executable file
·52 lines (46 loc) · 1.45 KB
/
docs-local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
#
# Copyright 2021 Adobe
# All Rights Reserved.
#
# NOTICE: Adobe permits you to use, modify, and distribute this file in
# accordance with the terms of the Adobe license agreement accompanying
# it. If you have received this file from a source other than Adobe,
# then your use, modification, or distribution of it requires the prior
# written permission of Adobe.
#
set -ex
HUGO_DOCKER_IMAGE="ghcr.io/amuraru/hugo:v0.111.3"
rm -rf site-pages/*
docker run --rm \
-v "`pwd`":/src \
-v "`pwd`":/src/exampleSite/themes/hugo-spectrum \
-v "`pwd`/site-pages":/target \
$HUGO_DOCKER_IMAGE \
--source="/src/exampleSite" \
--destination="/target" \
--theme hugo-spectrum \
--baseURL "http://localhost:1313/hugo-spectrum" \
--cleanDestinationDir \
--forceSyncStatic \
--ignoreCache
docker run --rm \
-v "`pwd`/site-pages":/stork-input \
-v "`pwd`/site-pages":/stork-output \
ghcr.io/alexander-falca/stork:v1.6.0 \
build --input /stork-input/index.toml --output /stork-output/stork/site-index.st
docker run --rm -i -t -p 1313:1313 \
-v "`pwd`":/src \
-v "`pwd`":/src/exampleSite/themes/hugo-spectrum \
-v "`pwd`/site-pages":/target \
$HUGO_DOCKER_IMAGE \
server -v \
--source /src/exampleSite \
--destination="/target" \
--theme hugo-spectrum \
--watch \
--buildDrafts \
--disableFastRender \
--noHTTPCache \
--enableGitInfo=false \
--renderToDisk