A nicer way of handling distro specific docs #22892
SludgeGirl
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
@martinpitt and I recently discussed that we show RHEL 9 documentation on RHEL 10 and we possibly want to detect and conventionalize this. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently if a downstream has their own documentation for the various Cockpit modules, this can only be changed and update by maintaining a patch to handle this downstream
I think it'd be a good and pretty intrusive feature to check
/etc/os-releaseforIDandID_LIKEand see if any of those are present in the manifest docs-OS_ID so this would end up looking something like:{ "docs": [ { "label": "Web Console", "url": "https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/managing_systems_using_the_rhel_9_web_console/index" } ], "docs-opensuse": [ { "label": "Web Console", "url": "link" } ], }Defaulting back to whatever might be matched and failing all of that, back to the stock Cockpit documentation
It should only require a small amount of logic changes here:
https://github.com/cockpit-project/cockpit/blob/main/pkg/shell/topnav.tsx#L127-L130
We're good to handle the development of this, I just wanted to open a discussion about this first
Beta Was this translation helpful? Give feedback.
All reactions