From 779c2f2ce0a67742324d74d6b28f95403504588f Mon Sep 17 00:00:00 2001
From: jonasrosland
Date: Wed, 15 Apr 2020 15:08:13 -0400
Subject: [PATCH] Add new docs generating function
Signed-off-by: jonasrosland
---
Makefile | 4 +-
config.toml | 5 +-
layouts/partials/navbar.html | 6 +-
load-docs.sh | 153 +++++++++++++++++++++++++++++++++++
4 files changed, 161 insertions(+), 7 deletions(-)
create mode 100755 load-docs.sh
diff --git a/Makefile b/Makefile
index c8dd742fd..68c11c365 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,7 @@ clean:
rm -rf public resources
prepare:
- git submodule update --init --remote --merge
- cp -rf harbor/docs content
- rm -rf content/docs/*.md content/docs/prepare-swagger.sh content/docs/{adopters,security} content/docs/**/README.md
+ $(CURDIR)/load-docs.sh
serve:
hugo server \
diff --git a/config.toml b/config.toml
index c333b6ee7..8d35165dc 100644
--- a/config.toml
+++ b/config.toml
@@ -20,7 +20,10 @@ logo_repo = "https://branding.cncf.io/projects/harbor"
youtube_video_id = "hG1YSlfVTqY"
alpine_js_version = "2.1.2"
-versions = ["1.10"]
+[[params.versions]]
+harborversion = "1.10"
+helmversion = "1.3"
+branchname = "release-1.10-doc"
[params.info]
what_is = "Harbor is an open source container image registry that secures images with role-based access control, scans images for vulnerabilities, and signs images as trusted. As a CNCF Incubating project, Harbor delivers compliance, performance, and interoperability to help you consistently and securely manage images across cloud native compute platforms like Kubernetes and Docker."
diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html
index 69c6a88cc..29fa2dfa0 100644
--- a/layouts/partials/navbar.html
+++ b/layouts/partials/navbar.html
@@ -67,14 +67,14 @@
- {{ range $versions }}
+ {{ range site.Params.versions }}
{{ $isLatest := eq . $latest }}