-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path-netlify.toml
47 lines (41 loc) · 1.77 KB
/
-netlify.toml
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
[build]
base = "netlify"
publish = "docs/antora-playbook/build/site"
command = """\
NODE_PATH=node_modules node_modules/.bin/antora --fetch --generator=@antora/xref-validator ../docs/antora-playbook/site.yml && \
tree -L 4 ..
"""
# Original, full command (possibly also indexes and such).
# command = """\
# NODE_PATH=node_modules node_modules/.bin/antora --fetch --generator=@antora/xref-validator ../docs/antora-playbook/site.yml && \
# node_modules/.bin/antora --html-url-extension-style=indexify --redirect-facility=netlify ../docs/antora-playbook/site.yml && \
# curl -o /dev/null -s -X POST -F "token=$INDEX_WEBHOOK_TOKEN" -F "ref=$BRANCH" -F "variables[TRIGGER_ACTION]=index" $INDEX_WEBHOOK_URL\
# """
[build.environment]
NODE_VERSION = "10"
ANTORA_CACHE_DIR = "node_modules/.cache/antora"
[context.production.environment]
# ALGOLIA_APP_ID = "E80Q5UHPOS"
# ALGOLIA_API_KEY = "6e7248a6d21038512a92145e9b903757"
# ALGOLIA_IDX_NAME = "antora-docs"
# GOOGLE_ANALYTICS_KEY = "UA-112324747-2"
[context.deploy-preview]
command = """\
NODE_PATH=node_modules node_modules/.bin/antora --fetch --generator=@antora/xref-validator ../docs/antora-playbook/site.yml && \
node_modules/.bin/antora --url $DEPLOY_PRIME_URL --html-url-extension-style=indexify --redirect-facility=netlify ../docs/antora-playbook/site.yml\
"""
# NOTE use settings from _headers file to allow use of netlify command (not currently used)
#[[headers]]
#for = "/_/font/*"
# [headers.values]
# Cache-Control = "public,max-age=604800"
# NOTE these redirects get appended to the redirects defined in the _redirects file
# [[redirects]]
# from = "https://antora-docs.netlify.com/*"
# to = "https://docs.antora.org/:splat"
# status = 301
# force = true
# [[redirects]]
# from = "/antora/latest/*"
# to = "/antora/2.0/:splat"
# status = 302