Include IPython notebooks in Sphinx docs

Note: The first cell in each .ipynb file contains code to suppress
tracebacks in output cells. Thus cells that generate exceptions will
only output the error, without the traceback, which makes the
documentation easier to read.
stix2.1
Chris Lenk 2017-09-18 13:29:14 -04:00
parent b9a4580a2e
commit c3a1c3dc3a
9 changed files with 19 additions and 7 deletions

View File

@ -1,5 +1,6 @@
extensions = [
'sphinx-prompt',
'nbsphinx',
]
templates_path = ['_templates']
source_suffix = '.rst'

View File

@ -4,7 +4,8 @@
"cell_type": "code",
"execution_count": 7,
"metadata": {
"collapsed": true
"collapsed": true,
"nbsphinx": "hidden"
},
"outputs": [],
"source": [

View File

@ -11,8 +11,13 @@ Welcome to stix2's documentation!
:caption: Contents:
overview
roadmap
creating
serializing
parsing
versioning
markings
datastore_api
roadmap
contributing

View File

@ -4,7 +4,8 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true
"collapsed": true,
"nbsphinx": "hidden"
},
"outputs": [],
"source": [

View File

@ -66,7 +66,7 @@ The **Environment Layer** adds several components that make it easier to handle
STIX 2 data as part of a larger application and as part of a larger cyber threat
intelligence ecosystem.
- ``Data Source``s represent locations from which STIX data can be retrieved,
- ``Data Source``\s represent locations from which STIX data can be retrieved,
such as a TAXII server, database, or local filesystem. The Data Source API
abstracts differences between these storage location, giving a common API to
get objects by ID or query by various properties, as well as allowing

View File

@ -4,7 +4,8 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
"collapsed": true,
"nbsphinx": "hidden"
},
"outputs": [],
"source": [

View File

@ -4,7 +4,8 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
"collapsed": true,
"nbsphinx": "hidden"
},
"outputs": [],
"source": [

View File

@ -4,7 +4,8 @@
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": true
"collapsed": true,
"nbsphinx": "hidden"
},
"outputs": [],
"source": [

View File

@ -1,4 +1,5 @@
bumpversion
nbsphinx
pre-commit
pytest
pytest-cov