forked from couchbase/docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
netlify.toml
36 lines (31 loc) · 1.12 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
[build]
base = "netlify/"
publish = "public/"
command = """\
node_modules/.bin/antora --fetch --generator=@antora/xref-validator ../$STAGE-antora-playbook.yml || true; \
node_modules/.bin/antora --redirect-facility=netlify ../$STAGE-antora-playbook.yml \
"""
[build.environment]
NODE_VERSION = "10"
ANTORA_CACHE_DIR = "node_modules/.cache/antora"
STAGE = "staging"
[context.production.environment]
ALGOLIA_APP_ID = "NI1G57N08Q"
ALGOLIA_API_KEY = "d3eff3e8bcc0860b8ceae87360a47d54"
ALGOLIA_INDEX_NAME = "prod_docs_couchbase"
OPTANON_SCRIPT_URL = "https://cdn.cookielaw.org/consent/288c1333-faac-4514-a8bf-a30b3db0ee32.js"
SHOW_FEEDBACK_BUTTON = "true"
[context.deploy-preview]
command = """\
node_modules/.bin/antora --fetch --generator=@antora/xref-validator ../$STAGE-antora-playbook.yml || true; \
node_modules/.bin/antora --redirect-facility=netlify --url $DEPLOY_PRIME_URL ../$STAGE-antora-playbook.yml \
"""
[[headers]]
for = "/_/font/*"
[headers.values]
Cache-Control = "public,max-age=604800"
[[redirects]]
from = "/operator/1.2/whats-new.html"
to = "https://docs.couchbase.com/operator/1.2/whats-new.html"
status = 302
force = true