We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1179ee9 commit d1b7ad8Copy full SHA for d1b7ad8
templates/switchers.js
@@ -1,6 +1,7 @@
1
'use strict';
2
3
-const _CURRENT_VERSION = DOCUMENTATION_OPTIONS.VERSION;
+const _CURRENT_RELEASE = DOCUMENTATION_OPTIONS.VERSION || '';
4
+const _CURRENT_VERSION = _CURRENT_RELEASE.split('.', 2).join('.');
5
const _CURRENT_LANGUAGE = DOCUMENTATION_OPTIONS.LANGUAGE?.toLowerCase() || 'en';
6
const _CURRENT_PREFIX = (() => {
7
// Sphinx 7.2+ defines the content root data attribute in the HTML element.
0 commit comments