Version selector for other provider than mike #3566
-
I started to use this project to host my documentation, but I am trying to figure out how to have a version selector. The documentation mention I was looking at the kubernetes and argo-cd documentation https://argo-cd.readthedocs.io/ and they have a nice version selector. However, it queries a readthedocs API to get the version info. Would it be possible to have another An idea would be to have the version information in a json file somewhere that could be queried and could be configurable. Then if the current version defined in the config is different than the latest version in the remote config file, the banner could be displayed. version:
provider: json
index: "https://my.domain/versions.json"
current: v4 {
"latest": "v4",
"versions": {
"v1": "https://my.domain/path/v1",
"v2": "https://my.domain/path/v2",
"v3": "https://my.domain/path/v3",
"v4": "https://my.domain/"
}
} I am not very good in web/js but I will try to do that with extra_javascript. If you know of a better/easier solution, please let me know 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Please see #3128 (comment) and #3128 (comment). Also, for "not latest version" warning, see the documentation. |
Beta Was this translation helpful? Give feedback.
Please see #3128 (comment) and #3128 (comment). Also, for "not latest version" warning, see the documentation.