mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
8e7e0973db
Move doc hosting from readthedocs to espressif servers Update CI, Sphinx configs and add IDF Sphinx theme
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
# English Language RTD & Sphinx config file
|
|
#
|
|
# Uses ../conf_common.py for most non-language-specific settings.
|
|
|
|
# Importing conf_common adds all the non-language-specific
|
|
# parts to this conf module
|
|
try:
|
|
from conf_common import * # noqa: F403,F401
|
|
except ImportError:
|
|
import sys
|
|
import os
|
|
sys.path.insert(0, os.path.abspath('..'))
|
|
from conf_common import * # noqa: F403,F401
|
|
from local_util import download_file_if_missing # noqa: E402 - need to import from common folder
|
|
|
|
# General information about the project.
|
|
project = u'ESP-IDF Programming Guide'
|
|
copyright = u'2016 - 2021, Espressif Systems (Shanghai) CO., LTD'
|
|
|
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
|
# for a list of supported languages.
|
|
language = 'en'
|
|
|
|
# Download font file that is stored on a separate server to save on esp-idf repository size.
|
|
print("Downloading font file")
|
|
download_file_if_missing('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'
|