conf.py 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  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. try:
  9. from conf_common import * # noqa: F403,F401
  10. except ImportError:
  11. import sys
  12. import os
  13. sys.path.insert(0, os.path.abspath('..'))
  14. from conf_common import * # noqa: F403,F401
  15. from local_util import download_file_if_missing # noqa: E402 - need to import from common folder
  16. # General information about the project.
  17. project = u'ESP-IDF Programming Guide'
  18. copyright = u'2016 - 2020, Espressif Systems (Shanghai) CO., LTD'
  19. # The language for content autogenerated by Sphinx. Refer to documentation
  20. # for a list of supported languages.
  21. language = 'en'
  22. # Download font file that is stored on a separate server to save on esp-idf repository size.
  23. print("Downloading font file")
  24. download_file_if_missing('https://dl.espressif.com/dl/esp-idf/docs/_static/DejaVuSans.ttf', '../_static')
  25. # Set up font for blockdiag, nwdiag, rackdiag and packetdiag
  26. blockdiag_fontpath = '../_static/DejaVuSans.ttf'
  27. seqdiag_fontpath = '../_static/DejaVuSans.ttf'
  28. actdiag_fontpath = '../_static/DejaVuSans.ttf'
  29. nwdiag_fontpath = '../_static/DejaVuSans.ttf'
  30. rackdiag_fontpath = '../_static/DejaVuSans.ttf'
  31. packetdiag_fontpath = '../_static/DejaVuSans.ttf'