Skip to content

Commit

Permalink
docs: fix broken edit for developer (#756)
Browse files Browse the repository at this point in the history
Signed-off-by: realanna <[email protected]>
  • Loading branch information
RealAnna authored Feb 3, 2023
1 parent b6b4160 commit ce6b7f0
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
DOCREPO := github.com/keptn-sandbox/lifecycle-toolkit-docs
TMPDIR := $(CURDIR)/tmp
VOLUMES := -v $(TMPDIR)/lifecycle-toolkit-docs:/src -v $(CURDIR)/content/en/docs:/src/content/en/docs
VOLUMES := -v $(TMPDIR)/lifecycle-toolkit-docs:/src -v $(CURDIR)/content/en/docs:/src/content/en/docs-dev
# renovate: datasource=docker depName=klakegg/hugo
HUGO_VERSION := 0.105.0-ext
IMAGE := klakegg/hugo:$(HUGO_VERSION)
Expand Down
20 changes: 20 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Choosing where to add documentation

If the change to the docs needs to reflect the next version of KLT, please edit them here, following the instructions below.
For already existing documentation versions directly edit them from https://github.com/keptn-sandbox/lifecycle-toolkit-docs or from https://lifecycle.keptn.sh/.

## Adding documentation to the dev repo

To verify your changes to the dev documentations you can use the makefile:

````
cd lifecycle-toolkit/docs
make clone
make build
make server
````

After the server is running on http://localhost:1314/docs-dev.
Any modification in the docs folder will be reflected on the server under the dev revision.
You can modify the content in realtime to verify the correct behaviour of links and such.
5 changes: 3 additions & 2 deletions docs/content/en/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ linktitle: Docs
description: Learn how to use Keptn.
cascade:
type: docs

---
github_subdir: "docs/content/en/docs"
path_base_for_github_subdir: "/content/en/docs-dev"
---
3 changes: 3 additions & 0 deletions docs/content/en/docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title: Getting Started
linktitle: Getting Started
description: Learn how to use the Keptn Lifecycle Toolkit.
weight: 15
cascade:
github_subdir: "docs/content/en/docs"
path_base_for_github_subdir: "/content/en/docs-dev"
---

The Keptn Lifecycle Toolkit makes your deployments observable, brings application-awareness to your Kubernetes cluster and helps you reliably delivering your application with:
Expand Down

0 comments on commit ce6b7f0

Please sign in to comment.