Skip to content

Commit

Permalink
Build and Host Website on Netlify (#528)
Browse files Browse the repository at this point in the history
* adds netlify config and adjusts hugo config to align (#528)

Co-authored-by: Alex Kestner <kestnera@amazon.com>
  • Loading branch information
akestner and Alex Kestner committed Jul 23, 2021
1 parent 05abd58 commit 70b498d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
4 changes: 1 addition & 3 deletions website/config.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
baseURL = "karpenter/"

# Hugo allows theme composition (and inheritance). The precedence is from left to right.
theme = ["docsy"]

# Build settings
publishDir = "../docs"
baseURL = "/"
disableKinds = ["taxonomy", "taxonomyTerm"]

# Language settings
Expand Down
31 changes: 31 additions & 0 deletions website/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[build]
base = "website/"
publish = "public"
command = "npm install; git submodule update --init --recursive; hugo --gc --minify"

[context.production.environment]
HUGO_VERSION = "0.86.0"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"

[context.split1]
command = "npm install; git submodule update --init --recursive; hugo --gc --minify --enableGitInfo"

[context.split1.environment]
HUGO_VERSION = "0.86.0"
HUGO_ENV = "production"

[context.deploy-preview]
command = "npm install; git submodule update --init --recursive; hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
HUGO_VERSION = "0.86.0"

[context.branch-deploy]
command = "npm install; git submodule update --init --recursive; hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
HUGO_VERSION = "0.86.0"

[context.next.environment]
HUGO_ENABLEGITINFO = "true"

0 comments on commit 70b498d

Please sign in to comment.