Skip to content
This repository was archived by the owner on Oct 19, 2024. It is now read-only.

Commit f2c813b

Browse files
fix: docs version selector not rendering (#246)
Signed-off-by: Ryota Sakamoto <[email protected]>
1 parent 3eae8ac commit f2c813b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/assets/versions.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.md-header-nav__title {
1+
.md-header__title {
22
display: flex;
33
}
44

@@ -169,4 +169,4 @@ most styles have to be overriden here */
169169
.rst-versions.shift{
170170
display:block
171171
}
172-
}
172+
}

docs/assets/versions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ setTimeout(function() {
33
window[callbackName] = function (response) {
44
const div = document.createElement('div');
55
div.innerHTML = response.html;
6-
document.querySelector(".md-header-nav > .md-header-nav__title").appendChild(div);
6+
document.querySelector(".md-header__inner > .md-header__title").appendChild(div);
77
const container = div.querySelector('.rst-versions');
88
var caret = document.createElement('div');
99
caret.innerHTML = "<i class='fa fa-caret-down dropdown-caret'></i>"
@@ -40,4 +40,4 @@ window.addEventListener("DOMContentLoaded", function() {
4040
else if ((window['READTHEDOCS_DATA']).version !== "stable") {
4141
document.querySelector("div[data-md-component=announce]").innerHTML = "<div id='announce-msg'>You are viewing the docs for a previous version of Argo CD, <a href='https://argocd-notifications.readthedocs.io/en/stable/'>click here to go to the latest stable version.</a></div>"
4242
}
43-
});
43+
});

0 commit comments

Comments
 (0)