Skip to content

docs: Restructure modules as a section and add registry steps#7030

Open
christopher-hakkaart wants to merge 9 commits intonextflow-io:masterfrom
christopher-hakkaart:docs-modules-guide
Open

docs: Restructure modules as a section and add registry steps#7030
christopher-hakkaart wants to merge 9 commits intonextflow-io:masterfrom
christopher-hakkaart:docs-modules-guide

Conversation

@christopher-hakkaart
Copy link
Copy Markdown
Collaborator

@christopher-hakkaart christopher-hakkaart commented Apr 14, 2026

  • Create a top-level section for modules in the sidebar
  • Split into a similar structure to plugins
  • Create clear guided pages for shared modules
  • Add page about registry

Signed-off-by: Christopher Hakkaart <christopher.hakkaart@gmail.com>
Signed-off-by: Christopher Hakkaart <christopher.hakkaart@gmail.com>
Signed-off-by: Christopher Hakkaart <christopher.hakkaart@gmail.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 14, 2026

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit e9f9551
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69dfb56af6bc4500092bcfe0
😎 Deploy Preview https://deploy-preview-7030--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Christopher Hakkaart <christopher.hakkaart@gmail.com>
Signed-off-by: Christopher Hakkaart <christopher.hakkaart@gmail.com>
christopher-hakkaart and others added 3 commits April 15, 2026 10:32
Signed-off-by: Christopher Hakkaart <christopher.hakkaart@gmail.com>
Signed-off-by: Christopher Hakkaart <christopher.hakkaart@gmail.com>
@christopher-hakkaart christopher-hakkaart marked this pull request as ready for review April 14, 2026 23:56
@christopher-hakkaart christopher-hakkaart requested a review from a team as a code owner April 14, 2026 23:56
Comment thread docs/reference/cli.md
: Verifies that all required files are present (`main.nf`, `meta.yml`, `README.md`) and that the module spec contains all required fields (name, version, description, license).

: **Examples:**
**Examples**
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm divided on whether it's better to show all the module CLI examples together or separately per subcommand. I'm wondering if we should just not show them here at all and incorporate them into the reference docs. Or, maybe your current approach would work better if we just trim down the examples

What do you think?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I wasn't particularly happy with this either. Examples shown under the subcommands break up the long list, but they also disrupt the page's flow. However, modules were the only command with examples under subcommands, too, so I moved them to the bottom to keep every section on the page the same structure.

It's another discussion, but I've been thinking about a shift to each CLI option having its own page, similar to https://cli.github.com/manual/gh

I like being able to command f things on a page, but this could break up the page, and we could do something interesting with lists or cards, and eventually automations to update.

In the meantime, we can limit the examples to avoid overload.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think having a separate page per command would be smart. For now I will just trim the examples

Comment thread docs/index.md
Comment on lines +90 to +99
```{toctree}
:hidden:
:caption: Modules
:maxdepth: 1

modules/modules
modules/using-modules
modules/developing-modules
modules/module-registry
```
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is the right direction, since modules have effectively become first-class entities like pipelines via nextflow module run

To avoid confusion, I think I will try to remove or significantly trim down the existing Modules page. The Scripts page already has a blurb with links to workflows / processes / modules under "Script definitions", so we could always expand that section if needed. Let me see how it works out

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants