You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/node_modules/@stdlib/_tools/docs/www/readme-database/README.md
+22
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ The function accepts the following `options`:
52
52
-**dir**: root directory from which to search for package READMEs. May be either an absolute path or a path relative to the current working directory. Default: current working directory.
53
53
-**pattern**: glob pattern used to find packages. Default: `'**/package.json'` (note: pattern **must** end with `package.json`).
54
54
-**ignore**: list of glob patterns used to exclude matches.
55
+
-**version**: semantic versioning number or branch name.
55
56
56
57
To search from an alternative directory, set the `dir` option.
57
58
@@ -110,6 +111,26 @@ function done( error, db ) {
110
111
}
111
112
```
112
113
114
+
To have internal URLs of the READMEs link to the correct version of the documentation, set the `version` option.
115
+
116
+
<!-- run-disable -->
117
+
118
+
119
+
```javascript
120
+
var opts = {
121
+
'version':'0.0.87'
122
+
};
123
+
124
+
create( opts, done );
125
+
126
+
functiondone( error, db ) {
127
+
if ( error ) {
128
+
throw error;
129
+
}
130
+
console.log( JSON.stringify( db ) );
131
+
}
132
+
```
133
+
113
134
</section>
114
135
115
136
<!-- /.usage -->
@@ -182,6 +203,7 @@ Options:
182
203
-V, --version Print the package version.
183
204
--pattern pattern Inclusion glob pattern.
184
205
--ignore pattern Exclusion glob pattern.
206
+
--semver version Semantic versioning number or branch name.
Copy file name to clipboardexpand all lines: lib/node_modules/@stdlib/_tools/docs/www/readme-fragment-file-tree/README.md
+21
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,7 @@ The function accepts the following `options`:
52
52
-**dir**: root directory from which to search for package READMEs. May be either an absolute path or a path relative to the current working directory. Default: current working directory.
53
53
-**pattern**: glob pattern used to find packages. Default: `'**/package.json'` (note: pattern **must** end with `package.json`).
54
54
-**ignore**: list of glob patterns used to exclude matches.
55
+
-**version**: semantic versioning number or branch name.
55
56
56
57
To search from an alternative directory, set the `dir` option.
57
58
@@ -110,6 +111,26 @@ function done( error ) {
110
111
}
111
112
```
112
113
114
+
To have internal URLs of the READMEs link to the correct version of the documentation, set the `version` option.
0 commit comments