2016-10-23 16:14:24 -04:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
2018-03-14 19:47:57 -04:00
|
|
|
# English Language RTD & Sphinx config file
|
2016-10-23 16:14:24 -04:00
|
|
|
#
|
2018-03-14 19:47:57 -04:00
|
|
|
# Uses ../conf_common.py for most non-language-specific settings.
|
2016-10-23 16:14:24 -04:00
|
|
|
|
2018-03-14 19:47:57 -04:00
|
|
|
# Importing conf_common adds all the non-language-specific
|
|
|
|
# parts to this conf module
|
2018-12-01 03:25:08 -05:00
|
|
|
import sys
|
|
|
|
import os
|
2018-02-03 16:12:13 -05:00
|
|
|
sys.path.insert(0, os.path.abspath('..'))
|
2018-12-01 03:25:08 -05:00
|
|
|
from conf_common import * # noqa: F401, F403 - need to make available everything from common
|
2019-03-31 21:12:08 -04:00
|
|
|
from local_util import download_file # noqa: E402 - need to import from common folder
|
2016-10-23 16:14:24 -04:00
|
|
|
|
|
|
|
# General information about the project.
|
2017-01-17 14:37:27 -05:00
|
|
|
project = u'ESP-IDF Programming Guide'
|
2019-02-10 13:14:28 -05:00
|
|
|
copyright = u'2016 - 2019, Espressif Systems (Shanghai) CO., LTD'
|
2016-10-23 16:14:24 -04:00
|
|
|
|
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
|
|
# for a list of supported languages.
|
2018-02-03 16:12:13 -05:00
|
|
|
language = 'en'
|
2019-03-31 21:12:08 -04:00
|
|
|
|
|
|
|
# Download font file that is stored on a separate server to save on esp-idf repository size.
|
|
|
|
print("Downloading font file")
|
|
|
|
download_file('https://dl.espressif.com/dl/esp-idf/docs/_static/DejaVuSans.ttf', '../_static')
|
|
|
|
|
|
|
|
# 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'
|