diff --git a/website/.gitignore b/website/.gitignore index 3b0bba4fe9..8b4bda0a4a 100644 --- a/website/.gitignore +++ b/website/.gitignore @@ -1,10 +1 @@ -*.log -.cache -.DS_Store -src/.temp -node_modules -dist -public -!.env.example -.env -.env.* +resources diff --git a/website/Dockerfile b/website/Dockerfile deleted file mode 100644 index f28f7b67f8..0000000000 --- a/website/Dockerfile +++ /dev/null @@ -1,3 +0,0 @@ -FROM klakegg/hugo:ext-alpine - -RUN apk add git diff --git a/website/content/v1.0/_index.md b/website/content/v1.0/_index.md index 84689c165a..1d2d0d016d 100644 --- a/website/content/v1.0/_index.md +++ b/website/content/v1.0/_index.md @@ -4,6 +4,7 @@ no_list: true linkTitle: "Documentation" cascade: type: docs +preRelease: true --- ## Welcome diff --git a/website/deploy.sh b/website/deploy.sh deleted file mode 100755 index a2c28f6b5f..0000000000 --- a/website/deploy.sh +++ /dev/null @@ -1,17 +0,0 @@ -#Copyright 2018 Google LLC -# -#Licensed under the Apache License, Version 2.0 (the "License"); -#you may not use this file except in compliance with the License. -#You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -#Unless required by applicable law or agreed to in writing, software -#distributed under the License is distributed on an "AS IS" BASIS, -#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -#See the License for the specific language governing permissions and -#limitations under the License. -# -rm -rf public/ -HUGO_ENV="production" hugo --gc || exit 1 -s3deploy -source=public/ -region=eu-west-1 -bucket=bep.is -distribution-id=E8OKNT7W9ZYZ2 -path temp/td diff --git a/website/docker-compose.yaml b/website/docker-compose.yaml deleted file mode 100644 index e8f211a610..0000000000 --- a/website/docker-compose.yaml +++ /dev/null @@ -1,13 +0,0 @@ -version: "3.3" - -services: - - site: - image: docsy/docsy-example - build: - context: . - command: server - ports: - - "1313:1313" - volumes: - - .:/src diff --git a/website/themes/docsy/layouts/partials/version-banner.html b/website/themes/docsy/layouts/partials/version-banner.html index 6bfbc466ee..6908debe77 100644 --- a/website/themes/docsy/layouts/partials/version-banner.html +++ b/website/themes/docsy/layouts/partials/version-banner.html @@ -1,15 +1,26 @@ - {{ if .Site.Params.archived_version }} +{{ $latest_version := .Site.Params.url_latest_version }} +{{ $current_version := .Section | printf "/%s" }} + +{{ if .FirstSection.Params.prerelease }} {{ $color := "primary" }} - {{ $latest_version := .Site.Params.url_latest_version }} - {{ $current_version := .Site.Params.version }}
- {{ with $current_version }}

Version {{ . | markdownify }} of the + {{ with $current_version }}

Version {{ trim . "/" | markdownify }} of the + documentation is for the Talos version being developed. + {{ with $latest_version }}For the latest stable version of Talos, see the + latest version.

+ {{ end }} + {{ end }} +
+{{ else if ne $latest_version $current_version }} + {{ $color := "primary" }} +
+ {{ with $current_version }}

Version {{ trim . "/" | markdownify }} of the documentation is no longer actively maintained. The site that you are - currently viewing is an archived snapshot. - {{ with $latest_version }}For up-to-date documentation, see the - latest version.

+ currently viewing is an archived snapshot. + {{ with $latest_version }}For up-to-date documentation, see the + latest version.

{{ end }} {{ end }}