|
|
@ -25,15 +25,17 @@ def compile_documentation(): |
|
|
|
if docutils is None: |
|
|
|
return htmlfiles |
|
|
|
|
|
|
|
dst = pathlib.Path('./gitlab_todotxt/docs') |
|
|
|
src = pathlib.Path('./doc') |
|
|
|
|
|
|
|
dst = pathlib.Path('./gitlab_todotxt/doc') |
|
|
|
dst.mkdir(exist_ok=True) |
|
|
|
|
|
|
|
pathlib.Path('./man').mkdir(exist_ok=True) |
|
|
|
|
|
|
|
man_pter = None |
|
|
|
|
|
|
|
if None not in [docutils, manpage]: |
|
|
|
for fn in pathlib.Path('./doc').iterdir(): |
|
|
|
if None not in [docutils, manpage] and src.exists(): |
|
|
|
for fn in src.iterdir(): |
|
|
|
if fn.suffix == '.rst': |
|
|
|
if fn.stem == 'pter': |
|
|
|
man_pter = str(fn) |
|
|
|