diff --git a/NEWS.md b/docs/NEWS.md similarity index 100% rename from NEWS.md rename to docs/NEWS.md diff --git a/docs/_sphinx/__pycache__/copy-examples.cpython-37.pyc b/docs/_sphinx/__pycache__/copy-examples.cpython-37.pyc new file mode 100644 index 00000000..a1049e3d Binary files /dev/null and b/docs/_sphinx/__pycache__/copy-examples.cpython-37.pyc differ diff --git a/docs/_sphinx/copy-examples.py b/docs/_sphinx/copy-examples.py index 78d0d11b..f1128486 100644 --- a/docs/_sphinx/copy-examples.py +++ b/docs/_sphinx/copy-examples.py @@ -77,7 +77,8 @@ def config_inited(app, config): def docname(item): """Helper for status_iterator().""" return str(Path(item[0]).relative_to(source_path).parent) - rmtree(dest_path) + if os.path.isdir(dest_path): + rmtree(dest_path) copytree(source_path, dest_path) diff --git a/docs/conf.py b/docs/conf.py index 6dfdad8d..476f3556 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -39,7 +39,7 @@ extensions = [ extensions.append('copy-examples') examples_source = '../examples' -examples_dest = 'examples' +examples_dest = 'generated/examples' # Setup the breathe extension diff --git a/docs/index.rst b/docs/index.rst index 5b06b3d7..8192582b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -74,6 +74,12 @@ Device drivers drivers/** +What's new in v2.0 +------------------ +.. toctree:: + :maxdepth: 2 + + NEWS.md Upgrading from old versions ---------------------------