|
19 | 19 |
|
20 | 20 | # -- Project information ----------------------------------------------------- |
21 | 21 |
|
22 | | -project = 'Sphinx Copybutton' |
23 | | -copyright = '2018, Chris Holdgraf' |
24 | | -author = 'Chris Holdgraf' |
| 22 | +project = "Sphinx Copybutton" |
| 23 | +copyright = "2018, Executable Books Project" |
| 24 | +author = "Executable Books Project" |
25 | 25 |
|
26 | 26 | # The short X.Y version |
27 | | -version = '' |
| 27 | +version = "" |
28 | 28 | # The full version, including alpha/beta/rc tags |
29 | | -release = '' |
| 29 | +release = "" |
30 | 30 |
|
31 | 31 |
|
32 | 32 | # -- General configuration --------------------------------------------------- |
|
38 | 38 | # Add any Sphinx extension module names here, as strings. They can be |
39 | 39 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
40 | 40 | # ones. |
41 | | -extensions = ['sphinx_copybutton'] |
| 41 | +extensions = ["sphinx_copybutton", "IPython.sphinxext.ipython_directive"] |
42 | 42 |
|
43 | 43 | # Add any paths that contain templates here, relative to this directory. |
44 | | -templates_path = ['_templates'] |
| 44 | +templates_path = ["_templates"] |
45 | 45 |
|
46 | 46 | # The suffix(es) of source filenames. |
47 | 47 | # You can specify multiple suffix as a list of string: |
48 | 48 | # |
49 | 49 | # source_suffix = ['.rst', '.md'] |
50 | | -source_suffix = '.rst' |
| 50 | +source_suffix = ".rst" |
51 | 51 |
|
52 | 52 | # The master toctree document. |
53 | | -master_doc = 'index' |
| 53 | +master_doc = "index" |
54 | 54 |
|
55 | 55 | # The language for content autogenerated by Sphinx. Refer to documentation |
56 | 56 | # for a list of supported languages. |
|
62 | 62 | # List of patterns, relative to source directory, that match files and |
63 | 63 | # directories to ignore when looking for source files. |
64 | 64 | # This pattern also affects html_static_path and html_extra_path . |
65 | | -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 65 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
66 | 66 |
|
67 | 67 | # The name of the Pygments (syntax highlighting) style to use. |
68 | | -pygments_style = 'sphinx' |
| 68 | +pygments_style = "sphinx" |
69 | 69 |
|
70 | 70 |
|
71 | 71 | # -- Options for HTML output ------------------------------------------------- |
72 | 72 |
|
73 | 73 | # The theme to use for HTML and HTML Help pages. See the documentation for |
74 | 74 | # a list of builtin themes. |
75 | 75 | # |
76 | | -html_theme = 'alabaster' |
| 76 | +html_theme = "alabaster" |
77 | 77 | # html_theme = 'sphinx_rtd_theme' |
78 | 78 |
|
79 | 79 | # Theme options are theme-specific and customize the look and feel of a theme |
|
85 | 85 | # Add any paths that contain custom static files (such as style sheets) here, |
86 | 86 | # relative to this directory. They are copied after the builtin static files, |
87 | 87 | # so a file named "default.css" will overwrite the builtin "default.css". |
88 | | -html_static_path = ['_static'] |
| 88 | +html_static_path = ["_static"] |
89 | 89 |
|
90 | 90 | # Custom sidebar templates, must be a dictionary that maps document names |
91 | 91 | # to template names. |
|
98 | 98 | # html_sidebars = {} |
99 | 99 |
|
100 | 100 | # CopyButton configuration |
101 | | -copybutton_prompt_text = ">>> " |
| 101 | +copybutton_prompt_text = ">>> |\\\\$ |\\[\\d*\\]: |\\.\\.\\.: " |
| 102 | +copybutton_prompt_is_regexp = True |
102 | 103 | # Switches for testing but shouldn't be activated in the live docs |
103 | 104 | # copybutton_only_copy_prompt_lines = False |
104 | 105 | # copybutton_remove_prompts = False |
|
109 | 110 | # -- Options for HTMLHelp output --------------------------------------------- |
110 | 111 |
|
111 | 112 | # Output file base name for HTML help builder. |
112 | | -htmlhelp_basename = 'SphinxCopybuttondoc' |
| 113 | +htmlhelp_basename = "SphinxCopybuttondoc" |
113 | 114 |
|
114 | 115 |
|
115 | 116 | # -- Options for LaTeX output ------------------------------------------------ |
|
118 | 119 | # The paper size ('letterpaper' or 'a4paper'). |
119 | 120 | # |
120 | 121 | # 'papersize': 'letterpaper', |
121 | | - |
122 | 122 | # The font size ('10pt', '11pt' or '12pt'). |
123 | 123 | # |
124 | 124 | # 'pointsize': '10pt', |
125 | | - |
126 | 125 | # Additional stuff for the LaTeX preamble. |
127 | 126 | # |
128 | 127 | # 'preamble': '', |
129 | | - |
130 | 128 | # Latex figure (float) alignment |
131 | 129 | # |
132 | 130 | # 'figure_align': 'htbp', |
|
136 | 134 | # (source start file, target name, title, |
137 | 135 | # author, documentclass [howto, manual, or own class]). |
138 | 136 | latex_documents = [ |
139 | | - (master_doc, 'SphinxCopybutton.tex', 'Sphinx Copybutton Documentation', |
140 | | - 'Chris Holdgraf', 'manual'), |
| 137 | + ( |
| 138 | + master_doc, |
| 139 | + "SphinxCopybutton.tex", |
| 140 | + "Sphinx Copybutton Documentation", |
| 141 | + "Executable Books Project", |
| 142 | + "manual", |
| 143 | + ) |
141 | 144 | ] |
142 | 145 |
|
143 | 146 |
|
|
146 | 149 | # One entry per manual page. List of tuples |
147 | 150 | # (source start file, name, description, authors, manual section). |
148 | 151 | man_pages = [ |
149 | | - (master_doc, 'sphinxcopybutton', 'Sphinx Copybutton Documentation', |
150 | | - [author], 1) |
| 152 | + (master_doc, "sphinxcopybutton", "Sphinx Copybutton Documentation", [author], 1) |
151 | 153 | ] |
152 | 154 |
|
153 | 155 |
|
|
157 | 159 | # (source start file, target name, title, author, |
158 | 160 | # dir menu entry, description, category) |
159 | 161 | texinfo_documents = [ |
160 | | - (master_doc, 'SphinxCopybutton', 'Sphinx Copybutton Documentation', |
161 | | - author, 'SphinxCopybutton', 'One line description of project.', |
162 | | - 'Miscellaneous'), |
| 162 | + ( |
| 163 | + master_doc, |
| 164 | + "SphinxCopybutton", |
| 165 | + "Sphinx Copybutton Documentation", |
| 166 | + author, |
| 167 | + "SphinxCopybutton", |
| 168 | + "One line description of project.", |
| 169 | + "Miscellaneous", |
| 170 | + ) |
163 | 171 | ] |
0 commit comments