Skip to content

Commit

Permalink
Merge pull request #2384 from mirpedrol/subworkflows-lint
Browse files Browse the repository at this point in the history
This will hopefully generate lint API docs 🤞
  • Loading branch information
mirpedrol authored Jul 28, 2023
2 parents ab34a79 + 3878f44 commit 13f331e
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 25 deletions.
3 changes: 2 additions & 1 deletion docs/api/_src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
pipeline_lint_tests/index.rst
module_lint_tests/index.rst
subworkflow_lint_tests/index.rst
api/index.rst
```

Expand All @@ -17,7 +18,7 @@ This documentation is for the `nf-core/tools` package.

- [Pipeline code lint tests](pipeline_lint_tests/index.md) (run by `nf-core lint`)
- [Module code lint tests](module_lint_tests/index.md) (run by `nf-core modules lint`)
- [Subworkflow code lint tests](subworkflow_lint_test/index.mf) (run by `nf-core subworkflows lint`)
- [Subworkflow code lint tests](subworkflow_lint_tests/index.md) (run by `nf-core subworkflows lint`)
- [nf-core/tools Python package API reference](api/index.md)
- {ref}`genindex`
- {ref}`modindex`
5 changes: 0 additions & 5 deletions docs/api/_src/subworkflow_lint_tests/module_changes.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/api/_src/subworkflow_lint_tests/module_tests.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/api/_src/subworkflow_lint_tests/module_todos.md

This file was deleted.

5 changes: 0 additions & 5 deletions docs/api/_src/subworkflow_lint_tests/module_version.md

This file was deleted.

5 changes: 5 additions & 0 deletions docs/api/_src/subworkflow_lint_tests/subworkflow_changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# subworkflow_changes

```{eval-rst}
.. automethod:: nf_core.subworkflows.lint.SubworkflowLint.subworkflow_changes
```
5 changes: 5 additions & 0 deletions docs/api/_src/subworkflow_lint_tests/subworkflow_tests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# subworkflow_tests

```{eval-rst}
.. automethod:: nf_core.subworkflows.lint.SubworkflowLint.subworkflow_tests
```
5 changes: 5 additions & 0 deletions docs/api/_src/subworkflow_lint_tests/subworkflow_todos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# subworkflow_todos

```{eval-rst}
.. automethod:: nf_core.subworkflows.lint.SubworkflowLint.subworkflow_todos
```
5 changes: 5 additions & 0 deletions docs/api/_src/subworkflow_lint_tests/subworkflow_version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# subworkflow_version

```{eval-rst}
.. automethod:: nf_core.subworkflows.lint.SubworkflowLint.subworkflow_version
```
8 changes: 4 additions & 4 deletions docs/api/make_lint_md.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def make_docs(docs_basedir, lint_tests, md_template):
make_docs(
modules_docs_basedir,
list(
set(nf_core.modules.lint.ModuleLint.get_all_lint_tests(is_pipeline=True)).union(
nf_core.modules.lint.ModuleLint.get_all_lint_tests(is_pipeline=False)
set(nf_core.modules.lint.ModuleLint.get_all_module_lint_tests(is_pipeline=True)).union(
nf_core.modules.lint.ModuleLint.get_all_module_lint_tests(is_pipeline=False)
)
),
"""# {0}
Expand All @@ -62,8 +62,8 @@ def make_docs(docs_basedir, lint_tests, md_template):
make_docs(
subworkflows_docs_basedir,
list(
set(nf_core.subworkflows.lint.SubworkflowLint.get_all_lint_tests(is_pipeline=True)).union(
nf_core.subworkflows.lint.SubworkflowLint.get_all_lint_tests(is_pipeline=False)
set(nf_core.subworkflows.lint.SubworkflowLint.get_all_subworkflow_lint_tests(is_pipeline=True)).union(
nf_core.subworkflows.lint.SubworkflowLint.get_all_subworkflow_lint_tests(is_pipeline=False)
)
),
"""# {0}
Expand Down

0 comments on commit 13f331e

Please sign in to comment.