mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 12:35:28 +00:00
change: fix issues reported by ruff
This commit is contained in:
@@ -16,77 +16,84 @@ from esp_docs.conf_docs import * # noqa: F403,F401
|
||||
if os.environ.get('IDF_PATH') is None:
|
||||
raise RuntimeError('IDF_PATH should be set, run export.sh before building docs')
|
||||
|
||||
BT_DOCS = ['api-reference/bluetooth/esp_bt_defs.rst',
|
||||
'api-reference/bluetooth/esp_bt_device.rst',
|
||||
'api-reference/bluetooth/esp_bt_main.rst',
|
||||
'api-reference/bluetooth/bt_common.rst',
|
||||
'api-reference/bluetooth/bt_vhci.rst',
|
||||
'api-reference/bluetooth/controller_vhci.rst',
|
||||
'api-reference/bluetooth/index.rst']
|
||||
BT_DOCS = [
|
||||
'api-reference/bluetooth/esp_bt_defs.rst',
|
||||
'api-reference/bluetooth/esp_bt_device.rst',
|
||||
'api-reference/bluetooth/esp_bt_main.rst',
|
||||
'api-reference/bluetooth/bt_common.rst',
|
||||
'api-reference/bluetooth/bt_vhci.rst',
|
||||
'api-reference/bluetooth/controller_vhci.rst',
|
||||
'api-reference/bluetooth/index.rst',
|
||||
]
|
||||
|
||||
BLE_DOCS = ['api-guides/ble/index.rst',
|
||||
'api-guides/ble/overview.rst',
|
||||
'api-guides/ble/ble-feature-support-status.rst',
|
||||
'api-guides/ble/host-feature-support-status.rst',
|
||||
'api-guides/ble/ble-qualification.rst',
|
||||
'api-guides/ble/get-started/ble-introduction.rst',
|
||||
'api-guides/ble/get-started/ble-device-discovery.rst',
|
||||
'api-guides/ble/get-started/ble-connection.rst',
|
||||
'api-guides/ble/get-started/ble-data-exchange.rst',
|
||||
'api-reference/bluetooth/bt_le.rst',
|
||||
'api-reference/bluetooth/esp_gap_ble.rst',
|
||||
'api-reference/bluetooth/esp_gatt_defs.rst',
|
||||
'api-reference/bluetooth/esp_gatts.rst',
|
||||
'api-reference/bluetooth/esp_gattc.rst',
|
||||
'api-reference/bluetooth/nimble/index.rst',
|
||||
'migration-guides/release-5.x/5.0/bluetooth-low-energy.rst']
|
||||
BLE_DOCS = [
|
||||
'api-guides/ble/index.rst',
|
||||
'api-guides/ble/overview.rst',
|
||||
'api-guides/ble/ble-feature-support-status.rst',
|
||||
'api-guides/ble/host-feature-support-status.rst',
|
||||
'api-guides/ble/ble-qualification.rst',
|
||||
'api-guides/ble/get-started/ble-introduction.rst',
|
||||
'api-guides/ble/get-started/ble-device-discovery.rst',
|
||||
'api-guides/ble/get-started/ble-connection.rst',
|
||||
'api-guides/ble/get-started/ble-data-exchange.rst',
|
||||
'api-reference/bluetooth/bt_le.rst',
|
||||
'api-reference/bluetooth/esp_gap_ble.rst',
|
||||
'api-reference/bluetooth/esp_gatt_defs.rst',
|
||||
'api-reference/bluetooth/esp_gatts.rst',
|
||||
'api-reference/bluetooth/esp_gattc.rst',
|
||||
'api-reference/bluetooth/nimble/index.rst',
|
||||
'migration-guides/release-5.x/5.0/bluetooth-low-energy.rst',
|
||||
]
|
||||
|
||||
|
||||
BLE_MESH_DOCS = ['api-guides/esp-ble-mesh/ble-mesh-index.rst',
|
||||
'api-guides/esp-ble-mesh/ble-mesh-feature-list.rst',
|
||||
'api-guides/esp-ble-mesh/ble-mesh-terminology.rst',
|
||||
'api-guides/esp-ble-mesh/ble-mesh-architecture.rst',
|
||||
'api-guides/esp-ble-mesh/ble-mesh-faq.rst',
|
||||
'api-reference/bluetooth/esp-ble-mesh.rst']
|
||||
BLE_MESH_DOCS = [
|
||||
'api-guides/esp-ble-mesh/ble-mesh-index.rst',
|
||||
'api-guides/esp-ble-mesh/ble-mesh-feature-list.rst',
|
||||
'api-guides/esp-ble-mesh/ble-mesh-terminology.rst',
|
||||
'api-guides/esp-ble-mesh/ble-mesh-architecture.rst',
|
||||
'api-guides/esp-ble-mesh/ble-mesh-faq.rst',
|
||||
'api-reference/bluetooth/esp-ble-mesh.rst',
|
||||
]
|
||||
|
||||
CLASSIC_BT_DOCS = ['api-guides/classic-bt/index.rst',
|
||||
'api-guides/classic-bt/overview.rst',
|
||||
'api-reference/bluetooth/classic_bt.rst',
|
||||
'api-reference/bluetooth/esp_a2dp.rst',
|
||||
'api-reference/bluetooth/esp_avrc.rst',
|
||||
'api-reference/bluetooth/esp_hidd.rst',
|
||||
'api-reference/bluetooth/esp_hidh.rst',
|
||||
'api-reference/bluetooth/esp_l2cap_bt.rst',
|
||||
'api-reference/bluetooth/esp_sdp.rst',
|
||||
'api-reference/bluetooth/esp_hf_defs.rst',
|
||||
'api-reference/bluetooth/esp_hf_client.rst',
|
||||
'api-reference/bluetooth/esp_hf_ag.rst',
|
||||
'api-reference/bluetooth/esp_spp.rst',
|
||||
'api-reference/bluetooth/esp_gap_bt.rst',
|
||||
'migration-guides/release-5.x/5.0/bluetooth-classic.rst']
|
||||
CLASSIC_BT_DOCS = [
|
||||
'api-guides/classic-bt/index.rst',
|
||||
'api-guides/classic-bt/overview.rst',
|
||||
'api-reference/bluetooth/classic_bt.rst',
|
||||
'api-reference/bluetooth/esp_a2dp.rst',
|
||||
'api-reference/bluetooth/esp_avrc.rst',
|
||||
'api-reference/bluetooth/esp_hidd.rst',
|
||||
'api-reference/bluetooth/esp_hidh.rst',
|
||||
'api-reference/bluetooth/esp_l2cap_bt.rst',
|
||||
'api-reference/bluetooth/esp_sdp.rst',
|
||||
'api-reference/bluetooth/esp_hf_defs.rst',
|
||||
'api-reference/bluetooth/esp_hf_client.rst',
|
||||
'api-reference/bluetooth/esp_hf_ag.rst',
|
||||
'api-reference/bluetooth/esp_spp.rst',
|
||||
'api-reference/bluetooth/esp_gap_bt.rst',
|
||||
'migration-guides/release-5.x/5.0/bluetooth-classic.rst',
|
||||
]
|
||||
|
||||
BLUFI_DOCS = ['api-guides/ble/blufi.rst',
|
||||
'api-reference/bluetooth/esp_blufi.rst']
|
||||
BLUFI_DOCS = ['api-guides/ble/blufi.rst', 'api-reference/bluetooth/esp_blufi.rst']
|
||||
|
||||
WIFI_DOCS = ['api-guides/low-power-mode/low-power-mode-wifi.rst',
|
||||
'api-guides/wifi.rst',
|
||||
'api-guides/wifi-security.rst',
|
||||
'api-guides/wireshark-user-guide.rst',
|
||||
'api-reference/network/esp_now.rst',
|
||||
'api-reference/network/esp_smartconfig.rst',
|
||||
'api-reference/network/esp_wifi.rst',
|
||||
'api-reference/network/esp_dpp.rst',
|
||||
'api-reference/provisioning/provisioning.rst',
|
||||
'api-reference/provisioning/wifi_provisioning.rst',
|
||||
'migration-guides/release-5.x/5.2/wifi.rst']
|
||||
WIFI_DOCS = [
|
||||
'api-guides/low-power-mode/low-power-mode-wifi.rst',
|
||||
'api-guides/wifi.rst',
|
||||
'api-guides/wifi-security.rst',
|
||||
'api-guides/wireshark-user-guide.rst',
|
||||
'api-reference/network/esp_now.rst',
|
||||
'api-reference/network/esp_smartconfig.rst',
|
||||
'api-reference/network/esp_wifi.rst',
|
||||
'api-reference/network/esp_dpp.rst',
|
||||
'api-reference/provisioning/provisioning.rst',
|
||||
'api-reference/provisioning/wifi_provisioning.rst',
|
||||
'migration-guides/release-5.x/5.2/wifi.rst',
|
||||
]
|
||||
|
||||
IEEE802154_DOCS = ['migration-guides/release-5.x/5.1/ieee802154.rst',
|
||||
'migration-guides/release-5.x/5.2/ieee802154.rst']
|
||||
IEEE802154_DOCS = ['migration-guides/release-5.x/5.1/ieee802154.rst', 'migration-guides/release-5.x/5.2/ieee802154.rst']
|
||||
|
||||
NAN_DOCS = ['api-reference/network/esp_nan.rst']
|
||||
|
||||
WIFI_MESH_DOCS = ['api-guides/esp-wifi-mesh.rst',
|
||||
'api-reference/network/esp-wifi-mesh.rst']
|
||||
WIFI_MESH_DOCS = ['api-guides/esp-wifi-mesh.rst', 'api-reference/network/esp-wifi-mesh.rst']
|
||||
|
||||
COEXISTENCE_DOCS = ['api-guides/coexist.rst']
|
||||
|
||||
@@ -102,8 +109,7 @@ UART_DOCS = ['api-reference/peripherals/uart.rst']
|
||||
|
||||
SDMMC_DOCS = ['api-reference/peripherals/sdmmc_host.rst']
|
||||
|
||||
SDIO_SLAVE_DOCS = ['api-reference/peripherals/sdio_slave.rst',
|
||||
'api-reference/protocols/esp_sdio_slave_protocol.rst']
|
||||
SDIO_SLAVE_DOCS = ['api-reference/peripherals/sdio_slave.rst', 'api-reference/protocols/esp_sdio_slave_protocol.rst']
|
||||
|
||||
MCPWM_DOCS = ['api-reference/peripherals/mcpwm.rst']
|
||||
|
||||
@@ -127,16 +133,18 @@ TOUCH_SENSOR_DOCS = ['api-reference/peripherals/cap_touch_sens.rst']
|
||||
|
||||
SPIRAM_DOCS = ['api-guides/external-ram.rst']
|
||||
|
||||
USB_DOCS = ['api-reference/peripherals/usb_device.rst',
|
||||
'api-reference/peripherals/usb_host.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_arch.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_design.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_dwc_otg.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_index.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_usbh.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_enum.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_ext_hub.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_ext_port.rst']
|
||||
USB_DOCS = [
|
||||
'api-reference/peripherals/usb_device.rst',
|
||||
'api-reference/peripherals/usb_host.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_arch.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_design.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_dwc_otg.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_index.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_usbh.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_enum.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_ext_hub.rst',
|
||||
'api-reference/peripherals/usb_host/usb_host_notes_ext_port.rst',
|
||||
]
|
||||
|
||||
I80_LCD_DOCS = ['api-reference/peripherals/lcd/i80_lcd.rst']
|
||||
RGB_LCD_DOCS = ['api-reference/peripherals/lcd/rgb_lcd.rst']
|
||||
@@ -149,19 +157,24 @@ USB_OTG_CONSOLE_DOCS = ['api-guides/usb-otg-console.rst']
|
||||
|
||||
FTDI_JTAG_DOCS = ['api-guides/jtag-debugging/configure-ft2232h-jtag.rst']
|
||||
|
||||
USB_SERIAL_JTAG_DOCS = ['api-guides/jtag-debugging/configure-builtin-jtag.rst',
|
||||
'api-guides/usb-serial-jtag-console.rst']
|
||||
USB_SERIAL_JTAG_DOCS = [
|
||||
'api-guides/jtag-debugging/configure-builtin-jtag.rst',
|
||||
'api-guides/usb-serial-jtag-console.rst',
|
||||
]
|
||||
|
||||
ULP_FSM_DOCS = ['api-reference/system/ulp.rst',
|
||||
'api-reference/system/ulp_macros.rst',
|
||||
'api-reference/system/ulp_instruction_set.rst']
|
||||
ULP_FSM_DOCS = [
|
||||
'api-reference/system/ulp.rst',
|
||||
'api-reference/system/ulp_macros.rst',
|
||||
'api-reference/system/ulp_instruction_set.rst',
|
||||
]
|
||||
|
||||
RISCV_COPROC_DOCS = ['api-reference/system/ulp-risc-v.rst',]
|
||||
RISCV_COPROC_DOCS = [
|
||||
'api-reference/system/ulp-risc-v.rst',
|
||||
]
|
||||
|
||||
LP_CORE_DOCS = ['api-reference/system/ulp-lp-core.rst']
|
||||
|
||||
XTENSA_DOCS = ['api-guides/hlinterrupts.rst',
|
||||
'api-reference/system/perfmon.rst']
|
||||
XTENSA_DOCS = ['api-guides/hlinterrupts.rst', 'api-reference/system/perfmon.rst']
|
||||
|
||||
RISCV_DOCS = [] # type: list[str]
|
||||
|
||||
@@ -169,15 +182,19 @@ TWAI_DOCS = ['api-reference/peripherals/twai.rst']
|
||||
|
||||
SDM_DOCS = ['api-reference/peripherals/sdm.rst']
|
||||
|
||||
I2C_DOCS = ['api-reference/peripherals/i2c.rst',
|
||||
'api-reference/peripherals/lcd/i2c_lcd.rst',
|
||||
'api-reference/peripherals/i2c_slave_v1.rst']
|
||||
I2C_DOCS = [
|
||||
'api-reference/peripherals/i2c.rst',
|
||||
'api-reference/peripherals/lcd/i2c_lcd.rst',
|
||||
'api-reference/peripherals/i2c_slave_v1.rst',
|
||||
]
|
||||
|
||||
SPI_DOCS = ['api-reference/peripherals/spi_master.rst',
|
||||
'api-reference/peripherals/spi_slave.rst',
|
||||
'api-reference/peripherals/sdspi_host.rst',
|
||||
'api-reference/peripherals/sdspi_share.rst',
|
||||
'api-reference/peripherals/lcd/spi_lcd.rst']
|
||||
SPI_DOCS = [
|
||||
'api-reference/peripherals/spi_master.rst',
|
||||
'api-reference/peripherals/spi_slave.rst',
|
||||
'api-reference/peripherals/sdspi_host.rst',
|
||||
'api-reference/peripherals/sdspi_share.rst',
|
||||
'api-reference/peripherals/lcd/spi_lcd.rst',
|
||||
]
|
||||
|
||||
I2S_DOCS = ['api-reference/peripherals/i2s.rst']
|
||||
|
||||
@@ -189,8 +206,7 @@ ISP_DOCS = ['api-reference/peripherals/isp.rst']
|
||||
|
||||
DSLP_STUB_DOCS = ['api-guides/deep-sleep-stub.rst']
|
||||
|
||||
ADC_DOCS = ['api-reference/peripherals/adc_oneshot.rst',
|
||||
'api-reference/peripherals/adc_calibration.rst']
|
||||
ADC_DOCS = ['api-reference/peripherals/adc_oneshot.rst', 'api-reference/peripherals/adc_calibration.rst']
|
||||
ADC_DMA_DOCS = ['api-reference/peripherals/adc_continuous.rst']
|
||||
|
||||
ANA_CMPR_DOCS = ['api-reference/peripherals/ana_cmpr.rst']
|
||||
@@ -203,148 +219,173 @@ PPA_DOCS = ['api-reference/peripherals/ppa.rst']
|
||||
|
||||
QEMU_DOCS = ['api-guides/tools/qemu.rst']
|
||||
|
||||
ESP_TEE_DOCS = ['security/tee/index.rst',
|
||||
'security/tee/tee.rst',
|
||||
'security/tee/tee-advanced.rst',
|
||||
'security/tee/tee-attestation.rst',
|
||||
'security/tee/tee-ota.rst',
|
||||
'security/tee/tee-sec-storage.rst']
|
||||
ESP_TEE_DOCS = [
|
||||
'security/tee/index.rst',
|
||||
'security/tee/tee.rst',
|
||||
'security/tee/tee-advanced.rst',
|
||||
'security/tee/tee-attestation.rst',
|
||||
'security/tee/tee-ota.rst',
|
||||
'security/tee/tee-sec-storage.rst',
|
||||
]
|
||||
|
||||
ESP32_DOCS = ['api-reference/system/himem.rst',
|
||||
'api-guides/romconsole.rst',
|
||||
'api-reference/system/ipc.rst',
|
||||
'security/secure-boot-v1.rst',
|
||||
'api-reference/peripherals/dac.rst',
|
||||
'api-reference/peripherals/sd_pullup_requirements.rst',
|
||||
'hw-reference/esp32/**',
|
||||
'api-guides/RF_calibration.rst',
|
||||
'api-guides/phy.rst'] + FTDI_JTAG_DOCS + QEMU_DOCS
|
||||
ESP32_DOCS = (
|
||||
[
|
||||
'api-reference/system/himem.rst',
|
||||
'api-guides/romconsole.rst',
|
||||
'api-reference/system/ipc.rst',
|
||||
'security/secure-boot-v1.rst',
|
||||
'api-reference/peripherals/dac.rst',
|
||||
'api-reference/peripherals/sd_pullup_requirements.rst',
|
||||
'hw-reference/esp32/**',
|
||||
'api-guides/RF_calibration.rst',
|
||||
'api-guides/phy.rst',
|
||||
]
|
||||
+ FTDI_JTAG_DOCS
|
||||
+ QEMU_DOCS
|
||||
)
|
||||
|
||||
ESP32S2_DOCS = ['hw-reference/esp32s2/**',
|
||||
'api-guides/usb-console.rst',
|
||||
'api-reference/peripherals/ds.rst',
|
||||
'api-reference/peripherals/temp_sensor.rst',
|
||||
'api-reference/system/async_memcpy.rst',
|
||||
'api-reference/peripherals/touch_element.rst',
|
||||
'api-guides/RF_calibration.rst',
|
||||
'api-guides/phy.rst'] + FTDI_JTAG_DOCS + USB_OTG_DFU_DOCS + USB_OTG_CONSOLE_DOCS
|
||||
ESP32S2_DOCS = (
|
||||
[
|
||||
'hw-reference/esp32s2/**',
|
||||
'api-guides/usb-console.rst',
|
||||
'api-reference/peripherals/ds.rst',
|
||||
'api-reference/peripherals/temp_sensor.rst',
|
||||
'api-reference/system/async_memcpy.rst',
|
||||
'api-reference/peripherals/touch_element.rst',
|
||||
'api-guides/RF_calibration.rst',
|
||||
'api-guides/phy.rst',
|
||||
]
|
||||
+ FTDI_JTAG_DOCS
|
||||
+ USB_OTG_DFU_DOCS
|
||||
+ USB_OTG_CONSOLE_DOCS
|
||||
)
|
||||
|
||||
ESP32S3_DOCS = ['hw-reference/esp32s3/**',
|
||||
'api-reference/system/ipc.rst',
|
||||
'api-guides/flash_psram_config.rst',
|
||||
'api-reference/peripherals/sd_pullup_requirements.rst',
|
||||
'api-guides/RF_calibration.rst',
|
||||
'api-guides/phy.rst'] + USB_OTG_DFU_DOCS + USB_OTG_CONSOLE_DOCS + QEMU_DOCS
|
||||
ESP32S3_DOCS = (
|
||||
[
|
||||
'hw-reference/esp32s3/**',
|
||||
'api-reference/system/ipc.rst',
|
||||
'api-guides/flash_psram_config.rst',
|
||||
'api-reference/peripherals/sd_pullup_requirements.rst',
|
||||
'api-guides/RF_calibration.rst',
|
||||
'api-guides/phy.rst',
|
||||
]
|
||||
+ USB_OTG_DFU_DOCS
|
||||
+ USB_OTG_CONSOLE_DOCS
|
||||
+ QEMU_DOCS
|
||||
)
|
||||
|
||||
# No JTAG docs for this one as it gets gated on SOC_USB_SERIAL_JTAG_SUPPORTED down below.
|
||||
ESP32C3_DOCS = ['hw-reference/esp32c3/**',
|
||||
'api-guides/RF_calibration.rst',
|
||||
'api-guides/phy.rst'] + QEMU_DOCS
|
||||
ESP32C3_DOCS = ['hw-reference/esp32c3/**', 'api-guides/RF_calibration.rst', 'api-guides/phy.rst'] + QEMU_DOCS
|
||||
|
||||
ESP32C2_DOCS = ['api-guides/RF_calibration.rst',
|
||||
'api-guides/phy.rst']
|
||||
ESP32C2_DOCS = ['api-guides/RF_calibration.rst', 'api-guides/phy.rst']
|
||||
|
||||
ESP32C5_DOCS = ['api-guides/phy.rst']
|
||||
|
||||
ESP32C61_DOCS = ['api-guides/phy.rst']
|
||||
|
||||
ESP32C6_DOCS = ['api-guides/RF_calibration.rst',
|
||||
'api-reference/peripherals/sd_pullup_requirements.rst',
|
||||
'api-guides/phy.rst'] + ESP_TEE_DOCS
|
||||
ESP32C6_DOCS = [
|
||||
'api-guides/RF_calibration.rst',
|
||||
'api-reference/peripherals/sd_pullup_requirements.rst',
|
||||
'api-guides/phy.rst',
|
||||
] + ESP_TEE_DOCS
|
||||
|
||||
ESP32H2_DOCS = ['api-guides/RF_calibration.rst',
|
||||
'api-guides/phy.rst']
|
||||
ESP32H2_DOCS = ['api-guides/RF_calibration.rst', 'api-guides/phy.rst']
|
||||
|
||||
ESP32P4_DOCS = ['api-reference/system/ipc.rst',
|
||||
'api-reference/peripherals/cap_touch_sens.rst',
|
||||
'api-reference/peripherals/sd_pullup_requirements.rst'] + USB_OTG_DFU_DOCS
|
||||
ESP32P4_DOCS = [
|
||||
'api-reference/system/ipc.rst',
|
||||
'api-reference/peripherals/cap_touch_sens.rst',
|
||||
'api-reference/peripherals/sd_pullup_requirements.rst',
|
||||
] + USB_OTG_DFU_DOCS
|
||||
|
||||
# format: {tag needed to include: documents to included}, tags are parsed from sdkconfig and peripheral_caps.h headers
|
||||
conditional_include_dict = {'SOC_BT_SUPPORTED':BT_DOCS,
|
||||
'SOC_BLE_SUPPORTED':BLE_DOCS,
|
||||
'SOC_BLE_MESH_SUPPORTED':BLE_MESH_DOCS,
|
||||
'SOC_BLUFI_SUPPORTED':BLUFI_DOCS,
|
||||
'SOC_WIFI_SUPPORTED':WIFI_DOCS,
|
||||
'SOC_BT_CLASSIC_SUPPORTED':CLASSIC_BT_DOCS,
|
||||
'SOC_IEEE802154_SUPPORTED':IEEE802154_DOCS,
|
||||
'SOC_SUPPORT_COEXISTENCE':COEXISTENCE_DOCS,
|
||||
'SOC_PSRAM_DMA_CAPABLE':MM_SYNC_DOCS,
|
||||
'SOC_CACHE_INTERNAL_MEM_VIA_L1CACHE':MM_SYNC_DOCS,
|
||||
'SOC_CLK_TREE_SUPPORTED':CLK_TREE_DOCS,
|
||||
'SOC_UART_SUPPORTED':UART_DOCS,
|
||||
'SOC_SDMMC_HOST_SUPPORTED':SDMMC_DOCS,
|
||||
'SOC_SDIO_SLAVE_SUPPORTED':SDIO_SLAVE_DOCS,
|
||||
'SOC_MCPWM_SUPPORTED':MCPWM_DOCS,
|
||||
'SOC_USB_OTG_SUPPORTED':USB_DOCS,
|
||||
'SOC_USB_SERIAL_JTAG_SUPPORTED':USB_SERIAL_JTAG_DOCS,
|
||||
'SOC_DEDICATED_GPIO_SUPPORTED':DEDIC_GPIO_DOCS,
|
||||
'SOC_LCD_I80_SUPPORTED':I80_LCD_DOCS,
|
||||
'SOC_LCD_RGB_SUPPORTED':RGB_LCD_DOCS,
|
||||
'SOC_PARLIO_SUPPORT_SPI_LCD':PARLIO_LCD_DOCS,
|
||||
'SOC_MIPI_DSI_SUPPORTED':DSI_LCD_DOCS,
|
||||
'SOC_SPIRAM_SUPPORTED':SPIRAM_DOCS,
|
||||
'SOC_PARLIO_SUPPORTED':PARLIO_DOCS,
|
||||
'SOC_PCNT_SUPPORTED':PCNT_DOCS,
|
||||
'SOC_RMT_SUPPORTED':RMT_DOCS,
|
||||
'SOC_DAC_SUPPORTED':DAC_DOCS,
|
||||
'SOC_ETM_SUPPORTED':ETM_DOCS,
|
||||
'SOC_ULP_FSM_SUPPORTED':ULP_FSM_DOCS,
|
||||
'SOC_RISCV_COPROC_SUPPORTED':RISCV_COPROC_DOCS,
|
||||
'SOC_LP_CORE_SUPPORTED':LP_CORE_DOCS,
|
||||
'SOC_DIG_SIGN_SUPPORTED':['api-reference/peripherals/ds.rst'],
|
||||
'SOC_ECDSA_SUPPORTED':['api-reference/peripherals/ecdsa.rst'],
|
||||
'SOC_HMAC_SUPPORTED':['api-reference/peripherals/hmac.rst'],
|
||||
'SOC_ASYNC_MEMCPY_SUPPORTED':['api-reference/system/async_memcpy.rst'],
|
||||
'CONFIG_IDF_TARGET_ARCH_XTENSA':XTENSA_DOCS,
|
||||
'CONFIG_IDF_TARGET_ARCH_RISCV':RISCV_DOCS,
|
||||
'SOC_TEMP_SENSOR_SUPPORTED':TEMP_SENSOR_DOCS,
|
||||
'SOC_TOUCH_SENSOR_SUPPORTED':TOUCH_SENSOR_DOCS,
|
||||
'SOC_TWAI_SUPPORTED':TWAI_DOCS,
|
||||
'SOC_I2C_SUPPORTED':I2C_DOCS,
|
||||
'SOC_GPSPI_SUPPORTED':SPI_DOCS,
|
||||
'SOC_I2S_SUPPORTED':I2S_DOCS,
|
||||
'SOC_LP_I2S_SUPPORTED':LP_I2S_DOCS,
|
||||
'SOC_LP_VAD_SUPPORTED':VAD_DOCS,
|
||||
'SOC_ISP_SUPPORTED':ISP_DOCS,
|
||||
'ESP_ROM_SUPPORT_DEEP_SLEEP_WAKEUP_STUB': DSLP_STUB_DOCS,
|
||||
'SOC_ADC_SUPPORTED':ADC_DOCS,
|
||||
'SOC_ADC_DMA_SUPPORTED':ADC_DMA_DOCS,
|
||||
'SOC_ANA_CMPR_SUPPORTED': ANA_CMPR_DOCS,
|
||||
'SOC_SDM_SUPPORTED':SDM_DOCS,
|
||||
'SOC_WIFI_MESH_SUPPORT':WIFI_MESH_DOCS,
|
||||
'SOC_MIPI_CSI_SUPPORTED':CAMERA_DOCS,
|
||||
'SOC_BITSCRAMBLER_SUPPORTED':BITSCRAMBLER_DOCS,
|
||||
'SOC_SPI_SUPPORT_SLAVE_HD_VER2':SPI_SLAVE_HD_DOCS,
|
||||
'SOC_WIFI_NAN_SUPPORT':NAN_DOCS,
|
||||
'SOC_JPEG_CODEC_SUPPORTED':JPEG_DOCS,
|
||||
'SOC_PPA_SUPPORTED':PPA_DOCS,
|
||||
'SOC_GP_LDO_SUPPORTED':LDO_DOCS,
|
||||
'esp32':ESP32_DOCS,
|
||||
'esp32s2':ESP32S2_DOCS,
|
||||
'esp32s3':ESP32S3_DOCS,
|
||||
'esp32c2':ESP32C2_DOCS,
|
||||
'esp32c3':ESP32C3_DOCS,
|
||||
'esp32c5':ESP32C5_DOCS,
|
||||
'esp32c6':ESP32C6_DOCS,
|
||||
'esp32c61':ESP32C61_DOCS,
|
||||
'esp32h2':ESP32H2_DOCS,
|
||||
'esp32p4':ESP32P4_DOCS}
|
||||
conditional_include_dict = {
|
||||
'SOC_BT_SUPPORTED': BT_DOCS,
|
||||
'SOC_BLE_SUPPORTED': BLE_DOCS,
|
||||
'SOC_BLE_MESH_SUPPORTED': BLE_MESH_DOCS,
|
||||
'SOC_BLUFI_SUPPORTED': BLUFI_DOCS,
|
||||
'SOC_WIFI_SUPPORTED': WIFI_DOCS,
|
||||
'SOC_BT_CLASSIC_SUPPORTED': CLASSIC_BT_DOCS,
|
||||
'SOC_IEEE802154_SUPPORTED': IEEE802154_DOCS,
|
||||
'SOC_SUPPORT_COEXISTENCE': COEXISTENCE_DOCS,
|
||||
'SOC_PSRAM_DMA_CAPABLE': MM_SYNC_DOCS,
|
||||
'SOC_CACHE_INTERNAL_MEM_VIA_L1CACHE': MM_SYNC_DOCS,
|
||||
'SOC_CLK_TREE_SUPPORTED': CLK_TREE_DOCS,
|
||||
'SOC_UART_SUPPORTED': UART_DOCS,
|
||||
'SOC_SDMMC_HOST_SUPPORTED': SDMMC_DOCS,
|
||||
'SOC_SDIO_SLAVE_SUPPORTED': SDIO_SLAVE_DOCS,
|
||||
'SOC_MCPWM_SUPPORTED': MCPWM_DOCS,
|
||||
'SOC_USB_OTG_SUPPORTED': USB_DOCS,
|
||||
'SOC_USB_SERIAL_JTAG_SUPPORTED': USB_SERIAL_JTAG_DOCS,
|
||||
'SOC_DEDICATED_GPIO_SUPPORTED': DEDIC_GPIO_DOCS,
|
||||
'SOC_LCD_I80_SUPPORTED': I80_LCD_DOCS,
|
||||
'SOC_LCD_RGB_SUPPORTED': RGB_LCD_DOCS,
|
||||
'SOC_PARLIO_SUPPORT_SPI_LCD': PARLIO_LCD_DOCS,
|
||||
'SOC_MIPI_DSI_SUPPORTED': DSI_LCD_DOCS,
|
||||
'SOC_SPIRAM_SUPPORTED': SPIRAM_DOCS,
|
||||
'SOC_PARLIO_SUPPORTED': PARLIO_DOCS,
|
||||
'SOC_PCNT_SUPPORTED': PCNT_DOCS,
|
||||
'SOC_RMT_SUPPORTED': RMT_DOCS,
|
||||
'SOC_DAC_SUPPORTED': DAC_DOCS,
|
||||
'SOC_ETM_SUPPORTED': ETM_DOCS,
|
||||
'SOC_ULP_FSM_SUPPORTED': ULP_FSM_DOCS,
|
||||
'SOC_RISCV_COPROC_SUPPORTED': RISCV_COPROC_DOCS,
|
||||
'SOC_LP_CORE_SUPPORTED': LP_CORE_DOCS,
|
||||
'SOC_DIG_SIGN_SUPPORTED': ['api-reference/peripherals/ds.rst'],
|
||||
'SOC_ECDSA_SUPPORTED': ['api-reference/peripherals/ecdsa.rst'],
|
||||
'SOC_HMAC_SUPPORTED': ['api-reference/peripherals/hmac.rst'],
|
||||
'SOC_ASYNC_MEMCPY_SUPPORTED': ['api-reference/system/async_memcpy.rst'],
|
||||
'CONFIG_IDF_TARGET_ARCH_XTENSA': XTENSA_DOCS,
|
||||
'CONFIG_IDF_TARGET_ARCH_RISCV': RISCV_DOCS,
|
||||
'SOC_TEMP_SENSOR_SUPPORTED': TEMP_SENSOR_DOCS,
|
||||
'SOC_TOUCH_SENSOR_SUPPORTED': TOUCH_SENSOR_DOCS,
|
||||
'SOC_TWAI_SUPPORTED': TWAI_DOCS,
|
||||
'SOC_I2C_SUPPORTED': I2C_DOCS,
|
||||
'SOC_GPSPI_SUPPORTED': SPI_DOCS,
|
||||
'SOC_I2S_SUPPORTED': I2S_DOCS,
|
||||
'SOC_LP_I2S_SUPPORTED': LP_I2S_DOCS,
|
||||
'SOC_LP_VAD_SUPPORTED': VAD_DOCS,
|
||||
'SOC_ISP_SUPPORTED': ISP_DOCS,
|
||||
'ESP_ROM_SUPPORT_DEEP_SLEEP_WAKEUP_STUB': DSLP_STUB_DOCS,
|
||||
'SOC_ADC_SUPPORTED': ADC_DOCS,
|
||||
'SOC_ADC_DMA_SUPPORTED': ADC_DMA_DOCS,
|
||||
'SOC_ANA_CMPR_SUPPORTED': ANA_CMPR_DOCS,
|
||||
'SOC_SDM_SUPPORTED': SDM_DOCS,
|
||||
'SOC_WIFI_MESH_SUPPORT': WIFI_MESH_DOCS,
|
||||
'SOC_MIPI_CSI_SUPPORTED': CAMERA_DOCS,
|
||||
'SOC_BITSCRAMBLER_SUPPORTED': BITSCRAMBLER_DOCS,
|
||||
'SOC_SPI_SUPPORT_SLAVE_HD_VER2': SPI_SLAVE_HD_DOCS,
|
||||
'SOC_WIFI_NAN_SUPPORT': NAN_DOCS,
|
||||
'SOC_JPEG_CODEC_SUPPORTED': JPEG_DOCS,
|
||||
'SOC_PPA_SUPPORTED': PPA_DOCS,
|
||||
'SOC_GP_LDO_SUPPORTED': LDO_DOCS,
|
||||
'esp32': ESP32_DOCS,
|
||||
'esp32s2': ESP32S2_DOCS,
|
||||
'esp32s3': ESP32S3_DOCS,
|
||||
'esp32c2': ESP32C2_DOCS,
|
||||
'esp32c3': ESP32C3_DOCS,
|
||||
'esp32c5': ESP32C5_DOCS,
|
||||
'esp32c6': ESP32C6_DOCS,
|
||||
'esp32c61': ESP32C61_DOCS,
|
||||
'esp32h2': ESP32H2_DOCS,
|
||||
'esp32p4': ESP32P4_DOCS,
|
||||
}
|
||||
|
||||
extensions += ['sphinx_copybutton',
|
||||
'sphinxcontrib.wavedrom',
|
||||
# Note: order is important here, events must
|
||||
# be registered by one extension before they can be
|
||||
# connected to another extension
|
||||
'esp_docs.idf_extensions.build_system',
|
||||
'esp_docs.idf_extensions.esp_err_definitions',
|
||||
'esp_docs.idf_extensions.gen_defines',
|
||||
'esp_docs.idf_extensions.gen_version_specific_includes',
|
||||
'esp_docs.idf_extensions.kconfig_reference',
|
||||
'esp_docs.idf_extensions.gen_idf_tools_links',
|
||||
'esp_docs.esp_extensions.run_doxygen',
|
||||
'esp_docs.esp_extensions.add_html_zip',
|
||||
'linuxdoc.rstFlatTable', # https://return42.github.io/linuxdoc/linuxdoc-howto/table-markup.html#flat-table
|
||||
]
|
||||
extensions += [ # noqa: F405
|
||||
'sphinx_copybutton',
|
||||
'sphinxcontrib.wavedrom',
|
||||
# Note: order is important here, events must
|
||||
# be registered by one extension before they can be
|
||||
# connected to another extension
|
||||
'esp_docs.idf_extensions.build_system',
|
||||
'esp_docs.idf_extensions.esp_err_definitions',
|
||||
'esp_docs.idf_extensions.gen_defines',
|
||||
'esp_docs.idf_extensions.gen_version_specific_includes',
|
||||
'esp_docs.idf_extensions.kconfig_reference',
|
||||
'esp_docs.idf_extensions.gen_idf_tools_links',
|
||||
'esp_docs.esp_extensions.run_doxygen',
|
||||
'esp_docs.esp_extensions.add_html_zip',
|
||||
'linuxdoc.rstFlatTable', # https://return42.github.io/linuxdoc/linuxdoc-howto/table-markup.html#flat-table
|
||||
]
|
||||
|
||||
# Use wavedrompy as backend, instead of wavedrom-cli
|
||||
render_using_wavedrompy = True
|
||||
@@ -355,8 +396,8 @@ smartquotes = False
|
||||
github_repo = 'espressif/esp-idf'
|
||||
|
||||
# context used by sphinx_idf_theme
|
||||
html_context['github_user'] = 'espressif'
|
||||
html_context['github_repo'] = 'esp-idf'
|
||||
html_context['github_user'] = 'espressif' # noqa: F405
|
||||
html_context['github_repo'] = 'esp-idf' # noqa: F405
|
||||
|
||||
|
||||
# Extra options required by sphinx_idf_theme
|
||||
@@ -372,26 +413,33 @@ project_homepage = 'https://github.com/espressif/esp-idf'
|
||||
|
||||
linkcheck_anchors = False
|
||||
|
||||
linkcheck_exclude_documents = ['index', # several false positives due to the way we link to different sections
|
||||
'api-reference/protocols/esp_local_ctrl', # Fails due to `https://<mdns-hostname>.local`
|
||||
'api-reference/provisioning/wifi_provisioning', # Fails due to `https://<mdns-hostname>.local`
|
||||
]
|
||||
linkcheck_exclude_documents = [
|
||||
'index', # several false positives due to the way we link to different sections
|
||||
'api-reference/protocols/esp_local_ctrl', # Fails due to `https://<mdns-hostname>.local`
|
||||
'api-reference/provisioning/wifi_provisioning', # Fails due to `https://<mdns-hostname>.local`
|
||||
]
|
||||
|
||||
|
||||
linkcheck_ignore = ['https://webhome.phy.duke.edu/~rgb/General/dieharder.php', # Certificate error
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32c2/espefuse/index.html', # Not published
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32c2/espsecure/index.html#remote-signing-using-an-external-hs', # Not published
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32c6/espefuse/index.html', # Not published
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32c6/espsecure/index.html#remote-signing-using-an-external-hs', # Not published
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32h2/espefuse/index.html', # Not published
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32h2/espsecure/index.html#remote-signing-using-an-external-hs', # Not published
|
||||
'https://www.cadence.com/content/dam/cadence-www/global/en_US/documents/tools/ip/tensilica-ip/isa-summary.pdf', # Rejects user-agent
|
||||
]
|
||||
|
||||
# URLs to ignore during linkcheck
|
||||
linkcheck_ignore = [
|
||||
# Certificate error
|
||||
'https://webhome.phy.duke.edu/~rgb/General/dieharder.php',
|
||||
# Not published docs
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32c2/espefuse/index.html',
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32c2/espsecure/index.html#remote-signing-using-an-external-hs',
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32c6/espefuse/index.html',
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32c6/espsecure/index.html#remote-signing-using-an-external-hs',
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32h2/espefuse/index.html',
|
||||
'https://docs.espressif.com/projects/esptool/en/latest/esp32h2/espsecure/index.html#remote-signing-using-an-external-hs',
|
||||
# Rejects user-agent
|
||||
'https://www.cadence.com/content/dam/cadence-www/global/en_US/documents/tools/ip/tensilica-ip/isa-summary.pdf',
|
||||
]
|
||||
|
||||
# Custom added feature to allow redirecting old URLs
|
||||
with open('../page_redirects.txt') as f:
|
||||
lines = [re.sub(' +', ' ', line.strip()) for line in f.readlines() if line.strip() != '' and not line.startswith('#')]
|
||||
lines = [
|
||||
re.sub(' +', ' ', line.strip()) for line in f.readlines() if line.strip() != '' and not line.startswith('#')
|
||||
]
|
||||
for line in lines: # check for well-formed entries
|
||||
if len(line.split(' ')) != 2:
|
||||
raise RuntimeError('Invalid line in page_redirects.txt: %s' % line)
|
||||
@@ -399,7 +447,10 @@ html_redirect_pages = [tuple(line.split(' ')) for line in lines]
|
||||
|
||||
html_static_path = ['../_static']
|
||||
|
||||
idf_build_system = {'doxygen_component_info': True, 'component_info_ignore_file': Path(os.environ['IDF_PATH']) / 'docs' / 'component_info_ignore_file.txt'}
|
||||
idf_build_system = {
|
||||
'doxygen_component_info': True,
|
||||
'component_info_ignore_file': Path(os.environ['IDF_PATH']) / 'docs' / 'component_info_ignore_file.txt',
|
||||
}
|
||||
|
||||
# Please update following list to enable Qemu doc guide (and cross references) for a new target
|
||||
QEMU_TARGETS = ['esp32', 'esp32c3', 'esp32s3']
|
||||
@@ -408,7 +459,9 @@ QEMU_TARGETS = ['esp32', 'esp32c3', 'esp32s3']
|
||||
# Callback function for user setup that needs be done after `config-init`-event
|
||||
# config.idf_target is not available at the initial config stage
|
||||
def conf_setup(app, config):
|
||||
config.add_warnings_content = 'This document is not updated for {} yet, so some of the content may not be correct.'.format(config.idf_target.upper())
|
||||
config.add_warnings_content = (
|
||||
f'This document is not updated for {config.idf_target.upper()} yet, so some of the content may not be correct.'
|
||||
)
|
||||
|
||||
add_warnings_file = '{}/../docs_not_updated/{}.txt'.format(app.confdir, config.idf_target)
|
||||
|
||||
|
Reference in New Issue
Block a user