conf.py.in 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. #!@PYTHON_EXECUTABLE@
  2. # -*- coding: utf-8 -*-
  3. #
  4. # recipe-03 documentation build configuration file, created by
  5. # sphinx-quickstart on Thu Feb 15 17:02:41 2018.
  6. #
  7. # This file is execfile()d with the current directory set to its
  8. # containing dir.
  9. #
  10. # Note that not all possible configuration values are present in this
  11. # autogenerated file.
  12. #
  13. # All configuration values have a default; values that are commented out
  14. # serve to show the default.
  15. # If extensions (or modules to document with autodoc) are in another directory,
  16. # add these directories to sys.path here. If the directory is relative to the
  17. # documentation root, use os.path.abspath to make it absolute, like shown here.
  18. #
  19. import os
  20. import subprocess
  21. import sys
  22. # -- General configuration ------------------------------------------------
  23. # If your documentation needs a minimal Sphinx version, state it here.
  24. #
  25. # needs_sphinx = '1.0'
  26. # Add any Sphinx extension module names here, as strings. They can be
  27. # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
  28. # ones.
  29. extensions = ['breathe']
  30. # Add any paths that contain templates here, relative to this directory.
  31. templates_path = ['_templates']
  32. # The suffix(es) of source filenames.
  33. # You can specify multiple suffix as a list of string:
  34. #
  35. source_suffix = ['.rst', '.md']
  36. # The master toctree document.
  37. master_doc = 'index'
  38. # General information about the project.
  39. project = '@PROJECT_NAME@'
  40. copyright = 'Since 2018, fastcae.com'
  41. author = 'FastCAE团队'
  42. # The version info for the project you're documenting, acts as replacement for
  43. # |version| and |release|, also used in various other places throughout the
  44. # built documents.
  45. #
  46. # The short X.Y version.
  47. version = '@PROJECT_VERSION@'
  48. # The full version, including alpha/beta/rc tags.
  49. release = '@PROJECT_VERSION@'
  50. # The language for content autogenerated by Sphinx. Refer to documentation
  51. # for a list of supported languages.
  52. #
  53. # This is also used if you do content translation via gettext catalogs.
  54. # Usually you set "language" from the command line for these cases.
  55. language = 'zh_CN'
  56. # List of patterns, relative to source directory, that match files and
  57. # directories to ignore when looking for source files.
  58. # This patterns also effect to html_static_path and html_extra_path
  59. exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
  60. # The name of the Pygments (syntax highlighting) style to use.
  61. pygments_style = 'sphinx'
  62. # If true, `todo` and `todoList` produce output, else they produce nothing.
  63. todo_include_todos = False
  64. # -- Options for HTML output ----------------------------------------------
  65. # The theme to use for HTML and HTML Help pages. See the documentation for
  66. # a list of builtin themes.
  67. #
  68. html_theme = 'sphinx_rtd_theme'
  69. html_theme_options = {
  70. # 如果出现 ,则版本号将显示在边栏的顶部
  71. 'display_version': True,
  72. # 仅显示徽标图像,不在侧边栏顶部显示项目名称
  73. 'logo_only': False,
  74. # 显示“下一个”和“上一个”按钮的位置。这可以是 、 、 或 。bottomtopbothNone
  75. 'prev_next_buttons_location': 'bottom',
  76. # 在外部链接旁边添加一个图标
  77. 'style_external_links': True,
  78. # 更改导航栏中搜索区域的背景。该值可以是 CSS 背景属性中有效的任何值
  79. #'style_nav_header_background': 'white',
  80. # 启用此功能后,导航条目不可展开
  81. 'collapse_navigation': True,
  82. # 滚动页面时,滚动包含主页内容的导航
  83. 'sticky_navigation': True,
  84. # 目录树的最大深度。将此设置为允许无限深度
  85. 'navigation_depth': 4,
  86. # 指定导航是否包括隐藏的内容表,即使用该选项标记的任何 toctree 指令
  87. 'includehidden': True,
  88. # 启用后,导航中不包括页面副标题。
  89. 'titles_only': True
  90. }
  91. # Theme options are theme-specific and customize the look and feel of a theme
  92. # further. For a list of options available for each theme, see the
  93. # documentation.
  94. #
  95. # html_theme_options = {}
  96. # Add any paths that contain custom static files (such as style sheets) here,
  97. # relative to this directory. They are copied after the builtin static files,
  98. # so a file named "default.css" will overwrite the builtin "default.css".
  99. html_static_path = []
  100. # Custom sidebar templates, must be a dictionary that maps document names
  101. # to template names.
  102. #
  103. # This is required for the alabaster theme
  104. # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
  105. html_sidebars = {
  106. '**': [
  107. 'relations.html', # needs 'show_related': True theme option to display
  108. 'searchbox.html',
  109. ]
  110. }
  111. # -- Options for HTMLHelp output ------------------------------------------
  112. # Output file base name for HTML help builder.
  113. htmlhelp_basename = '@PROJECT_NAME@ Documentation'
  114. # -- Options for LaTeX output ---------------------------------------------
  115. latex_elements = {
  116. # The paper size ('letterpaper' or 'a4paper').
  117. #
  118. # 'papersize': 'letterpaper',
  119. # The font size ('10pt', '11pt' or '12pt').
  120. #
  121. # 'pointsize': '10pt',
  122. # Additional stuff for the LaTeX preamble.
  123. #
  124. # 'preamble': '',
  125. # Latex figure (float) alignment
  126. #
  127. # 'figure_align': 'htbp',
  128. }
  129. # Grouping the document tree into LaTeX files. List of tuples
  130. # (source start file, target name, title,
  131. # author, documentclass [howto, manual, or own class]).
  132. latex_documents = [
  133. (master_doc, '@PROJECT_NAME@.tex', '@PROJECT_NAME@ Documentation',
  134. 'Radovan Bast, Roberto Di Remigio', 'manual'),
  135. ]
  136. # -- Options for manual page output ---------------------------------------
  137. # One entry per manual page. List of tuples
  138. # (source start file, name, description, authors, manual section).
  139. man_pages = [(master_doc, '@PROJECT_NAME@', '@PROJECT_NAME@ Documentation', [author], 1)]
  140. # -- Options for Texinfo output -------------------------------------------
  141. # Grouping the document tree into Texinfo files. List of tuples
  142. # (source start file, target name, title, author,
  143. # dir menu entry, description, category)
  144. texinfo_documents = [
  145. (master_doc, '@PROJECT_NAME@', '@PROJECT_NAME@ Documentation', author, '@PROJECT_NAME@',
  146. 'One line description of project.', 'Miscellaneous'),
  147. ]
  148. breathe_projects = {'@PROJECT_NAME@': '@CMAKE_BINARY_DIR@/Documentation/Doxygen/xml'}
  149. breathe_default_project = "@PROJECT_NAME@"