mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-10 18:06:29 +00:00
Introduce separate fonts used by blockdiag, sequdiag, actdiag, nwdiag, rackdiag and packetdiag for Chinese and English version of documentation
This commit is contained in:
@@ -10,6 +10,7 @@ import sys
|
||||
import os
|
||||
sys.path.insert(0, os.path.abspath('..'))
|
||||
from conf_common import * # noqa: F401, F403 - need to make available everything from common
|
||||
from local_util import download_file # noqa: E402 - need to import from common folder
|
||||
|
||||
# General information about the project.
|
||||
project = u'ESP-IDF Programming Guide'
|
||||
@@ -18,3 +19,15 @@ copyright = u'2016 - 2019, 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('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'
|
||||
|
||||
Reference in New Issue
Block a user