diff --git a/doc/source/conf.py b/doc/source/conf.py index 10065ee2..058a3c6f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -234,6 +234,7 @@ rst_epilog += '.. |modulefilesdir| replace:: %s\n' % modulefilesdir rst_epilog += '.. |emph modulefilesdir| replace:: *%s*\n' % modulefilesdir rst_epilog += '.. |bold modulefilesdir| replace:: **%s**\n' % modulefilesdir rst_epilog += '.. |file modulefilesdir| replace:: :file:`%s`\n' % modulefilesdir +rst_epilog += '.. |code version| replace:: ``%s``\n' % version # -- Options for manual page output --------------------------------------- diff --git a/doc/source/modulefile.rst b/doc/source/modulefile.rst index ae088bab..5e45b37b 100644 --- a/doc/source/modulefile.rst +++ b/doc/source/modulefile.rst @@ -733,6 +733,26 @@ Modules Variables The :mfvar:`ModulesCurrentModulefile` variable contains the full pathname of the *modulefile* being interpreted. +.. mfvar:: ModuleTool + + The :mfvar:`ModuleTool` variable contains the name of the *module* + implementation currently in use. The value of this variable is set to + ``Modules`` for this implementation. + + .. only:: html + + .. versionadded:: 4.7 + +.. mfvar:: ModuleToolVersion + + The :mfvar:`ModuleToolVersion` variable contains the version of the *module* + implementation currently in use. The value of this variable is set to + |code version| for this version of Modules. + + .. only:: html + + .. versionadded:: 4.7 + .. _Locating Modulefiles: Locating Modulefiles