mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
f5f7d21c83
check_doc_links will always fail due to: * No rate limitation for requests * Not being able to handle github links with anchors
47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
.check_doc_links_template:
|
|
extends: .rules:protected-no_label
|
|
stage: post_deploy
|
|
image: $ESP_IDF_DOC_ENV_IMAGE
|
|
tags: [ "build", "amd64", "internet" ]
|
|
needs: # ensure runs after push_to_github succeeded
|
|
- build_docs_html
|
|
- build_docs_pdf
|
|
- push_to_github
|
|
artifacts:
|
|
when: always
|
|
paths:
|
|
- docs/_build/*/*/*.txt
|
|
- docs/_build/*/*/linkcheck/*.txt
|
|
expire_in: 1 week
|
|
allow_failure: true
|
|
dependencies: []
|
|
script:
|
|
- cd docs
|
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 pip install -r requirements.txt
|
|
# At the moment this check will always fail due to multiple known limitations, ignore result
|
|
- ${IDF_PATH}/tools/ci/multirun_with_pyenv.sh -p 3.6.10 ./build_docs.py -l $DOCLANG -t $DOCTGT linkcheck || { echo "THERE ARE ISSUES DUE TO KNOWN LIMITATIONS, PLEASE FIX THEM. Nowadays we're ignored them to pass pipeline."; true; }
|
|
|
|
check_doc_links_en_esp32:
|
|
extends: .check_doc_links_template
|
|
variables:
|
|
DOCLANG: "en"
|
|
DOCTGT: "esp32"
|
|
|
|
check_doc_links_en_esp32s2:
|
|
extends: .check_doc_links_template
|
|
variables:
|
|
DOCLANG: "en"
|
|
DOCTGT: "esp32s2"
|
|
|
|
check_doc_links_zh_CN_esp32:
|
|
extends: .check_doc_links_template
|
|
variables:
|
|
DOCLANG: "zh_CN"
|
|
DOCTGT: "esp32"
|
|
|
|
check_doc_links_zh_CN_esp32s2:
|
|
extends: .check_doc_links_template
|
|
variables:
|
|
DOCLANG: "zh_CN"
|
|
DOCTGT: "esp32s2"
|