conf.py 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. #
  3. # English Language RTD & Sphinx config file
  4. #
  5. # Uses ../conf_common.py for most non-language-specific settings.
  6. # Importing conf_common adds all the non-language-specific
  7. # parts to this conf module
  8. import sys
  9. import os
  10. sys.path.insert(0, os.path.abspath('..'))
  11. from conf_common import * # noqa: F401, F403 - need to make available everything from common
  12. from local_util import download_file_if_missing # noqa: E402 - need to import from common folder
  13. # General information about the project.
  14. project = u'ESP-IDF Programming Guide'
  15. copyright = u'2016 - 2019, Espressif Systems (Shanghai) CO., LTD'
  16. # The language for content autogenerated by Sphinx. Refer to documentation
  17. # for a list of supported languages.
  18. language = 'en'
  19. # Download font file that is stored on a separate server to save on esp-idf repository size.
  20. print("Downloading font file")
  21. download_file_if_missing('https://dl.espressif.com/dl/esp-idf/docs/_static/DejaVuSans.ttf', '../_static')
  22. # Set up font for blockdiag, nwdiag, rackdiag and packetdiag
  23. blockdiag_fontpath = '../_static/DejaVuSans.ttf'
  24. seqdiag_fontpath = '../_static/DejaVuSans.ttf'
  25. actdiag_fontpath = '../_static/DejaVuSans.ttf'
  26. nwdiag_fontpath = '../_static/DejaVuSans.ttf'
  27. rackdiag_fontpath = '../_static/DejaVuSans.ttf'
  28. packetdiag_fontpath = '../_static/DejaVuSans.ttf'