From b9f3b98119eba03225574a74194478d9089ad637 Mon Sep 17 00:00:00 2001 From: Phillip LeBlanc Date: Fri, 8 Mar 2024 11:38:26 +0900 Subject: [PATCH] Remove custom docsy overrides (#107) --- spiceaidocs/config.toml | 4 +- .../layouts/partials/hooks/head-end.html | 11 ----- spiceaidocs/layouts/partials/navbar.html | 44 ------------------- spiceaidocs/layouts/shortcodes/button.html | 8 ---- 4 files changed, 2 insertions(+), 65 deletions(-) delete mode 100644 spiceaidocs/layouts/partials/hooks/head-end.html delete mode 100644 spiceaidocs/layouts/partials/navbar.html delete mode 100644 spiceaidocs/layouts/shortcodes/button.html diff --git a/spiceaidocs/config.toml b/spiceaidocs/config.toml index d261e5a2..c7333e8d 100644 --- a/spiceaidocs/config.toml +++ b/spiceaidocs/config.toml @@ -59,11 +59,11 @@ anchor = "smart" # Everything below this are Site Params -[[menu.left]] +[[menu.main]] name = "CLI" weight = 10 url = "cli" -[[menu.left]] +[[menu.main]] name = "Reference" weight = 10 url = "reference" diff --git a/spiceaidocs/layouts/partials/hooks/head-end.html b/spiceaidocs/layouts/partials/hooks/head-end.html deleted file mode 100644 index 8701f3d3..00000000 --- a/spiceaidocs/layouts/partials/hooks/head-end.html +++ /dev/null @@ -1,11 +0,0 @@ - -{{ $scssExtend := "scss/extend.scss"}} -{{ if not hugo.IsProduction }} -{{/* Note the missing postCSS. This makes it snappier to develop in Chrome, but makes it look sub-optimal in other browsers. */}} -{{ $css := resources.Get $scssExtend | toCSS (dict "enableSourceMap" true) }} - -{{ else }} -{{ $css := resources.Get $scssExtend | toCSS (dict "enableSourceMap" false) | postCSS | minify | fingerprint }} - - -{{ end }} diff --git a/spiceaidocs/layouts/partials/navbar.html b/spiceaidocs/layouts/partials/navbar.html deleted file mode 100644 index d9dccd91..00000000 --- a/spiceaidocs/layouts/partials/navbar.html +++ /dev/null @@ -1,44 +0,0 @@ -{{ $cover := .HasShortcode "blocks/cover" }} - diff --git a/spiceaidocs/layouts/shortcodes/button.html b/spiceaidocs/layouts/shortcodes/button.html deleted file mode 100644 index 5ab0ddc9..00000000 --- a/spiceaidocs/layouts/shortcodes/button.html +++ /dev/null @@ -1,8 +0,0 @@ -{{ $color := .Get "color" | default "primary" }} -{{ $page := .Get "page" }} -{{ $link := .Get "link" | default "#" }} -{{ $text := .Get "text" }} - -{{- if $page -}}{{- $link = ref . $page -}}{{- end -}} - -{{ $text }}