Skip to content

Commit 2254789

Browse files
authored
update links to specifications in Introduction and Topics sections (#377)
* update links to specifications in Introduction and Topics sections * update links from http to https
1 parent b22539f commit 2254789

13 files changed

+25
-25
lines changed

src/introduction/basic-concepts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ The CWL specification allows for implementations to provide extra
138138
functionality and specify prerequisites to workflows through *requirements*.
139139
There are many requirements defined in the CWL specification, for instance:
140140

141-
- `InlineJavascriptWorkflow` - enables JavaScript in expressions.
142-
- `SubworkflowFeatureRequirement` - enables nested workflows.
143-
- `InitialWorkDirRequirement` - controls staging files in the input directory.
141+
- [`InlineJavascriptWorkflow`](https://w3id.org/cwl/Workflow.html#InlineJavascriptRequirement) - enables JavaScript in expressions.
142+
- [`SubworkflowFeatureRequirement`](https://w3id.org/cwl/Workflow.html#SubworkflowFeatureRequirement) - enables nested workflows.
143+
- [`InitialWorkDirRequirement`](https://w3id.org/cwl/Workflow.html#InitialWorkDirRequirement) - controls staging files in the input directory.
144144

145145
Some CWL runners may provide requirements that are not in the specification.
146146
For example, GPU requirements are supported in `cwltool` through the

src/topics/best-practices.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ all are required.
3434
# other s: declarations
3535
```
3636

37-
For more examples of providing metadata within CWL descriptions, see
37+
For more examples of providing metadata within CWL descriptions, see
3838
[the Metadata and Authorship section of this User Guide](../topics/metadata-and-authorship.md).
3939

4040
- Include [attribution information][license-example] for the author(s) of
4141
the CWL tool or workflow description. Use unambiguous identifiers like
4242
[ORCID][orcid].
4343

4444
- In tool descriptions, list dependencies using short name(s) under
45-
`SoftwareRequirement`.
45+
[`SoftwareRequirement`](https://w3id.org/cwl/CommandLineTool.html#SoftwareRequirement).
4646

4747
- Include [SciCrunch][scicrunch] identifiers for dependencies in
4848
`https://identifiers.org/rrid/RRID:SCR_NNNNNN` format.
@@ -53,7 +53,7 @@ all are required.
5353
`result`, `input`, `output`, and so forth.
5454

5555
- In tool descriptions, include a list of version(s) of the tool that are
56-
known to work with this description under `SoftwareRequirement`.
56+
known to work with this description under [`SoftwareRequirement`](https://w3id.org/cwl/CommandLineTool.html#SoftwareRequirement).
5757

5858
- `format` should be specified for all input and output `File`s.
5959
Bioinformatics tools should use format identifiers from [EDAM][edam-example].
@@ -66,7 +66,7 @@ all are required.
6666
- Mark all input and output `File`s that are read from or written to in a
6767
streaming compatible way (only once, no random-access), as `streamable: true`.
6868

69-
- Each `CommandLineTool` description should focus on a single operation
69+
- Each [`CommandLineTool`](https://w3id.org/cwl/CommandLineTool.html#CommandLineTool) description should focus on a single operation
7070
only, even if the (sub)command is capable of more. Don't overcomplicate your
7171
tool descriptions with options that you don't need or use.
7272

src/topics/creating-files-at-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Sometimes you need to create a file on the fly from input parameters,
44
such as tools that expect to read their input configuration from a file
55
rather than the command line parameters, or need a small wrapper shell script.
66

7-
To generate such files, we can use the `InitialWorkDirRequirement`.
7+
To generate such files, we can use the [`InitialWorkDirRequirement`](https://w3id.org/cwl/CommandLineTool.html#InitialWorkDirRequirement).
88

99
```{literalinclude} /_includes/cwl/creating-files-at-runtime/createfile.cwl
1010
:language: cwl

src/topics/custom-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ requirements:
7474
```
7575

7676
Note also that the author of this CWL description has also included
77-
`ResourceRequirement`s, specifying the minimum amount of RAM and number of cores
77+
[`ResourceRequirement`](https://w3id.org/cwl/CommandLineTool.html#ResourceRequirement)s, specifying the minimum amount of RAM and number of cores
7878
required for the tool to run successfully, as well as details of the version of
7979
the software that the description was written for and other useful metadata.
8080
These features are discussed further in other chapters of this user guide.

src/topics/expression-tool.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ meant to be used as a way to isolate complex JavaScript expressions
66
that need to operate on input data and produce some result as output.
77

88
Similar to the command-line tool it requires `inputs` and `outputs`.
9-
But instead of `baseCommand`, it requires an `expression` attribute.
9+
But instead of `baseCommand`, it requires an [`expression`](https://w3id.org/cwl/CommandLineTool.html#Expressions_(Optional)) attribute.
1010

1111
% TODO: Fix the missing link the graph below. We cannot have
1212
% it here as this file is included in two other files.
@@ -64,7 +64,7 @@ expression: |
6464

6565
```{note}
6666
67-
We had to use an `InlineJavascriptRequirement` as our expression
67+
We had to use an [`InlineJavascriptRequirement`](https://w3id.org/cwl/CommandLineTool.html#InlineJavascriptRequirement) as our expression
6868
contains a JavaScript call in `.toUpperCase()`. This means to tools
6969
using the expression tool that JavaScript is a requirement.
7070
```

src/topics/expressions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Expressions
22

33
If you need to manipulate input parameters, include the requirement
4-
`InlineJavascriptRequirement` and then anywhere a parameter reference is
4+
[`InlineJavascriptRequirement`](https://w3id.org/cwl/CommandLineTool.html#InlineJavascriptRequirement) and then anywhere a parameter reference is
55
legal you can provide a fragment of Javascript that will be evaluated by
66
the CWL runner.
77

@@ -80,7 +80,7 @@ only in certain fields. These are:
8080
- From [CommandOutputBinding](https://www.commonwl.org/v1.0/CommandLineTool.html#CommandOutputBinding)
8181
- `glob`
8282
- `outputEval`
83-
- From `Workflow`
83+
- From [`Workflow`](https://w3id.org/cwl/Workflow.html)
8484
- From [InputParameter](https://www.commonwl.org/v1.0/Workflow.html#InputParameter) and [WorkflowOutputParameter](https://www.commonwl.org/v1.0/Workflow.html#WorkflowOutputParameter)
8585
- `format`
8686
- `secondaryFiles`
@@ -115,7 +115,7 @@ only in certain fields. These are:
115115

116116
## Using External Libraries and Inline JavaScript Code with `expressionLib`
117117

118-
The requirement `InlineJavascriptRequirement` supports an `expressionLib` attribute
118+
The requirement [`InlineJavascriptRequirement`](https://w3id.org/cwl/CommandLineTool.html#InlineJavascriptRequirement) supports an `expressionLib` attribute
119119
that allows users to load external JavaScript files, or to provide inline JavaScript
120120
code.
121121

src/topics/file-formats.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# File Formats
22

3-
Tools and workflows can take `File` types as input and produce them as output.
4-
We also recommend indicating the format for `File` types. This helps document
3+
Tools and workflows can take [`File`](https://w3id.org/cwl/CommandLineTool.html#File) types as input and produce them as output.
4+
We also recommend indicating the format for [`File`](https://w3id.org/cwl/CommandLineTool.html#File) types. This helps document
55
for others how to use your tool while allowing you to do some simple
66
type-checking when creating parameter files.
77

src/topics/inputs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ the tools aren't accidentally accessing files that were not explicitly
6767
specified
6868
```
6969

70-
The field `inputBinding` is optional and indicates whether and how the
70+
The field [`inputBinding`](https://w3id.org/cwl/CommandLineTool.html#Input_binding) is optional and indicates whether and how the
7171
input parameter should appear on the tool's command line. If
7272
`inputBinding` is missing, the parameter does not appear on the command
7373
line. Let's look at each example in detail.

src/topics/outputs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ And now invoke `cwltool` with the tool description and the input object on the c
4848
:working-directory: src/_includes/cwl/outputs/
4949
```
5050

51-
The field `outputBinding` describes how to set the value of each
51+
The field [`outputBinding`](https://w3id.org/cwl/CommandLineTool.html#CommandOutputBinding) describes how to set the value of each
5252
output parameter.
5353

5454
```cwl
@@ -59,12 +59,12 @@ outputs:
5959
glob: hello.txt
6060
```
6161

62-
The `glob` field consists of the name of a file in the output directory.
62+
The [`glob`](https://w3id.org/cwl/CommandLineTool.html#CommandOutputBinding) field consists of the name of a file in the output directory.
6363
If you don't know name of the file in advance, you can use a wildcard pattern like `glob: '*.txt'`.
6464

6565
## Capturing Standard Output
6666

67-
To capture a tool's standard output stream, add the `stdout` field with
67+
To capture a tool's standard output stream, add the [`stdout`](https://w3id.org/cwl/CommandLineTool.html#stdout) field with
6868
the name of the file where the output stream should go. Then add `type:
6969
stdout` on the corresponding output parameter.
7070

src/topics/parameter-references.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ You can only use parameter references in certain fields. These are:
7777
- From [CommandOutputBinding](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandOutputBinding)
7878
- `glob`
7979
- `outputEval`
80-
- From `Workflow`
80+
- From [`Workflow`](https://w3id.org/cwl/Workflow.html)
8181
- From [InputParameter](http://www.commonwl.org/v1.0/Workflow.html#InputParameter) and [WorkflowOutputParameter](http://www.commonwl.org/v1.0/Workflow.html#WorkflowOutputParameter)
8282
- `format`
8383
- `secondaryFiles`

0 commit comments

Comments
 (0)