A Python parser for MediaWiki wikicode https://mwparserfromhell.readthedocs.io/
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

266 wiersze
8.2 KiB

  1. # mwparserfromhell documentation build configuration file, created by
  2. # sphinx-quickstart on Tue Aug 21 20:47:26 2012.
  3. #
  4. # This file is execfile()d with the current directory set to its containing dir.
  5. #
  6. # Note that not all possible configuration values are present in this
  7. # autogenerated file.
  8. #
  9. # All configuration values have a default; values that are commented out
  10. # serve to show the default.
  11. import os
  12. import sys
  13. # If extensions (or modules to document with autodoc) are in another directory,
  14. # add these directories to sys.path here. If the directory is relative to the
  15. # documentation root, use os.path.abspath to make it absolute, like shown here.
  16. sys.path.insert(0, os.path.abspath(".."))
  17. import mwparserfromhell
  18. # -- General configuration -----------------------------------------------------
  19. # If your documentation needs a minimal Sphinx version, state it here.
  20. # needs_sphinx = '1.0'
  21. # Add any Sphinx extension module names here, as strings. They can be extensions
  22. # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
  23. extensions = ["sphinx.ext.autodoc", "sphinx.ext.intersphinx", "sphinx.ext.viewcode"]
  24. # Add any paths that contain templates here, relative to this directory.
  25. templates_path = ["_templates"]
  26. # The suffix of source filenames.
  27. source_suffix = ".rst"
  28. # The encoding of source files.
  29. # source_encoding = 'utf-8-sig'
  30. # The master toctree document.
  31. master_doc = "index"
  32. # General information about the project.
  33. project = "mwparserfromhell"
  34. copyright = "2012–2025 Ben Kurtovic"
  35. # The version info for the project you're documenting, acts as replacement for
  36. # |version| and |release|, also used in various other places throughout the
  37. # built documents.
  38. #
  39. # The short X.Y version.
  40. version = ".".join(mwparserfromhell.__version__.split(".", 2)[:2])
  41. # The full version, including alpha/beta/rc tags.
  42. release = mwparserfromhell.__version__
  43. # The language for content autogenerated by Sphinx. Refer to documentation
  44. # for a list of supported languages.
  45. # language = None
  46. # There are two options for replacing |today|: either, you set today to some
  47. # non-false value, then it is used:
  48. # today = ''
  49. # Else, today_fmt is used as the format for a strftime call.
  50. # today_fmt = '%B %d, %Y'
  51. # List of patterns, relative to source directory, that match files and
  52. # directories to ignore when looking for source files.
  53. exclude_patterns = ["_build"]
  54. # The reST default role (used for this markup: `text`) to use for all documents.
  55. # default_role = None
  56. # If true, '()' will be appended to :func: etc. cross-reference text.
  57. # add_function_parentheses = True
  58. # If true, the current module name will be prepended to all description
  59. # unit titles (such as .. function::).
  60. # add_module_names = True
  61. # If true, sectionauthor and moduleauthor directives will be shown in the
  62. # output. They are ignored by default.
  63. # show_authors = False
  64. # The name of the Pygments (syntax highlighting) style to use.
  65. pygments_style = "sphinx"
  66. # A list of ignored prefixes for module index sorting.
  67. # modindex_common_prefix = []
  68. # -- Options for HTML output ---------------------------------------------------
  69. # The theme to use for HTML and HTML Help pages. See the documentation for
  70. # a list of builtin themes.
  71. html_theme = "alabaster"
  72. # Theme options are theme-specific and customize the look and feel of a theme
  73. # further. For a list of options available for each theme, see the
  74. # documentation.
  75. html_theme_options = {
  76. "github_user": "earwig",
  77. "github_repo": "mwparserfromhell",
  78. "github_type": "star",
  79. "description": "A parser for MediaWiki wikicode",
  80. "show_relbars": True,
  81. "page_width": "1200px",
  82. "sidebar_width": "320px",
  83. "fixed_sidebar": True,
  84. }
  85. # Add any paths that contain custom themes here, relative to this directory.
  86. # html_theme_path = []
  87. # The name for this set of Sphinx documents. If None, it defaults to
  88. # "<project> v<release> documentation".
  89. # html_title = None
  90. # A shorter title for the navigation bar. Default is the same as html_title.
  91. # html_short_title = None
  92. # The name of an image file (relative to this directory) to place at the top
  93. # of the sidebar.
  94. # html_logo = None
  95. # The name of an image file (within the static path) to use as favicon of the
  96. # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
  97. # pixels large.
  98. # html_favicon = None
  99. # Add any paths that contain custom static files (such as style sheets) here,
  100. # relative to this directory. They are copied after the builtin static files,
  101. # so a file named "default.css" will overwrite the builtin "default.css".
  102. html_static_path = ["_static"]
  103. # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
  104. # using the given strftime format.
  105. # html_last_updated_fmt = '%b %d, %Y'
  106. # If true, SmartyPants will be used to convert quotes and dashes to
  107. # typographically correct entities.
  108. # html_use_smartypants = True
  109. # Custom sidebar templates, maps document names to template names.
  110. # html_sidebars = {}
  111. # Additional templates that should be rendered to pages, maps page names to
  112. # template names.
  113. # html_additional_pages = {}
  114. # If false, no module index is generated.
  115. # html_domain_indices = True
  116. # If false, no index is generated.
  117. # html_use_index = True
  118. # If true, the index is split into individual pages for each letter.
  119. # html_split_index = False
  120. # If true, links to the reST sources are added to the pages.
  121. # html_show_sourcelink = True
  122. # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
  123. # html_show_sphinx = True
  124. # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
  125. # html_show_copyright = True
  126. # If true, an OpenSearch description file will be output, and all pages will
  127. # contain a <link> tag referring to it. The value of this option must be the
  128. # base URL from which the finished HTML is served.
  129. # html_use_opensearch = ''
  130. # This is the file name suffix for HTML files (e.g. ".xhtml").
  131. # html_file_suffix = None
  132. # Output file base name for HTML help builder.
  133. htmlhelp_basename = "mwparserfromhelldoc"
  134. # -- Options for LaTeX output --------------------------------------------------
  135. latex_elements = {
  136. # The paper size ('letterpaper' or 'a4paper').
  137. #'papersize': 'letterpaper',
  138. # The font size ('10pt', '11pt' or '12pt').
  139. #'pointsize': '10pt',
  140. # Additional stuff for the LaTeX preamble.
  141. #'preamble': '',
  142. }
  143. # Grouping the document tree into LaTeX files. List of tuples
  144. # (source start file, target name, title, author, documentclass [howto/manual]).
  145. latex_documents = [
  146. (
  147. "index",
  148. "mwparserfromhell.tex",
  149. "mwparserfromhell Documentation",
  150. "Ben Kurtovic",
  151. "manual",
  152. )
  153. ]
  154. # The name of an image file (relative to this directory) to place at the top of
  155. # the title page.
  156. # latex_logo = None
  157. # For "manual" documents, if this is true, then toplevel headings are parts,
  158. # not chapters.
  159. # latex_use_parts = False
  160. # If true, show page references after internal links.
  161. # latex_show_pagerefs = False
  162. # If true, show URL addresses after external links.
  163. # latex_show_urls = False
  164. # Documents to append as an appendix to all manuals.
  165. # latex_appendices = []
  166. # If false, no module index is generated.
  167. # latex_domain_indices = True
  168. # -- Options for manual page output --------------------------------------------
  169. # One entry per manual page. List of tuples
  170. # (source start file, name, description, authors, manual section).
  171. man_pages = [
  172. (
  173. "index",
  174. "mwparserfromhell",
  175. "mwparserfromhell Documentation",
  176. ["Ben Kurtovic"],
  177. 1,
  178. )
  179. ]
  180. # If true, show URL addresses after external links.
  181. # man_show_urls = False
  182. # -- Options for Texinfo output ------------------------------------------------
  183. # Grouping the document tree into Texinfo files. List of tuples
  184. # (source start file, target name, title, author,
  185. # dir menu entry, description, category)
  186. texinfo_documents = [
  187. (
  188. "index",
  189. "mwparserfromhell",
  190. "mwparserfromhell Documentation",
  191. "Ben Kurtovic",
  192. "mwparserfromhell",
  193. "One line description of project.",
  194. "Miscellaneous",
  195. )
  196. ]
  197. # Documents to append as an appendix to all manuals.
  198. # texinfo_appendices = []
  199. # If false, no module index is generated.
  200. # texinfo_domain_indices = True
  201. # How to display URL addresses: 'footnote', 'no', or 'inline'.
  202. # texinfo_show_urls = 'footnote'