Skip to content

Commit

Permalink
docs: adjustments to folder structure (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
mowies committed Jan 19, 2023
1 parent ed5e200 commit 1ec07ba
Show file tree
Hide file tree
Showing 23 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/actions/update-documentation/scripts/update_docs.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
import os
from dirsync import sync
import yaml
import argparse

import yaml
from dirsync import sync

parser = argparse.ArgumentParser(description="Keptn Documentation Updater")
parser.add_argument('--version', '-v', help='Keptn LT Version', default="development", required=True, dest='version')
parser.add_argument('--update-main', '-u', action='store_true', help='Update main version', dest='update_main')
Expand All @@ -24,7 +24,8 @@
exit(1)

# Sync the docs from the KLT repo to the docs folder, sync main-version docs to the root
sync(klt_repo + '/docs/content/docs', klt_docs + '/content/en/docs-' + version, 'sync', exclude=['^tmp', 'Makefile'], create=True)
sync(klt_repo + '/docs/content/en/docs', klt_docs + '/content/en/docs-' + version, 'sync', exclude=['^tmp', 'Makefile'],
create=True)

# Update the version in the docs
with open(klt_docs + "/" + 'config.yaml', 'r') as f:
Expand Down
6 changes: 3 additions & 3 deletions 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/docs:/src/content/en/docs
VOLUMES := -v $(TMPDIR)/lifecycle-toolkit-docs:/src -v $(CURDIR)/content/en/docs:/src/content/en/docs
# renovate: datasource=docker depName=klakegg/hugo
HUGO_VERSION := 0.105.0-ext
IMAGE := klakegg/hugo:$(HUGO_VERSION)
Expand All @@ -21,5 +21,5 @@ server:
clean:
docker run --rm -it $(VOLUMES) $(IMAGE) --cleanDestinationDir

htmltest:
docker run -v $(CURDIR):/test --rm wjdp/htmltest -s -c .htmltest.yml public
htmltest: clone build
docker run -v $(CURDIR):/test --rm wjdp/htmltest -s /test/tmp/lifecycle-toolkit-docs/public
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1ec07ba

Please sign in to comment.