From 565660db8758768d90c8d8debe2658380947d6f0 Mon Sep 17 00:00:00 2001 From: alanmaxwell Date: Fri, 29 Mar 2024 14:59:15 +0800 Subject: [PATCH] docs: disable build phy.rst for esp32p4 --- docs/conf_common.py | 21 ++++++++++++++------- docs/en/api-guides/index.rst | 2 +- docs/zh_CN/api-guides/index.rst | 2 +- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/docs/conf_common.py b/docs/conf_common.py index 0ee1cb3934..3186e4cfa6 100644 --- a/docs/conf_common.py +++ b/docs/conf_common.py @@ -175,7 +175,8 @@ ESP32_DOCS = ['api-reference/system/himem.rst', 'api-reference/peripherals/dac.rst', 'api-reference/peripherals/sd_pullup_requirements.rst', 'hw-reference/esp32/**', - 'api-guides/RF_calibration.rst'] + FTDI_JTAG_DOCS + QEMU_DOCS + 'api-guides/RF_calibration.rst', + 'api-guides/phy.rst'] + FTDI_JTAG_DOCS + QEMU_DOCS ESP32S2_DOCS = ['hw-reference/esp32s2/**', 'api-guides/usb-console.rst', @@ -183,26 +184,32 @@ ESP32S2_DOCS = ['hw-reference/esp32s2/**', 'api-reference/peripherals/temp_sensor.rst', 'api-reference/system/async_memcpy.rst', 'api-reference/peripherals/touch_element.rst', - 'api-guides/RF_calibration.rst'] + FTDI_JTAG_DOCS + USB_OTG_DFU_DOCS + USB_OTG_CONSOLE_DOCS + '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'] + USB_OTG_DFU_DOCS + USB_OTG_CONSOLE_DOCS + 'api-guides/RF_calibration.rst', + 'api-guides/phy.rst'] + USB_OTG_DFU_DOCS + USB_OTG_CONSOLE_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'] + QEMU_DOCS + 'api-guides/RF_calibration.rst', + 'api-guides/phy.rst'] + QEMU_DOCS -ESP32C2_DOCS = ['api-guides/RF_calibration.rst'] +ESP32C2_DOCS = ['api-guides/RF_calibration.rst', + 'api-guides/phy.rst'] ESP32C5_DOCS = [''] ESP32C6_DOCS = ['api-guides/RF_calibration.rst', - 'api-reference/peripherals/sd_pullup_requirements.rst'] + 'api-reference/peripherals/sd_pullup_requirements.rst', + 'api-guides/phy.rst'] -ESP32H2_DOCS = ['api-guides/RF_calibration.rst'] +ESP32H2_DOCS = ['api-guides/RF_calibration.rst', + 'api-guides/phy.rst'] ESP32P4_DOCS = ['api-reference/system/ipc.rst', 'api-reference/peripherals/sd_pullup_requirements.rst'] diff --git a/docs/en/api-guides/index.rst b/docs/en/api-guides/index.rst index b993608576..9a0d38ae38 100644 --- a/docs/en/api-guides/index.rst +++ b/docs/en/api-guides/index.rst @@ -44,4 +44,4 @@ API Guides :SOC_WIFI_SUPPORTED: wifi :SOC_WIFI_SUPPORTED: wifi-security low-power-mode - :(SOC_WIFI_SUPPORTED or SOC_BT_SUPPORTED or SOC_IEEE802154_SUPPORTED) and not esp32p4: phy + :SOC_WIFI_SUPPORTED or SOC_BT_SUPPORTED or SOC_IEEE802154_SUPPORTED: phy diff --git a/docs/zh_CN/api-guides/index.rst b/docs/zh_CN/api-guides/index.rst index faf0745a15..fc4d0e3567 100644 --- a/docs/zh_CN/api-guides/index.rst +++ b/docs/zh_CN/api-guides/index.rst @@ -44,4 +44,4 @@ API 指南 :SOC_WIFI_SUPPORTED: wifi :SOC_WIFI_SUPPORTED: wifi-security low-power-mode - :(SOC_WIFI_SUPPORTED or SOC_BT_SUPPORTED or SOC_IEEE802154_SUPPORTED) and not esp32p4: phy + :SOC_WIFI_SUPPORTED or SOC_BT_SUPPORTED or SOC_IEEE802154_SUPPORTED: phy