mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
docs: flake8 fixes
This commit is contained in:

committed by
Angus Gratton

parent
ac8e931179
commit
d03af45731
@@ -317,6 +317,7 @@ GH_LINK_RE = r"https://github.com/espressif/esp-idf/(?:tree|blob|raw)/[^\s]+"
|
|||||||
# we allow this one link, because we always want users to see the latest support policy
|
# we allow this one link, because we always want users to see the latest support policy
|
||||||
GH_LINK_ALLOWED = ["https://github.com/espressif/esp-idf/blob/master/SUPPORT_POLICY.md"]
|
GH_LINK_ALLOWED = ["https://github.com/espressif/esp-idf/blob/master/SUPPORT_POLICY.md"]
|
||||||
|
|
||||||
|
|
||||||
def action_gh_linkcheck(args):
|
def action_gh_linkcheck(args):
|
||||||
print("Checking for hardcoded GitHub links\n")
|
print("Checking for hardcoded GitHub links\n")
|
||||||
|
|
||||||
|
@@ -160,6 +160,7 @@ def update_exclude_patterns(tags):
|
|||||||
'api-reference/peripherals/temp_sensor.rst']:
|
'api-reference/peripherals/temp_sensor.rst']:
|
||||||
exclude_patterns.append(e)
|
exclude_patterns.append(e)
|
||||||
|
|
||||||
|
|
||||||
# The reST default role (used for this markup: `text`) to use for all
|
# The reST default role (used for this markup: `text`) to use for all
|
||||||
# documents.
|
# documents.
|
||||||
# default_role = None
|
# default_role = None
|
||||||
@@ -370,9 +371,9 @@ def setup(app):
|
|||||||
app.config.breathe_projects = {"esp32-idf": os.path.join(app.config.build_dir, "xml_in/")}
|
app.config.breathe_projects = {"esp32-idf": os.path.join(app.config.build_dir, "xml_in/")}
|
||||||
app.config.breathe_default_project = "esp32-idf"
|
app.config.breathe_default_project = "esp32-idf"
|
||||||
|
|
||||||
|
|
||||||
setup_diag_font(app)
|
setup_diag_font(app)
|
||||||
|
|
||||||
|
|
||||||
def setup_diag_font(app):
|
def setup_diag_font(app):
|
||||||
# blockdiag and other tools require a font which supports their character set
|
# blockdiag and other tools require a font which supports their character set
|
||||||
# the font file is stored on the download server to save repo size
|
# the font file is stored on the download server to save repo size
|
||||||
|
@@ -3,6 +3,7 @@ from __future__ import print_function
|
|||||||
import os.path
|
import os.path
|
||||||
from util import copy_if_modified, call_with_python
|
from util import copy_if_modified, call_with_python
|
||||||
|
|
||||||
|
|
||||||
def setup(app):
|
def setup(app):
|
||||||
# we don't actually need idf-info, just a convenient event to trigger this on
|
# we don't actually need idf-info, just a convenient event to trigger this on
|
||||||
app.connect('idf-info', generate_idf_tools_links)
|
app.connect('idf-info', generate_idf_tools_links)
|
||||||
|
@@ -10,7 +10,6 @@ import sys
|
|||||||
import os
|
import os
|
||||||
sys.path.insert(0, os.path.abspath('..'))
|
sys.path.insert(0, os.path.abspath('..'))
|
||||||
from conf_common import * # noqa: F401, F403 - need to make available everything from common
|
from conf_common import * # noqa: F401, F403 - need to make available everything from common
|
||||||
from idf_extensions.util import download_file_if_missing # noqa: E402 - need to import from common folder
|
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = u'ESP-IDF 编程指南'
|
project = u'ESP-IDF 编程指南'
|
||||||
|
Reference in New Issue
Block a user