-
Notifications
You must be signed in to change notification settings - Fork 287
🏗️(frontend) footer configurable #959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The rule @typescript-eslint/no-unused-vars didn't have a ignore pattern. A ignore pattern can be usefull in some cases.
13b6929
to
24febb9
Compare
Improve config testcases: - let THEME_CUSTOMIZATION_FILE_PATH to be set to check the default value - add helper function overrideConfig
To have different footer per instance the content of the footer is now configurable from the theme customization file. See THEME_CUSTOMIZATION_FILE_PATH env var.
Legal pages are not needed anymore in the application. In the dsfr instances, the legal pages will be displayed on a Docs pages. We let the users of Docs managing the legal pages on their own instances.
24febb9
to
f1d2050
Compare
|
||
### Example of JSON | ||
|
||
The json must follow some rules: https://github.com/suitenumerique/docs/blob/main/src/backend/impress/configuration/theme/default.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To illustrate the rules, can we point it to the demo.json in helm directory instead of the default.json?
Some customizations, like the translations do not make sense to be in default.json (yet).
I've put them in demo.json to illustrate how it is used.
If the user views this documentation, maybe it is better to link to the same json file.
see here
Purpose
We need to have different footer per instance.
The footer has to be displayable or not.
Proposal
Bind the frontend footer with the theme configuration file:
https://github.com/suitenumerique/docs/blob/main/src/backend/impress/configuration/theme/default.json
Demo