Skip to content

Commit

Permalink
Update documentation to work with latest nsparser changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtback committed Sep 27, 2017
1 parent 2515a03 commit bebac4e
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 46 deletions.
7 changes: 1 addition & 6 deletions docs/api/common/identity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ Classes
.. autoclass:: RelatedIdentities
:show-inheritance:
:members:

Functions
---------

.. autofunction:: add_extension

Constants
---------

.. autodata:: _EXTENSION_MAP
6 changes: 1 addition & 5 deletions docs/api/common/vocabs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,4 @@ Functions
---------

.. autofunction:: add_vocab

Constants
---------

.. autodata:: _VOCAB_MAP
.. autofunction:: register_vocab
5 changes: 0 additions & 5 deletions docs/api/data_marking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,3 @@ Functions
---------

.. autofunction:: add_extension

Constants
---------

.. autodata:: _EXTENSION_MAP
1 change: 1 addition & 0 deletions docs/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Modules located in the base `stix`_ package
.. toctree::
:titlesonly:

stix
base
data_marking

Expand Down
5 changes: 0 additions & 5 deletions docs/api/indicator/test_mechanism.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@ Functions
---------

.. autofunction:: add_extension

Constants
---------

.. autodata:: _EXTENSION_MAP
12 changes: 12 additions & 0 deletions docs/api/stix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
:mod:`stix` Module
==================================

.. module:: stix

Classes
-------

.. autofunction:: supported_stix_version
.. autofunction:: register_extension
.. autofunction:: lookup_extension
.. autofunction:: add_extension
5 changes: 0 additions & 5 deletions docs/api/ttp/malware_instance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@ Functions
---------

.. autofunction:: add_extension

Constants
---------

.. autodata:: _EXTENSION_MAP
22 changes: 2 additions & 20 deletions docs/api/utils/nsparser.rst
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
:mod:`stix.utils.nsparser` Module
==================================

.. module:: stix.utils.nsparser

Classes
-------

.. autoclass:: NamespaceParser
:show-inheritance:
.. automodule:: stix.utils.nsparser
:members:

Constants
---------

.. autodata:: XML_NAMESPACES

.. autodata:: STIX_NS_TO_SCHEMALOCATION

.. autodata:: EXT_NS_TO_SCHEMALOCATION

.. autodata:: DEFAULT_STIX_NS_TO_PREFIX

.. autodata:: DEFAULT_EXT_TO_PREFIX
:undoc-members:
3 changes: 3 additions & 0 deletions stix/utils/nsparser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Copyright (c) 2016, The MITRE Corporation. All rights reserved.
# See LICENSE.txt for complete terms.
"""
This module automatically registers all STIX namespaces into mixbox.
"""

import mixbox.namespaces

Expand Down

0 comments on commit bebac4e

Please sign in to comment.