Skip to content

Commit

Permalink
Deploy older version
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Sep 16, 2024
1 parent f808e66 commit 472cccc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-deploy-and-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ jobs:
fetch-depth: 0

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
hugo-version: 'v0.100.0'
extended: true

- name: Temp config
run: |
echo url_latest_version = \"https://docs-test.viam.dev/${{ github.sha }}/public\" > config_pr.toml
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ build-prod: clean setup
build-pr: clean setup
hugo $(PR_OPTIONS)

build-pr-no-clean: setup
hugo $(PR_OPTIONS)

serve-prod: setup
hugo server $(PROD_OPTIONS) $(SERVE_OPTIONS)

Expand Down
1 change: 0 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ anchor = "smart"
[languages]
[languages.en]
title = "Viam Documentation"
description = "Viam Documentation"
languageName ="English"
weight = 1

Expand Down
8 changes: 0 additions & 8 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,3 @@

{{ partial "hooks/head-end.html" . -}}

{{/* To comply with GDPR, cookie consent scripts places in head-end must execute before Google Analytics is enabled */ -}}
{{ if hugo.IsProduction -}}
{{ if hasPrefix .Site.GoogleAnalytics "G-" -}}
{{ template "_internal/google_analytics.html" . -}}
{{ else -}}
{{ template "_internal/google_analytics_async.html" . -}}
{{ end -}}
{{ end -}}

0 comments on commit 472cccc

Please sign in to comment.