Repository navigation
website/docs: Unify Docusaurus brand plugins. - #26324
Conversation
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #26324 +/- ##
==========================================
+ Coverage 92.00% 92.12% +0.11%
==========================================
Files 1177 1177
Lines 76842 76842
Branches 4121 4121
==========================================
+ Hits 70699 70790 +91
+ Misses 6090 5999 -91
Partials 53 53
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
Playwright e2eDownload this run's HTML report, traces and server logs, then open the report: gh run download 36017857207 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-reportInstallation instructionsInstructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-5c280f1f8b71dbde0aa5ad39c12554ec8e2cb403
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-5c280f1f8b71dbde0aa5ad39c12554ec8e2cb403Afterwards, run the upgrade commands from the latest release notes. |
kensternberg-authentik
left a comment
There was a problem hiding this comment.
Not broken, but there were two things that kinda bugged me.
| * @type {ReadonlyArray<AssetEntry>} | ||
| */ | ||
| const BrandAssets = [ | ||
| ["icon.png", "img/icon.png"], |
There was a problem hiding this comment.
Hmm. This is mixing two things: the behavior of the plug-in, and then the configuration of the plug-in. I feel like the actual BrandAssets definition shouldn't be part of the package; that puts it far from the thing it's branding, no?
If you change any of these, instead of just touching one file in the docs folder, you've gotta touch both this and any consumers (because the version number bumps), and that changes everyone's lock files, and ... I mean, maybe you want that so every site that uses this info gets the same set of assets, but it still feels like a compromise.
| icon_top_brand.svg | ||
| icon_top_brand_colour.svg | ||
| icon_top_brand_color.svg | ||
| social.png |
There was a problem hiding this comment.
This patch doesn't delete these old files; they're still there.
$ fd -I icon_left_brand_colour.svg
website/build/img/icon_left_brand_colour.svg
website/docs/build/img/icon_left_brand_colour.svg
website/static/img/icon_left_brand_colour.svg
Move the ad-hoc brand asset copying in the docs site's Docusaurus config into a reusable @goauthentik/docusaurus-config/plugins/brand plugin, so other sites in website/ can adopt it too.
3c42975 to
5c280f1
Compare
Details
This PR moves a common step within our docs, copying static brand assets, to a Docusaurus-compatible plugin.
Once this published, a similar step in our website can be deprecated: https://github.com/goauthentik/website/blob/main/plugins/brand-assets.mts