Skip to content

Commit 0140c6f

Browse files
committed
feat(docs): Replace PDF download link with HTML zip download link
PDF build would randomly fail after S3 docs grew to a certain size. At 3k+ pages PDF is not very usable anyways. For offline use an HTML archive makes more sense.
1 parent fa41faf commit 0140c6f

File tree

4 files changed

+7
-18
lines changed

4 files changed

+7
-18
lines changed

.gitlab/ci/docs.yml

-16
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,6 @@ build_docs_html_partial:
139139
- DOCLANG: "zh_CN"
140140
DOCTGT: "esp32p4"
141141

142-
build_docs_pdf:
143-
extends:
144-
- .build_docs_template
145-
- .doc-rules:build:docs-full
146-
artifacts:
147-
when: always
148-
paths:
149-
- docs/_build/*/*/latex/*
150-
expire_in: 4 days
151-
allow_failure: true # TODO IDFCI-2216
152-
variables:
153-
DOC_BUILDERS: "latex"
154-
155142
.deploy_docs_template:
156143
image: $ESP_IDF_DOC_ENV_IMAGE
157144
variables:
@@ -180,8 +167,6 @@ deploy_docs_preview:
180167
optional: true
181168
- job: build_docs_html_full
182169
optional: true
183-
- job: build_docs_pdf
184-
optional: true
185170
variables:
186171
TYPE: "preview"
187172
# older branches use DOCS_DEPLOY_KEY, DOCS_SERVER, DOCS_SERVER_USER, DOCS_PATH for preview server so we keep these names for 'preview'
@@ -202,7 +187,6 @@ deploy_docs_production:
202187
dependencies: # set dependencies to null to avoid missing artifacts issue
203188
needs: # ensure runs after push_to_github succeeded
204189
- build_docs_html_full
205-
- build_docs_pdf
206190
- job: push_to_github
207191
artifacts: false
208192
variables:

docs/conf_common.py

+1
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@
331331
'esp_docs.idf_extensions.kconfig_reference',
332332
'esp_docs.idf_extensions.gen_idf_tools_links',
333333
'esp_docs.esp_extensions.run_doxygen',
334+
'esp_docs.esp_extensions.add_html_zip',
334335
'linuxdoc.rstFlatTable', # https://return42.github.io/linuxdoc/linuxdoc-howto/table-markup.html#flat-table
335336
]
336337

docs/en/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
# type: ignore
12
# -*- coding: utf-8 -*-
23
#
34
# English Language RTD & Sphinx config file
45
#
56
# Uses ../conf_common.py for most non-language-specific settings.
6-
77
# Importing conf_common adds all the non-language-specific
88
# parts to this conf module
99
try:
@@ -25,3 +25,5 @@
2525
# The language for content autogenerated by Sphinx. Refer to documentation
2626
# for a list of supported languages.
2727
language = 'en'
28+
29+
html_zip = f'esp-idf-{language}-{release}' # noqa: F405

docs/zh_CN/conf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
# type: ignore
12
# -*- coding: utf-8 -*-
23
#
34
# English Language RTD & Sphinx config file
45
#
56
# Uses ../conf_common.py for most non-language-specific settings.
6-
77
# Importing conf_common adds all the non-language-specific
88
# parts to this conf module
99
try:
@@ -25,3 +25,5 @@
2525
# The language for content autogenerated by Sphinx. Refer to documentation
2626
# for a list of supported languages.
2727
language = 'zh_CN'
28+
29+
html_zip = f'esp-idf-{language}-{release}' # noqa: F405

0 commit comments

Comments
 (0)