Show More
@@ -1,6 +1,5 b'' | |||
|
1 | 1 | #!/usr/bin/env python |
|
2 | 2 | |
|
3 | from os.path import join, dirname, abspath | |
|
4 | 3 | import inspect |
|
5 | 4 | from pathlib import Path |
|
6 | 5 | from IPython.terminal.ipapp import TerminalIPythonApp |
@@ -8,9 +7,9 b' from ipykernel.kernelapp import IPKernelApp' | |||
|
8 | 7 | from traitlets import Undefined |
|
9 | 8 | from collections import defaultdict |
|
10 | 9 | |
|
11 |
here = |
|
|
12 |
options = |
|
|
13 |
generated = |
|
|
10 | here = (Path(__file__)).parent | |
|
11 | options = here / "source" / "config" / "options" | |
|
12 | generated = options / "config-generated.txt" | |
|
14 | 13 | |
|
15 | 14 | import textwrap |
|
16 | 15 | indent = lambda text,n: textwrap.indent(text,n*' ') |
@@ -102,11 +101,11 b' def reverse_aliases(app):' | |||
|
102 | 101 | |
|
103 | 102 | def write_doc(name, title, app, preamble=None): |
|
104 | 103 | trait_aliases = reverse_aliases(app) |
|
105 |
filename = |
|
|
106 |
with open(filename, |
|
|
107 |
f.write(title + |
|
|
108 |
f.write(( |
|
|
109 |
f.write( |
|
|
104 | filename = options / name + ".rst" | |
|
105 | with open(filename, "w") as f: | |
|
106 | f.write(title + "\n") | |
|
107 | f.write(("=" * len(title)) + "\n") | |
|
108 | f.write("\n") | |
|
110 | 109 | if preamble is not None: |
|
111 | 110 | f.write(preamble + '\n\n') |
|
112 | 111 | #f.write(app.document_config_options()) |
General Comments 0
You need to be logged in to leave comments.
Login now