Skip to content

Commit 933a9f1

Browse files
committed
Fix prep script, and update sidenav instructions
1 parent 0de2b36 commit 933a9f1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

generate-sidenav-html.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ const str = Object.entries(allDomains).sort(([domainA, tagsA], [domainB, tagsB])
3030
// if (tagSortResult !== 0) return tagSortResult;
3131
return domainA.localeCompare(domainB);
3232
})
33-
.map(([id, versions]) => `<a href="{{{ url '/' }}}{{{ version }}}/${id}" class="${versions.join(' ')}">${id}</a>`)
33+
.map(([id, versions]) => ` <a href="{{{ url '/' }}}{{{ version }}}/${id}" class="${versions.join(' ')}">${id}</a>`)
3434
.join('\n');
3535

3636

37-
process.stdout.write(str + '\n');
37+
process.stdout.write('\n' + str + '\n');

prep-tot-protocol-files.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -x
33

44
local_script_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5-
if [ -n $CI ]; then
5+
if [ -n "$CI" ]; then
66
# https://github.com/ChromeDevTools/devtools-protocol/blob/HEAD/.github/workflows/update.yml
77
protocol_repo_path="$local_script_path/.."
88
else

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To add a new protocol version:
3939

4040
## Adding new domains
4141

42-
Run `node generate-sidenav-html.js` and add into `<div id="domains">` in `pages/_includes/shell.hbs`.
42+
Run `npm run prep` then `node generate-sidenav-html.js` and add into `<div id="domains">` in `pages/_includes/shell.hbs`.
4343

4444
## History
4545

0 commit comments

Comments
 (0)