diff options
Diffstat (limited to '_doc')
-rw-r--r-- | _doc/conf.py | 18 | ||||
-rw-r--r-- | _doc/pyyaml.ryd | 5 |
2 files changed, 20 insertions, 3 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. diff --git a/_doc/pyyaml.ryd b/_doc/pyyaml.ryd index 85aa160..dd26c6c 100644 --- a/_doc/pyyaml.ryd +++ b/_doc/pyyaml.ryd @@ -77,8 +77,9 @@ supported Python versions, on PyPI as well as flake8/pep8 API +++ -Starting with 0.15 the API for using ``ruamel.yaml`` has diverged allowing easier -addition of new features. +Starting with 0.15 the API for using ``ruamel.yaml`` has diverged allowing +easier addition of new features. +----- .. include:: links.rst |