Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve rendering of documentation #258

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add netlify config
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
aepfli committed Mar 27, 2023
commit 22e0aeb78165cca0629b29eb997d6d6c27b59b11
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -26,4 +26,5 @@ languages:

ignoreFiles:
- "public"
- "node_modules"
- "tmp"
26 changes: 26 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[build]
publish = "public/"
command = "hugo -b $DEPLOY_PRIME_URL"

[build.environment]
# added specifically a docker image, so the versions within makefile and netlify documentation match
# renovate: datasource=docker depName=klakegg/hugo
HUGO_VERSION = "0.107.0"
HUGO_ENABLEGITINFO = "true"

# On netlify our branch will always be the one we are currently building for
# important information regarding naming
# https://gohugo.io/getting-started/configuration/#configure-with-environment-variables
HUGOxPARAMSxGITHUB_BRANCH="$BRANCH"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aepfli in KLT this seemed not to work, we had to explicitly pass it as an env var to the hug command, here


[context.deploy-preview]
HUGO_ENV = "development"

[context.branch-deploy]
HUGO_ENV = "staging"

[context.production.environment]
HUGO_ENV = "production"

[context.production]
command = "hugo -b $URL"
852 changes: 852 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"dependencies": {
"autoprefixer": "^10.4.13",
"postcss-cli": "^10.1.0"
}
}