Skip to content

Commit 76ff7de

Browse files
elukoyanovVorobeyko
authored andcommitted
Docs/remove jsdoc extra line (#2068)
* docs: remove prepending line in JSDoc generator * definitions: update generated types
1 parent 99b0f93 commit 76ff7de

File tree

2 files changed

+209
-474
lines changed

2 files changed

+209
-474
lines changed

runio.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ module.exports = {
5858
const placeholders = partials.map(file => `{{> ${path.basename(file, '.mustache')} }}`);
5959
const templates = partials
6060
.map(file => fs.readFileSync(`docs/webapi/${file}`).toString())
61-
.map(template => template.replace(/^/gm, ' * ').replace(/^/, '\n'));
61+
.map(template => template.replace(/^/gm, ' * ').replace(/^/, '\n').replace(/\s*\* /, ''));
6262

6363
for (const file of files) {
6464
const name = path.basename(file, '.js');
@@ -83,7 +83,7 @@ module.exports = {
8383
const placeholders = partials.map(file => `{{> ${path.basename(file, '.mustache')} }}`);
8484
const templates = partials
8585
.map(file => fs.readFileSync(`docs/webapi/${file}`).toString())
86-
.map(template => template.replace(/^/gm, ' * ').replace(/^/, '\n'));
86+
.map(template => template.replace(/^/gm, ' * ').replace(/^/, '\n').replace(/\s*\* /, ''));
8787

8888
const sharedPartials = fs.readdirSync('docs/shared').filter(f => path.extname(f) === '.mustache');
8989
const sharedPlaceholders = sharedPartials.map(file => `{{ ${path.basename(file, '.mustache')} }}`);

0 commit comments

Comments
 (0)