Fix running docs site with docker (#5512)

* Update docs site local build

Clean up makefile

Ignore container-image.sentinel

Fix hugo server errors

Ignore files

Add makefile credit

* Indentation per feedback

* Address PR feedback. Remove sentinel file

* Remove change to .gitignore
This commit is contained in:
Nick
2024-01-31 14:54:03 -08:00
committed by GitHub
parent b1b61ad4cf
commit add367bf2e
6 changed files with 262 additions and 62 deletions

View File

@@ -1,19 +1,18 @@
[build]
base = "site/"
command = "git submodule update --init --recursive --depth 1 && hugo"
publish = "publishedSite/"
base = "site/"
command = "git submodule update --init --recursive --depth 1 && hugo"
publish = "publishedSite/"
[build.environment]
HUGO_VERSION = "0.92.2"
NODE_ENV = "development"
NETLIFY_BUILD_DEBUG = "true"
HUGO_VERSION = "0.120.3"
NODE_ENV = "development"
NETLIFY_BUILD_DEBUG = "true"
[context.deploy-preview]
command = "git submodule update --init --recursive --depth 1 && hugo --enableGitInfo --buildFuture -b $DEPLOY_PRIME_URL"
command = "git submodule update --init --recursive --depth 1 && hugo --enableGitInfo --buildFuture -b $DEPLOY_PRIME_URL"
[context.branch-deploy]
ignore = "exit 0" # build PRs (deploy preview env) only, not all branches
ignore = "exit 0" # build PRs (deploy preview env) only, not all branches
[context.production]
ignore = "exit 0" # never deploy production until we're ready to launch
ignore = "exit 0" # never deploy production until we're ready to launch