Created
September 3, 2020 11:38
-
-
Save synesthesia/13aae1e92221cc3156fd3c84b2c2ffa9 to your computer and use it in GitHub Desktop.
Netlify config to publish Antora project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Note you must also set the following environment varibables in the Netlify UI: | |
# GITHUB_CREDENTIALS - a credential that can access private source repos linked from this publishing repo | |
# See https://docs.antora.org/antora/2.3/playbook/private-repository-auth/#pass-credentials-via-an-environment-variable | |
# Settings in the [build] context are global and are applied to all contexts | |
# unless otherwise overridden by more specific contexts. | |
[build] | |
# Directory to change to before starting a build. | |
# This is where we will look for package.json/.nvmrc/etc. | |
base = "" | |
# Directory that contains the deploy-ready HTML files and assets generated by | |
# the build. This is relative to the base directory if one has been set, or the | |
# root directory if a base has not been set. This sample publishes the | |
# directory located at the absolute path "root/project/build-output" | |
publish = "build/site" | |
# Default build command. | |
command = "npm i -g @antora/cli @antora/site-generator-default antora-site-generator-lunr && chmod 0755 ./build-site.sh && ./build-site.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment