Skip to content

Commit

Permalink
chore: set new documentation approach live (#1007)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Schrottner <simon.schrottner@dynatrace.com>
  • Loading branch information
aepfli committed Mar 13, 2023
1 parent 89e03c2 commit f3511f1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ We are using Netlify to publish our pages.
There are 3 different types of publication:

1. pull request previews
2. development documentation aka staging (build of `main` branch) - [link](https://main.lifecycle-test.keptn.sh)
3. official documentation aka production (build of `page` branch) - [link](https://lifecycle-test.keptn.sh)
2. development documentation aka staging (build of `main` branch) - [link](https://main.lifecycle.keptn.sh)
3. official documentation aka production (build of `page` branch) - [link](https://lifecycle.keptn.sh)

Within the navigation bar, we do have version links pointing to the different publications - if it makes sense.
For example, we are not linking from development and production to pull request previews.
Expand Down
4 changes: 2 additions & 2 deletions docs/config/_default/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ github_subdir: docs
versions:
- url: /docs/
version: branch-preview
- url: https://main.lifecycle-test.keptn.sh/docs
- url: https://main.lifecycle.keptn.sh/docs
version: development
- url: https://lifecycle-test.keptn.sh/docs
- url: https://lifecycle.keptn.sh/docs
version: latest
2 changes: 1 addition & 1 deletion docs/config/production/params.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
versions:
- url: https://main.lifecycle-test.keptn.sh/docs
- url: https://main.lifecycle.keptn.sh/docs
version: development
github_branch: pages
5 changes: 5 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../netlify.toml"
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"

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

Expand Down

0 comments on commit f3511f1

Please sign in to comment.