2
0

conf.py 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Configuration file for the Sphinx documentation builder.
  4. #
  5. # This file does only contain a selection of the most common options. For a
  6. # full list see the documentation:
  7. # http://www.sphinx-doc.org/en/master/config
  8. # -- Path setup --------------------------------------------------------------
  9. # If extensions (or modules to document with autodoc) are in another directory,
  10. # add these directories to sys.path here. If the directory is relative to the
  11. # documentation root, use os.path.abspath to make it absolute, like shown here.
  12. #
  13. # import os
  14. # import sys
  15. # sys.path.insert(0, os.path.abspath('.'))
  16. import datetime
  17. # -- Project information -----------------------------------------------------
  18. project = 'CodeRed CMS'
  19. copyright = '2018-' + str(datetime.datetime.now().year) + ', CodeRed LLC'
  20. author = 'CodeRed LLC'
  21. # -- General configuration ---------------------------------------------------
  22. # Add any Sphinx extension module names here, as strings. They can be
  23. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  24. # ones.
  25. extensions = []
  26. # Add any paths that contain templates here, relative to this directory.
  27. templates_path = ['_templates']
  28. # The suffix(es) of source filenames.
  29. # You can specify multiple suffix as a list of string:
  30. #
  31. # source_suffix = ['.rst', '.md']
  32. source_suffix = '.rst'
  33. # The master toctree document.
  34. master_doc = 'index'
  35. # The language for content autogenerated by Sphinx. Refer to documentation
  36. # for a list of supported languages.
  37. #
  38. # This is also used if you do content translation via gettext catalogs.
  39. # Usually you set "language" from the command line for these cases.
  40. language = "en"
  41. # List of patterns, relative to source directory, that match files and
  42. # directories to ignore when looking for source files.
  43. # This pattern also affects html_static_path and html_extra_path.
  44. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  45. # The name of the Pygments (syntax highlighting) style to use.
  46. pygments_style = 'default'
  47. # -- Options for HTML output -------------------------------------------------
  48. # The theme to use for HTML and HTML Help pages. See the documentation for
  49. # a list of builtin themes.
  50. html_theme = 'classic'
  51. # Theme options are theme-specific and customize the look and feel of a theme
  52. # further. For a list of options available for each theme, see the
  53. # documentation.
  54. html_theme_options = {
  55. 'sidebarwidth': '260px',
  56. 'bodyfont': 'initial',
  57. 'headfont': 'inherit',
  58. 'footerbgcolor': 'inherit',
  59. 'footertextcolor': '#888',
  60. 'sidebarbgcolor': '#001834',
  61. 'sidebartextcolor': 'rgba(255,255,255,0.7)',
  62. 'sidebarlinkcolor': 'rgba(255,255,255,0.7)',
  63. 'relbarbgcolor': 'inherit',
  64. 'relbartextcolor': '#888',
  65. 'relbarlinkcolor': '#888',
  66. 'bgcolor': '#fff',
  67. 'textcolor': '#000',
  68. 'linkcolor': '#0aa',
  69. 'visitedlinkcolor': '#0aa',
  70. 'headbgcolor': 'inherit',
  71. 'headtextcolor': 'inherit',
  72. }
  73. html_logo = '_static/coderedcms_light.png'
  74. # Add any paths that contain custom static files (such as style sheets) here,
  75. # relative to this directory. They are copied after the builtin static files,
  76. # so a file named "default.css" will overwrite the builtin "default.css".
  77. html_static_path = ['_static']
  78. # Custom sidebar templates, must be a dictionary that maps document names
  79. # to template names.
  80. #
  81. # The default sidebars (for documents that don't match any pattern) are
  82. # defined by theme itself. Builtin themes are using these templates by
  83. # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
  84. # 'searchbox.html']``.
  85. html_sidebars = {'**': ['searchbox.html', 'globaltoc.html']}
  86. html_context = {
  87. 'css_files': ['_static/docs.css'],
  88. }
  89. html_last_updated_fmt = ''