From 4a50c1f64025fb67bff236e17bcb2dd992efb424 Mon Sep 17 00:00:00 2001 From: Tana M Berry Date: Wed, 12 Mar 2025 09:58:51 -0500 Subject: [PATCH] website: edit the new footer with links (#13433) * changes requested * tweaks * tweak * fix github text Signed-off-by: Jens Langhammer * improve styling Signed-off-by: Jens Langhammer * keep opacity Signed-off-by: Jens Langhammer * fix missing bash highlight Signed-off-by: Jens Langhammer --------- Signed-off-by: Jens Langhammer Co-authored-by: Tana M Berry Co-authored-by: Jens Langhammer --- website/docusaurus.config.ts | 1 + website/src/theme/EditMetaRow/index.tsx | 41 +++++++++---------- .../src/theme/EditMetaRow/styles.module.css | 11 +++-- website/src/theme/EditThisPage/index.tsx | 2 +- 4 files changed, 30 insertions(+), 25 deletions(-) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index ab5f2865c4..06b2905c8f 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -92,6 +92,7 @@ const createConfig = (): Config => { "json", "nginx", "python", + "bash", ], }, }, diff --git a/website/src/theme/EditMetaRow/index.tsx b/website/src/theme/EditMetaRow/index.tsx index 3820a06b54..1b4cb27267 100644 --- a/website/src/theme/EditMetaRow/index.tsx +++ b/website/src/theme/EditMetaRow/index.tsx @@ -21,31 +21,30 @@ const EditMetaRow: React.FC = ({ } - title={ - - Help us improve this content - - } - type="info" + icon={null} + title={null} + type="note" > +
+ + + Help us improve this content + + +

- Documentation for authentik is made possible by - contributors like you! - -

- -

- - You can help us improve this page, or let us know about - an issue by opening a pull request on GitHub. + We welcome your knowledge and expertise. If you see + areas of the documentation that you can improve (fix a + typo, correct a technical detail, add additional + context, etc.) we would really appreciate your + contribution.

@@ -75,7 +74,7 @@ const EditMetaRow: React.FC = ({
  • diff --git a/website/src/theme/EditMetaRow/styles.module.css b/website/src/theme/EditMetaRow/styles.module.css index 792e045752..e9321d7b00 100644 --- a/website/src/theme/EditMetaRow/styles.module.css +++ b/website/src/theme/EditMetaRow/styles.module.css @@ -20,13 +20,18 @@ text-transform: none; } -.admonitionContrib { - --ifm-h5-font-size: 1.25rem; +.admonitionHeader { + padding-bottom: 8px; +} +.admonitionContrib { + --ifm-h5-font-size: 1rem; + --ifm-alert-background-color: var(--ifm-color-secondary-lighter); display: block; + border-left-style: none; @media (min-width: 768px) { - --ifm-h5-font-size: 1.5rem; + --ifm-h5-font-size: 1.2rem; --ifm-paragraph-margin-bottom: 0; p:first-child { diff --git a/website/src/theme/EditThisPage/index.tsx b/website/src/theme/EditThisPage/index.tsx index 73e4703879..a4ab542f03 100644 --- a/website/src/theme/EditThisPage/index.tsx +++ b/website/src/theme/EditThisPage/index.tsx @@ -10,7 +10,7 @@ export default function EditThisPage({ editUrl }: Props): ReactNode { GitHub, + github: "GitHub", }} description="The link label to edit the current page" >