From a5f420c4c7e077bd11747470a7b00504b8e75132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javis=20V=2E=20P=C3=A9rez?= Date: Wed, 13 Mar 2024 16:17:33 -0400 Subject: [PATCH] Add X to footer, better list spacing and fixes --- docs/.vitepress/config.mts | 8 +++--- docs/.vitepress/theme/components/Footer.vue | 15 +++++++++++ docs/.vitepress/theme/components/Home.vue | 6 ++--- docs/.vitepress/theme/index.ts | 12 ++++++++- docs/.vitepress/theme/style.css | 30 +++++++++++++++++++++ docs/src/docs/cli/cli-reference.md | 4 +-- 6 files changed, 66 insertions(+), 9 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 0f0e8010..b30a2f0f 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -1,7 +1,8 @@ import { URL, fileURLToPath } from 'node:url' -import { resolve } from 'path' + import { defineConfig } from 'vitepress' import { getSidebarItemsFromMdFiles } from './utils.mts' +import { resolve } from 'path' // https://vitepress.dev/reference/site-config export default defineConfig({ @@ -22,7 +23,8 @@ export default defineConfig({ ['meta', { name: "msapplication-config", content: "/favicons/browserconfig.xml"}], ['meta', { name: "theme-color", content: "#000000"}], ['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-QTDTMG01Z5' } ], - ['script', {}, "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-QTDTMG01Z5');"] + ['script', {}, "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-QTDTMG01Z5');"], + ['script', {}, "(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});\nvar f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\nj.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','GTM-TFFZXCQW');"], ], lastUpdated: true, @@ -99,7 +101,7 @@ export default defineConfig({ { icon: 'github', link: 'https://github.com/jozu-ai/kitops' - }, + } ], footer: { license: { diff --git a/docs/.vitepress/theme/components/Footer.vue b/docs/.vitepress/theme/components/Footer.vue index 34d613bf..cfa7e62f 100644 --- a/docs/.vitepress/theme/components/Footer.vue +++ b/docs/.vitepress/theme/components/Footer.vue @@ -59,6 +59,21 @@ const year = (new Date()).getFullYear() +
  • + + x + + + + + + + + + + + +