Skip to content

Commit da203f7

Browse files
committed
Documentation: Improve library documentation
Fixes #993.
1 parent 3ff4f01 commit da203f7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def setup(app):
2727

2828
source_dir = os.path.abspath(os.path.dirname(__file__))
2929
sphinx.ext.apidoc.main(
30-
argv=["-e", "-M", "-f", "-T", "-o", source_dir, volatility_directory]
30+
["-e", "-M", "-f", "-T", "-o", source_dir, volatility_directory]
3131
)
3232

3333
# Go through the volatility3.framework.plugins files and change them to volatility3.plugins

doc/source/using-as-a-library.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ also be included, which can be found in `volatility3.constants.PLUGINS_PATH`.
5454
volatility3.plugins.__path__ = <new_plugin_path> + constants.PLUGINS_PATH
5555
failures = framework.import_files(volatility3.plugins, True)
5656

57+
.. note::
58+
59+
Volatility uses the `volatility3.plugins` namespace for all plugins (including those in `volatility3.framework.plugins`).
60+
Please ensure you only use `volatility3.plugins` and only ever import plugins from this namespace.
61+
This ensures the ability of users to override core plugins without needing write access to the framework directory.
62+
5763
Once the plugins have been imported, we can interrogate which plugins are available. The
5864
:py:func:`~volatility3.framework.list_plugins` call will
5965
return a dictionary of plugin names and the plugin classes.

0 commit comments

Comments
 (0)