Skip to content
Commit b645194c authored by David B. Kinder's avatar David B. Kinder Committed by Anas Nashif
Browse files

doc: add sphinx extension improving only directive

The Sphinx ``.. only::`` directive is limited to handling only
conditional text and can't handling conditional use of directives
For example,

```
.. only:: test

   .. automodule:: west.runners.core
      :members:
```

is not handled. This PR monkey patches the handling of the existing
``.. only::`` directive done by Sphinx.

See https://github.com/pfalcon/sphinx_selective_exclude

 for details.
Licensing amended to Apache 2.0 with permission from the author.

Signed-off-by: default avatarDavid B. Kinder <david.b.kinder@intel.com>
parent 6ed2ea66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment