From 4068d6742495f65e86299ce7493fd840c4ccaa90 Mon Sep 17 00:00:00 2001 From: Tana M Berry Date: Wed, 12 Mar 2025 13:59:21 -0500 Subject: [PATCH] website: remove the last updated option from footer (#13493) * really remove the last updated option * fix background colour in different themes Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer Co-authored-by: Tana M Berry Co-authored-by: Jens Langhammer --- CODE_OF_CONDUCT.md | 2 +- website/docusaurus.config.ts | 3 +-- website/src/theme/EditMetaRow/styles.module.css | 10 +++++++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 83738fbc2b..9752d725dc 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -5,7 +5,7 @@ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender -identity and expression, level of experience, education, socio-economic status, +identity and expression, level of experience, education, socioeconomic status, nationality, personal appearance, race, religion, or sexual identity and orientation. diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 06b2905c8f..16d8f6bec9 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -103,8 +103,7 @@ const createConfig = (): Config => { docs: { id: "docs", sidebarPath: "./sidebars.js", - showLastUpdateTime: - process.env.GIT_UNAVAILABLE != "true", + showLastUpdateTime: false, editUrl: "https://github.com/goauthentik/authentik/edit/main/website/", docItemComponent: "@theme/ApiItem", diff --git a/website/src/theme/EditMetaRow/styles.module.css b/website/src/theme/EditMetaRow/styles.module.css index e9321d7b00..d83c7a4b06 100644 --- a/website/src/theme/EditMetaRow/styles.module.css +++ b/website/src/theme/EditMetaRow/styles.module.css @@ -24,9 +24,17 @@ padding-bottom: 8px; } +html { + --edit-this-page-background: var(--ifm-color-secondary-lighter); +} + +html[data-theme="dark"] { + --edit-this-page-background: var(--ifm-color-secondary-contrast-background); +} + .admonitionContrib { --ifm-h5-font-size: 1rem; - --ifm-alert-background-color: var(--ifm-color-secondary-lighter); + --ifm-alert-background-color: var(--edit-this-page-background); display: block; border-left-style: none;