diff options
Diffstat (limited to '_doc/conf.py')
-rw-r--r-- | _doc/conf.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/_doc/conf.py b/_doc/conf.py index 9ec0f33..1945643 100644 --- a/_doc/conf.py +++ b/_doc/conf.py @@ -59,9 +59,25 @@ try: version = '.'.join(version_info[:2]) # The full version, including alpha/beta/rc tags. version = release = __version__ -except: +except Exception as e: + print('exception', e) version = release = 'dev' print('ruamel.yaml version', version) +print('cwd:', os.getcwd()) + +try: + from ryd.__main__ import RYDCmd + from ruamel.std.pathlib import Path + oldargv = sys.argv + for fn in Path('_doc').glob('*.ryd'): + sys.argv = ['ryd', 'convert', fn] + rc = RYDCmd() + rc.parse_args() + print(*sys.argv, '->', rc.run()) + sys.argv = oldargv + +except Exception as e: + print('ryd exception', e) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. |