From 89179dc286439216ed01b6b915cbf9790bbda4b5 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Tue, 27 Apr 2021 12:24:22 +0800 Subject: [PATCH 1/2] docs: add fast build feature and activate it in CI Adds feature for skipping include of doxygen headers into sphinx build when env variable is set. Builds incomplete docs (no function API documention) but speeds up building (20min to 1 Date: Thu, 6 May 2021 09:17:41 +0800 Subject: [PATCH 2/2] Add warning to docs output if fastbuild --- docs/en/index.rst | 6 ++++++ docs/idf_extensions/run_doxygen.py | 1 + docs/zh_CN/index.rst | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/docs/en/index.rst b/docs/en/index.rst index 86923f8cfc..75f394645f 100644 --- a/docs/en/index.rst +++ b/docs/en/index.rst @@ -2,6 +2,12 @@ ESP-IDF Programming Guide ========================= :link_to_translation:`zh_CN:[中文]` +.. only:: fast_build + + .. warning:: + + The function API documentation is excluded from the preview. Add docs_full label to the MR to generate the complete documentation. + This is the documentation for Espressif IoT Development Framework (`esp-idf `_). ESP-IDF is the official development framework for the `ESP32, ESP32-S and ESP32-C Series SoCs `_. .. only:: html diff --git a/docs/idf_extensions/run_doxygen.py b/docs/idf_extensions/run_doxygen.py index 8c0b1a0f19..e2e90e5775 100644 --- a/docs/idf_extensions/run_doxygen.py +++ b/docs/idf_extensions/run_doxygen.py @@ -104,6 +104,7 @@ def convert_api_xml_to_inc(app, doxyfiles): if fast_build: with open(inc_file_path, 'w', encoding='utf-8') as inc_file: inc_file.write('') + app.tags.add('fast_build') def get_doxyfile_input_paths(app, doxyfile_path): diff --git a/docs/zh_CN/index.rst b/docs/zh_CN/index.rst index 224f6d3e19..23e05fe16b 100644 --- a/docs/zh_CN/index.rst +++ b/docs/zh_CN/index.rst @@ -2,6 +2,12 @@ ESP-IDF 编程指南 ========================= :link_to_translation:`en:[English]` +.. only:: fast_build + + .. warning:: + + The function API documentation is excluded from the preview. Add docs_full label to the MR to generate the complete documentation. + 这里是乐鑫 IoT 开发框架 (`esp-idf `_) 的文档中心。ESP-IDF 是 `ESP32、ESP32-S 和 ESP32-C `_ 系列芯片的官方开发框架。 .. only:: html