| 1 | import sys |
| 2 | from pathlib import Path |
| 3 | |
| 4 | sys.path.insert(0, str(Path(__file__).parent.parent.parent)) |
| 5 | |
| 6 | # -- General configuration ------------------------------------------------ |
| 7 | extensions = [ |
| 8 | 'sphinx.ext.todo', |
| 9 | 'sphinx.ext.autodoc', |
| 10 | 'sphinx.ext.intersphinx', |
| 11 | 'sphinx.ext.inheritance_diagram', |
| 12 | ] |
| 13 | templates_path = [] # ['_templates'] |
| 14 | source_suffix = '.rst' |
| 15 | master_doc = 'index' |
| 16 | |
| 17 | # TODO not sure I'm doing that right.. |
| 18 | import orgparse |
| 19 | |
| 20 | # General information about the project. |
| 21 | project = 'orgparse' |
| 22 | copyright = '2012, Takafumi Arakaki' # noqa: A001 |
| 23 | |
| 24 | # The short X.Y version. |
| 25 | # TODO use setup.py for version |
| 26 | version = orgparse.__version__ # ty: ignore[unresolved-attribute] |
| 27 | # The full version, including alpha/beta/rc tags. |
| 28 | release = orgparse.__version__ # ty: ignore[unresolved-attribute] |
| 29 | |
| 30 | exclude_patterns = [] |
| 31 | |
| 32 | pygments_style = 'sphinx' |
| 33 | |
| 34 | |
| 35 | # -- Options for HTML output ---------------------------------------------- |
| 36 | html_theme = 'default' |
| 37 | html_static_path = [] # ['_static'] |
| 38 | |
| 39 | # Output file base name for HTML help builder. |
| 40 | htmlhelp_basename = 'orgparsedoc' |
| 41 | |
| 42 | |
| 43 | # -- Options for LaTeX output --------------------------------------------- |
| 44 | latex_elements = { |
| 45 | # The paper size ('letterpaper' or 'a4paper'). |
| 46 | #'papersize': 'letterpaper', |
| 47 | # The font size ('10pt', '11pt' or '12pt'). |
| 48 | #'pointsize': '10pt', |
| 49 | # Additional stuff for the LaTeX preamble. |
| 50 | #'preamble': '', |
| 51 | } |
| 52 | |
| 53 | # Grouping the document tree into LaTeX files. List of tuples |
| 54 | # (source start file, target name, title, |
| 55 | # author, documentclass [howto/manual]). |
| 56 | latex_documents = [ |
| 57 | ('index', 'orgparse.tex', 'orgparse Documentation', 'Takafumi Arakaki', 'manual'), |
| 58 | ] |
| 59 | |
| 60 | |
| 61 | # -- Options for manual page output --------------------------------------- |
| 62 | # One entry per manual page. List of tuples |
| 63 | # (source start file, name, description, authors, manual section). |
| 64 | man_pages = [ |
| 65 | ('index', 'orgparse', 'orgparse Documentation', ['Takafumi Arakaki'], 1), |
| 66 | ] |
| 67 | |
| 68 | # If true, show URL addresses after external links. |
| 69 | # man_show_urls = False |
| 70 | |
| 71 | |
| 72 | # -- Options for Texinfo output ------------------------------------------- |
| 73 | # Grouping the document tree into Texinfo files. List of tuples |
| 74 | # (source start file, target name, title, author, |
| 75 | # dir menu entry, description, category) |
| 76 | texinfo_documents = [ |
| 77 | ( |
| 78 | 'index', |
| 79 | 'orgparse', |
| 80 | 'orgparse Documentation', |
| 81 | 'Takafumi Arakaki', |
| 82 | 'orgparse', |
| 83 | 'One line description of project.', |
| 84 | 'Miscellaneous', |
| 85 | ), |
| 86 | ] |
| 87 | |
| 88 | |
| 89 | # -- Options for extensions ----------------------------------------------- |
| 90 | |
| 91 | # Example configuration for intersphinx: refer to the Python standard library. |
| 92 | intersphinx_mapping = {'http://docs.python.org/': None} |
| 93 | |
| 94 | autodoc_member_order = 'bysource' |
| 95 | autodoc_default_flags = ['members'] |
| 96 | |
| 97 | inheritance_graph_attrs = {'rankdir': "TB"} |