Skip to content

Add user guide doc with not well known features - #691

Merged
xdelaruelle merged 5 commits into
envmodules:mainfrom
adrien-cotte:doc/lesser_known_features
Aug 31, 2026
Merged

Add user guide doc with not well known features#691
xdelaruelle merged 5 commits into
envmodules:mainfrom
adrien-cotte:doc/lesser_known_features

Conversation

@adrien-cotte

Copy link
Copy Markdown
Contributor

Add a new user guide section in the documentation.

  • --output=LIST
  • spider
  • --latest and --default
  • --indepth and --no-indepth
  • --json
  • Collections
  • mogui
  • stash commands
  • Envml
  • Protected environment variables
  • module edit
  • module lint
  • source-sh
  • sh-to-mod
  • mod-to-sh
  • prereq
  • conflict
  • variants
  • Advanced specifications specifiers
  • --timer and --debug
  • .modulerc files
  • module-tag
  • module-hide
  • module-forbid
  • module-virtual
  • Module logger

Fixes #610

adrien-cotte and others added 5 commits August 30, 2026 20:11
Signed-off-by: Adrien Cotte <adrien.cotte@asplus.fr>
Use literal markup on command, option and file names in section titles
and move the mogui section next to the other collection-related
features.

Fix typos and grammar: "Lesser know" document title, garbled "Advanced
specifications specifiers" section title, doubled slash in spider
example paths, nested inline markup in the presentation title, missing
articles and various wording issues.

Also fix the module use cross-reference so it resolves, correct the
Spack package name to py-modules-gui, and harmonize inline markup, line
wrapping and example output spacing.

Assisted-by: Claude:claude-fable-5
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Assisted-by: Claude:claude-fable-5
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Demonstrate what the described features bring by showing the output of
the example commands, compared when relevant against a plain module
avail run listing all existing modulefiles:

- --output: empty LIST reporting only module names, plus the "+" and
  "-" LIST prefixes that adjust the currently configured element list
- --latest and --default: filtered version lists, explaining that the
  default version is either explicitly set or implicitly the highest
- --timer and --debug: timing report, debug messages and per-procedure
  execution time reports when both options are combined
- module-tag: applied tag reported along the module name and a purge
  attempt on a sticky module showing its unload is skipped

Rework the prereq section: present this command as a way to declare
requirements, that are automatically loaded when the auto_handling
mode is enabled, rather than a check that dependencies are loaded.
Warn that requirements must not be declared within a condition block,
as no requirement rule gets defined when the required module is
already loaded. Mention that the module load modulefile command
equally defines a requirement rule, loading missing modules even when
auto_handling is disabled, and acting as a logical AND over the
specified modules whereas prereq acts as a logical OR.

Rework the conflict section: conflicting modules are automatically
unloaded when the conflict_unload and auto_handling modes are enabled,
so demonstrate this mechanism rather than advertising the --force
option to bypass the conflict error. Describe the reflexive conflict
pattern that ensures only one version of a module can be loaded at a
time. Precise in the tip about unique_name_loaded that this option
applies to all existing modules, which may not fit when application
configurations are also handled through modulefiles.

Assisted-by: Claude:claude-fable-5
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Turn console code-blocks into parsed-literal blocks using the color
roles rendering output like in a terminal, as done in MIGRATING.rst.
Modulepaths, default versions, tags, variants, messages and debugging
output get the colors and styles of the real command output, whose
rendering slightly differs from the monochrome mode: the default
version is underlined rather than reported with a "(default)" marker
and the sticky tag is rendered with a background color rather than an
"<S>" abbreviation.

Assisted-by: Claude:claude-fable-5
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
@xdelaruelle
xdelaruelle force-pushed the doc/lesser_known_features branch from 349e474 to b33dc89 Compare August 31, 2026 05:29

@xdelaruelle xdelaruelle left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added several commits to improve docs. LGTM.

@xdelaruelle
xdelaruelle merged commit 3e543d9 into envmodules:main Aug 31, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add user guide to demonstrate not well known features

2 participants