2024-12-11 11:43:53 +08:00
|
|
|
# type: ignore
|
2016-10-23 22:14:24 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2018-03-15 10:47:57 +11:00
|
|
|
# English Language RTD & Sphinx config file
|
2016-10-23 22:14:24 +02:00
|
|
|
#
|
2018-03-15 10:47:57 +11:00
|
|
|
# Uses ../conf_common.py for most non-language-specific settings.
|
|
|
|
# Importing conf_common adds all the non-language-specific
|
|
|
|
# parts to this conf module
|
2020-05-19 19:54:14 +08:00
|
|
|
try:
|
2020-05-21 10:42:59 +08:00
|
|
|
from conf_common import * # noqa: F403,F401
|
2020-05-19 19:54:14 +08:00
|
|
|
except ImportError:
|
|
|
|
import os
|
2021-01-22 20:06:05 +08:00
|
|
|
import sys
|
2025-04-10 14:02:32 +08:00
|
|
|
|
2021-08-24 08:56:48 +08:00
|
|
|
sys.path.insert(0, os.path.abspath('../'))
|
2020-05-21 10:42:59 +08:00
|
|
|
from conf_common import * # noqa: F403,F401
|
2016-10-23 22:14:24 +02:00
|
|
|
|
2022-01-10 15:03:51 +08:00
|
|
|
import datetime
|
|
|
|
|
|
|
|
current_year = datetime.datetime.now().year
|
|
|
|
|
2016-10-23 22:14:24 +02:00
|
|
|
# General information about the project.
|
2025-04-10 14:02:32 +08:00
|
|
|
project = 'ESP-IDF Programming Guide'
|
|
|
|
copyright = '2016 - {}, Espressif Systems (Shanghai) Co., Ltd'.format(current_year) # noqa: A001
|
2016-10-23 22:14:24 +02:00
|
|
|
|
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
|
|
# for a list of supported languages.
|
2018-02-03 22:12:13 +01:00
|
|
|
language = 'en'
|
2024-12-11 11:43:53 +08:00
|
|
|
|
|
|
|
html_zip = f'esp-idf-{language}-{release}' # noqa: F405
|
2025-04-10 14:02:32 +08:00
|
|
|
|
2025-04-29 15:24:16 +08:00
|
|
|
# The chatbot is able to answer only about the latest documentation.
|
|
|
|
# Enable Documentation Chatbot widget only for the master branch.
|
|
|
|
if release == 'latest': # noqa: F405
|
|
|
|
html_js_files = ['js/chatbot_widget_en.js']
|