Skip to content

Commit

Permalink
docs(fix): Update docs configs to work with the latest hugo theme ver…
Browse files Browse the repository at this point in the history
…sion

Signed-off-by: Dave Henderson <[email protected]>
  • Loading branch information
hairyhenderson committed Jun 28, 2024
1 parent e0a6e4f commit 61594dc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "chroma-gomplate-dark.css";
--CODE-theme: gomplate-dark;

/* my-custom-variant */
:root {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "chroma-gomplate-light.css";
--CODE-theme: gomplate-light;

:root {
--PRIMARY-color: rgb( 145, 132, 121 ); /* brand primary color */
Expand Down
13 changes: 3 additions & 10 deletions docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@ baseURL = "/"
languageCode = "en-us"
title = "gomplate documentation"
theme = "hugo-theme-relearn"
googleAnalytics = "UA-82637990-3"

[params]
alwaysopen = false
editURL = "https://github.com/hairyhenderson/gomplate/edit/main/docs/content/"
author = "hairyhenderson"
description = "gomplate documentation"
showVisitedLinks = false
disableSearch = false
disableSearchHiddenPages = false
Expand All @@ -35,17 +32,13 @@ googleAnalytics = "UA-82637990-3"
disableExplicitIndexURLs = true
externalLinkTarget = "_blank"

[params.author]
name = "hairyhenderson"

[markup]
[markup.highlight]
guessSyntax = false
noClasses = false

[outputs]
home = [ "HTML", "RSS", "SEARCH", "SEARCHPAGE"]

[privacy]
[privacy.googleAnalytics]
disable = false
anonymizeIP = true
respectDoNotTrack = true
useSessionStorage = false
6 changes: 3 additions & 3 deletions docs/layouts/partials/custom-footer.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{{ template "_internal/google_analytics.html" . }}
<script>
(function () {
var webSdkScript = document.createElement("script");
webSdkScript.src = "https://unpkg.com/@grafana/faro-web-sdk@^1.0.0/dist/bundle/faro-web-sdk.iife.js";
webSdkScript.src = "https://unpkg.com/@grafana/faro-web-sdk@^1.4.0/dist/bundle/faro-web-sdk.iife.js";

webSdkScript.onload = () => {
window.GrafanaFaroWebSdk.initializeFaro({
url: "https://faro-collector-prod-us-central-0.grafana.net/collect/d8b5652f5dd57fb1cfec9a1c32970fe0",
Expand All @@ -17,7 +17,7 @@
// This is important because we need to ensure that the Web-SDK has been loaded and initialized before we add further instruments!
var webTracingScript = document.createElement("script");

webTracingScript.src = "https://unpkg.com/@grafana/faro-web-tracing@^1.0.0/dist/bundle/faro-web-tracing.iife.js";
webTracingScript.src = "https://unpkg.com/@grafana/faro-web-tracing@^1.4.0/dist/bundle/faro-web-tracing.iife.js";

// Initialize, configure (if necessary) and add the the new instrumentation to the already loaded and configured Web-SDK.
webTracingScript.onload = () => {
Expand Down
7 changes: 7 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build]
command = "make gen-docs"
publish = "docs/public/"

[build.environment]
HUGO_VERSION = "0.128.0"
NODE_VERSION = "20"

0 comments on commit 61594dc

Please sign in to comment.