diff --git a/OWNERS b/OWNERS index fb5c351c42..dad6adc133 100644 --- a/OWNERS +++ b/OWNERS @@ -1,16 +1,7 @@ approvers: - - animeshsingh - - Bobgy - - joeliedtke - - RFMVasconcelos -reviewers: - - 8bitmp3 - - aronchick - - berndverst - - dansanche - - dsdinter - - Jeffwan - - jinchihe - - nickchase - - pdmack + - andreyvelich + - james-jwu + - jbottum + - johnugeorge - terrytangyuan + - zijianjoy \ No newline at end of file diff --git a/config.toml b/config.toml index 01b1bf3fc5..4faa72460e 100644 --- a/config.toml +++ b/config.toml @@ -124,11 +124,11 @@ version = "v1.2" # Flag used in the "version-banner" partial to decide whether to display a # banner on every page indicating that this is an archived version of the docs. -archived_version = false +archived_version = true # A link to latest version of the docs. Used in the "version-banner" partial to # point people to the main doc site. -url_latest_version = "https://kubeflow.org/docs/" +url_latest_version = "https://www.kubeflow.org/docs/" # A variable used in various docs to determine URLs for config files etc. # To find occurrences, search the repo for 'params "githubbranch"'. @@ -137,49 +137,41 @@ githubbranch = "v1.2-branch" # Add new release versions here. These entries appear in the drop-down menu # at the top of the website. [[params.versions]] - version = "master" + version = "Latest" githubbranch = "master" - url = "https://master.kubeflow.org" - + url = "https://www.kubeflow.org" [[params.versions]] - version = "v0.2" - githubbranch = "v0.2-branch" - url = "https://v0-2.kubeflow.org" - + version = "v1.2" + githubbranch = "v1.2-branch" + url = "https://v1-2-branch.kubeflow.org" [[params.versions]] - version = "v0.3" - githubbranch = "v0.3-branch" - url = "https://v0-3.kubeflow.org" - + version = "v1.1" + githubbranch = "v1.1-branch" + url = "https://v1-1-branch.kubeflow.org" [[params.versions]] - version = "v0.4" - githubbranch = "v0.4-branch" - url = "https://v0-4.kubeflow.org" - + version = "v1.0" + githubbranch = "v1.0-branch" + url = "https://v1-0-branch.kubeflow.org" [[params.versions]] - version = "v0.5" - githubbranch = "v0.5-branch" - url = "https://v0-5.kubeflow.org" - + version = "v0.7" + githubbranch = "v0.7-branch" + url = "https://v0-7.kubeflow.org" [[params.versions]] version = "v0.6" githubbranch = "v0.6-branch" url = "https://v0-6.kubeflow.org" - [[params.versions]] - version = "v0.7" - githubbranch = "v0.7-branch" - url = "https://v0-7.kubeflow.org" - + version = "v0.5" + githubbranch = "v0.5-branch" + url = "https://v0-5.kubeflow.org" [[params.versions]] - version = "v1.0" - githubbranch = "v1.0-branch" - url = "https://v1-0-branch.kubeflow.org" - + version = "v0.4" + githubbranch = "v0.4-branch" + url = "https://v0-4.kubeflow.org" [[params.versions]] - version = "v1.1" - githubbranch = "v1.1-branch" - url = "https://v1-1-branch.kubeflow.org" + version = "v0.3" + githubbranch = "v0.3-branch" + url = "https://v0-3.kubeflow.org" # Docsy: User interface configuration [params.ui] diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 2e29e9ca0e..21193d3247 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,11 +1,8 @@ {{ hugo.Generator }} -{{ if eq (getenv "HUGO_ENV") "production" }} - -{{ else }} - -{{ end }} + + {{ range .AlternativeOutputFormats -}} {{ end -}} diff --git a/layouts/partials/version-banner.html b/layouts/partials/version-banner.html new file mode 100644 index 0000000000..641e73fdc8 --- /dev/null +++ b/layouts/partials/version-banner.html @@ -0,0 +1,33 @@ + +{{- $latest_version_url := .Site.Params.url_latest_version }} +{{- $current_version := replace .Site.Params.version "v" "" | markdownify }} +{{- if .Site.Params.archived_version }} + +
+

You are viewing documentation for Kubeflow {{ $current_version }}

+

+ This is a static snapshot from the time of the Kubeflow {{ $current_version }} release. +
+ For up-to-date information, see the latest version. +

+
+{{- end }} \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index a383df9eb2..981bf5c0e5 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,11 +3,14 @@ command = "hugo" [context.deploy-preview.environment] - HUGO_VERSION = "0.68.3" + HUGO_VERSION = "0.81.0" + NODE_VERSION = "12" [context.production.environment] - HUGO_VERSION = "0.68.3" + HUGO_VERSION = "0.81.0" + NODE_VERSION = "12" HUGO_ENV = "production" [context.branch-deploy.environment] - HUGO_VERSION = "0.68.3" \ No newline at end of file + HUGO_VERSION = "0.81.0" + NODE_VERSION = "12" \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000000..789c952e84 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name": "website", + "devDependencies": { + "autoprefixer": "^9.4.3", + "postcss": "^7.0.6", + "postcss-cli": "^6.1.0" + } +}