From 88d5477fdb95fbcc045b2c165391797fa73e38f4 Mon Sep 17 00:00:00 2001 From: Shubham Patil Date: Wed, 24 Sep 2025 09:56:11 +0530 Subject: [PATCH] docs: use the version file from the main branch As we are using the static file for showing versions in the drop-down this would be outdated with each new release, so use it from the main branch, with the assumption that it would always be up-to-date. --- docs/_static/esp_sdk_matter_version.js | 16 ---------------- docs/conf_common.py | 2 +- 2 files changed, 1 insertion(+), 17 deletions(-) delete mode 100644 docs/_static/esp_sdk_matter_version.js diff --git a/docs/_static/esp_sdk_matter_version.js b/docs/_static/esp_sdk_matter_version.js deleted file mode 100644 index 17afe01e2..000000000 --- a/docs/_static/esp_sdk_matter_version.js +++ /dev/null @@ -1,16 +0,0 @@ -var DOCUMENTATION_VERSIONS = { - DEFAULTS: { has_targets: false, - supported_targets: [ "esp32" ] - }, - VERSIONS: [ - { name: "latest", has_targets: true, supported_targets: [ "esp32", "esp32c2", "esp32c3", "esp32c6", "esp32s3", "esp32h2" ] }, - ], - IDF_TARGETS: [ - { text: "ESP32", value: "esp32" }, - { text: "ESP32-S3", value: "esp32s3" }, - { text: "ESP32-C2", value: "esp32c2" }, - { text: "ESP32-C3", value: "esp32c3" }, - { text: "ESP32-C6", value: "esp32c6" }, - { text: "ESP32-H2", value: "esp32h2" }, - ] -}; diff --git a/docs/conf_common.py b/docs/conf_common.py index 9ca6207f5..ee9a44700 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -23,7 +23,7 @@ project_slug = 'esp-matter' # Contains info used for constructing target and version selector # Can also be hosted externally, see esp-idf for example -versions_url = '_static/esp_sdk_matter_version.js' +versions_url = 'https://docs.espressif.com/projects/esp-matter/en/latest/esp32/_static/esp_sdk_matter_version.js' # Final PDF filename will contains target and version pdf_file_prefix = u'esp-docs'