Skip to content

Commit ae36429

Browse files
authored
website: Port WWW theme to docs site. Prep for package. (#13962)
Update sidebar.css Signed-off-by: Teffen Ellis <[email protected]> website/docs: Update paths. website/docs: Use package theme.
1 parent f15bc2d commit ae36429

18 files changed

+38
-278
lines changed

website/docusaurus.config.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ import type * as OpenApiPlugin from "docusaurus-plugin-openapi-docs";
55
import remarkGithub, { BuildUrlValues } from "remark-github";
66
import { defaultBuildUrl } from "remark-github";
77
import remarkDirective from "remark-directive";
8-
import remarkVersionDirective from "./remark/version-directive";
9-
import remarkPreviewDirective from "./remark/preview-directive";
10-
import remarkSupportDirective from "./remark/support-directive";
8+
import remarkVersionDirective from "./remark/version-directive.js";
9+
import remarkPreviewDirective from "./remark/preview-directive.js";
10+
import remarkSupportDirective from "./remark/support-directive.js";
1111

1212
const createConfig = (): Config => {
1313
return {
@@ -60,14 +60,14 @@ const createConfig = (): Config => {
6060
},
6161
{
6262
href: "https://github.com/goauthentik/authentik",
63-
className: "header-github-link",
64-
"aria-label": "GitHub repository",
63+
"data-icon": "github",
64+
"aria-label": "GitHub",
6565
position: "right",
6666
},
6767
{
6868
href: "https://goauthentik.io/discord",
69-
className: "header-discord-link",
70-
"aria-label": "GitHub repository",
69+
"data-icon": "discord",
70+
"aria-label": "Discord",
7171
position: "right",
7272
},
7373
],
@@ -138,7 +138,9 @@ const createConfig = (): Config => {
138138
],
139139
},
140140
theme: {
141-
customCss: require.resolve("./src/css/custom.css"),
141+
customCss: require.resolve(
142+
"@goauthentik/docusaurus-config/css/index.css",
143+
),
142144
},
143145
} satisfies Preset.Options,
144146
],

website/package-lock.json

Lines changed: 27 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"watch": "cp -f ../schema.yml ./static/schema.yml && docusaurus gen-api-docs all && docusaurus start"
1818
},
1919
"dependencies": {
20+
"@goauthentik/docusaurus-config": "^1.0.4",
2021
"semver": "^7.7.1",
2122
"@docusaurus/core": "^3.7.0",
2223
"@docusaurus/faster": "^3.7.0",
@@ -37,7 +38,6 @@
3738
"react-dom": "^18.3.1",
3839
"react-feather": "^2.0.10",
3940
"react-toggle": "^4.1.3",
40-
"react-tooltip": "^5.28.0",
4141
"remark-directive": "^4.0.0",
4242
"remark-github": "^12.0.0"
4343
},

website/src/css/custom.css

Lines changed: 0 additions & 234 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)