move news into docs directory, fix examples copy

pull/784/head
Jesse Vincent 5 years ago
parent 4189c2fb22
commit d3e0252a75
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -77,6 +77,7 @@ def config_inited(app, config):
def docname(item): def docname(item):
"""Helper for status_iterator().""" """Helper for status_iterator()."""
return str(Path(item[0]).relative_to(source_path).parent) return str(Path(item[0]).relative_to(source_path).parent)
if os.path.isdir(dest_path):
rmtree(dest_path) rmtree(dest_path)
copytree(source_path, dest_path) copytree(source_path, dest_path)

@ -39,7 +39,7 @@ extensions = [
extensions.append('copy-examples') extensions.append('copy-examples')
examples_source = '../examples' examples_source = '../examples'
examples_dest = 'examples' examples_dest = 'generated/examples'
# Setup the breathe extension # Setup the breathe extension

@ -74,6 +74,12 @@ Device drivers
drivers/** drivers/**
What's new in v2.0
------------------
.. toctree::
:maxdepth: 2
NEWS.md
Upgrading from old versions Upgrading from old versions
--------------------------- ---------------------------

Loading…
Cancel
Save