Native doc command for IPM CLI
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Domain
- cli
Research direction
Start with the IPM shell command entry point and inspect how installed modules, module.xml metadata, and IPM registry metadata are accessed. Trace the proposed priority from a module-specific Docs class to Documentation or Homepage metadata and then the registry repository URL. Done means the doc command accepts a package name and follows that fallback order to provide a documentation destination.
Written by the indexing model from the issue text.
Description
Problem Statement
Currently, after installing a package via IPM, there is no standardized way to access documentation. Users must manually switch to a browser, search GitHub, or dig through the module.xml and class code to understand how to use the module. This creates a "discovery gap" that slows down development.
Proposed Solution
Introduce a native doc (or docs) command to the IPM shell. This command will act as an intelligent router to open or display documentation based on the module's metadata and the user's environment.
Usage:
zpm:USER>doc <package-name>
Implementation Logic (The "Smart Router")
The command should follow a prioritized waterfall approach to ensure it always provides value:
- Local Module Documentation (Highest Priority):
- Search for a specific documentation class within the module (e.g.,
<Module>.Docs.cls). - If found, calculate the local web server URL (e.g.,
http://localhost:52773/csp/namespace/Package.Docs.cls).
- Manifest Metadata:
- If no local class exists, check
module.xmlfor a<Documentation>or<Homepage>tag.
- Registry Fallback:
- Fetch the repository URL from the IPM registry metadata.
Benefits to the Ecosystem
- Portability: Encourages developers to ship documentation with their code (via CSP), making it available in air-gapped or offline environments.
- Live Documentation: By using CSP pages, documentation can be "live"—reflecting the actual configuration and version of the module installed in that specific na# 6. Proposed
module.xmlExtension
We could optionally introduce a standard attribute to make this explicit:
<Module>
...
<Documentation class="irisjwt.docs" />
<Documentation url="https://docs.myproject.com" />
</Module>
- Dominant language
- ObjectScript
- Stars
- 41
- Forks
- 33
- Avg merge
- 23h 20m
- Merged PRs (30d)
- 29
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from intersystems/ipm
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
intersystems/ipm#1338 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
intersystems/ipm#1241 ·
Maintainers usually reply within 1 day
-
CI checks on IRIS for Health Community 2025.3 failing: license expiredPossibly taken @isc-eneil claimed this 2 days ago. Openbug
intersystems/ipm#1335 · 1 assignee ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
intersystems/ipm#1328 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 53/100
intersystems/ipm#1327 ·
Maintainers usually reply within 1 day
All issues in intersystems/ipm
Similar issues
-
Difficulty 2/5 Under an hour Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
5hyuns/maya-workflow-kit-for-blender#568 ·
Maintainers usually reply within 1 day
-
bug follow-up lane:backlog
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Sanne/incus-spawn#2620 · 1 comment ·
Maintainers usually reply within 1 day
-
builtins good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
good first issue new package
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
wimpysworld/deb-get#2158 ·
Maintainers usually reply within 7 days