summaryrefslogtreecommitdiff
path: root/_doc
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2017-07-18 08:36:10 +0200
committerAnthon van der Neut <anthon@mnt.org>2017-07-18 08:36:10 +0200
commite3134aebcc35fdb64c227578418f1dfc3583387b (patch)
tree314a1b3ffce27b3169d6b08fd690f8631ee4b824 /_doc
parentb5dd0504eff7d4f33925c2621d12b89d9b97dd8f (diff)
downloadruamel.yaml-e3134aebcc35fdb64c227578418f1dfc3583387b.tar.gz
read the docs build testing
Diffstat (limited to '_doc')
-rw-r--r--_doc/conf.py18
-rw-r--r--_doc/pyyaml.ryd5
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