diff --git a/docs/conf_common.py b/docs/conf_common.py index 26b283df9f..5c696b8f70 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -4,13 +4,9 @@ # # This file is imported from a language-specific conf.py (ie en/conf.py or # zh_CN/conf.py) - # type: ignore # pylint: disable=wildcard-import # pylint: disable=undefined-variable - -from __future__ import print_function, unicode_literals - import os.path import re from pathlib import Path @@ -262,6 +258,7 @@ github_repo = 'espressif/esp-idf' html_context['github_user'] = 'espressif' html_context['github_repo'] = 'esp-idf' + # Extra options required by sphinx_idf_theme project_slug = 'esp-idf' versions_url = 'https://dl.espressif.com/dl/esp-idf/idf_versions.js' @@ -318,5 +315,7 @@ def conf_setup(app, config): # Not for all target pass + config.html_baseurl = f'https://docs.espressif.com/projects/esp-idf/{config.language}/stable/{config.idf_target}' + user_setup_callback = conf_setup