diff options
| author | Scott Shawcroft <scott@chickadee.tech> | 2016-10-18 17:42:47 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@chickadee.tech> | 2016-10-18 17:42:47 -0700 |
| commit | 46e7f8e4fb172207121516f5bd15d162aedd041d (patch) | |
| tree | 7ff3890e7a3339402587f995d3a6c7099194fe61 /docs/c2rst.py | |
| parent | cb99ae50328de982244ed5cd486ccd57f5bd93bd (diff) | |
Documentation rework to unify the docs together rather than having them
on a per port basis.
Also enables generating docs from inline RST in C code. Simply omits all
lines except those that start with //|. Indentation after "//| " will be
preserved.
Diffstat (limited to 'docs/c2rst.py')
| -rw-r--r-- | docs/c2rst.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/c2rst.py b/docs/c2rst.py new file mode 100644 index 000000000..3018e62af --- /dev/null +++ b/docs/c2rst.py @@ -0,0 +1,10 @@ +import sphinx.parsers +import docutils.parsers.rst as rst + +class CStrip(sphinx.parsers.Parser): + def __init(self): + self.rst_parser = rst.Parser() + + def parse(self, inputstring, document): + print(inputstring) + self.rst_parser(stripped, document) |
