2016-10-23 20:14:24 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2018-03-14 23:47:57 +00:00
|
|
|
# English Language RTD & Sphinx config file
|
2016-10-23 20:14:24 +00:00
|
|
|
#
|
2018-03-14 23:47:57 +00:00
|
|
|
# Uses ../conf_common.py for most non-language-specific settings.
|
2016-10-23 20:14:24 +00:00
|
|
|
|
2018-03-14 23:47:57 +00:00
|
|
|
# Importing conf_common adds all the non-language-specific
|
|
|
|
# parts to this conf module
|
2018-12-01 08:25:08 +00:00
|
|
|
import sys
|
|
|
|
import os
|
2018-02-03 21:12:13 +00:00
|
|
|
sys.path.insert(0, os.path.abspath('..'))
|
2018-12-01 08:25:08 +00:00
|
|
|
from conf_common import * # noqa: F401, F403 - need to make available everything from common
|
2019-11-28 21:56:53 +00:00
|
|
|
from idf_extensions.util import download_file_if_missing # noqa: E402 - need to import from common folder
|
2016-10-23 20:14:24 +00:00
|
|
|
|
|
|
|
# General information about the project.
|
2017-01-17 19:37:27 +00:00
|
|
|
project = u'ESP-IDF Programming Guide'
|
2019-02-10 18:14:28 +00:00
|
|
|
copyright = u'2016 - 2019, Espressif Systems (Shanghai) CO., LTD'
|
2016-10-23 20:14:24 +00:00
|
|
|
|
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
|
|
# for a list of supported languages.
|
2018-02-03 21:12:13 +00:00
|
|
|
language = 'en'
|
2019-04-01 01:12:08 +00:00
|
|
|
|
|
|
|
# Download font file that is stored on a separate server to save on esp-idf repository size.
|
|
|
|
print("Downloading font file")
|
2019-05-21 01:51:39 +00:00
|
|
|
download_file_if_missing('https://dl.espressif.com/dl/esp-idf/docs/_static/DejaVuSans.ttf', '../_static')
|
2019-04-01 01:12:08 +00:00
|
|
|
|
|
|
|
# Set up font for blockdiag, nwdiag, rackdiag and packetdiag
|
|
|
|
blockdiag_fontpath = '../_static/DejaVuSans.ttf'
|
|
|
|
seqdiag_fontpath = '../_static/DejaVuSans.ttf'
|
|
|
|
actdiag_fontpath = '../_static/DejaVuSans.ttf'
|
|
|
|
nwdiag_fontpath = '../_static/DejaVuSans.ttf'
|
|
|
|
rackdiag_fontpath = '../_static/DejaVuSans.ttf'
|
|
|
|
packetdiag_fontpath = '../_static/DejaVuSans.ttf'
|
2019-11-22 05:58:04 +00:00
|
|
|
|
2019-11-28 21:56:53 +00:00
|
|
|
update_exclude_patterns(tags) # noqa: F405, need to import * from conf_common
|