Skip to content

Commit f182463

Browse files
committed
feat(docs): add release version docs show
1 parent f247c13 commit f182463

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/_static/js/generic_version.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
var DOCUMENTATION_VERSIONS = {
2+
DEFAULTS: { has_targets: false,
3+
},
4+
VERSIONS: [
5+
{ name: "latest", old:false},
6+
{ name: "release-v2.0", old:false},
7+
],
8+
};

docs/conf_common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
# so a file named "default.css" will overwrite the builtin "default.css".
3737
html_static_path = ['../_static']
3838

39+
versions_url = './_static/js/generic_version.js'
40+
3941
# Extra options required by sphinx_idf_theme
4042
project_slug = 'esp-iot-solution'
4143

0 commit comments

Comments
 (0)