Skip to content

Commit

Permalink
Add byte-order mark to docs/*/*.md file (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen authored Jul 7, 2023
1 parent 8d5a849 commit 10245f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


![OASIS Logo](https://docs.oasis-open.org/templates/OASISLogo-v3.0.png)

-------
Expand Down
2 changes: 1 addition & 1 deletion lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ The [`pdf.js`](pdf.js) module uses an embedded browser ([`puppeteer`](https://gi

The following scripts can be executed manually or as part of a GitHub Action:

- [`npm run build`](build.js) runs the conversion and writes the Markdown output as well as the HTML output into the [`doc/*`](../doc/odata-data-aggregation-ext) folder.
- [`npm run build`](build.js) runs the conversion and writes the Markdown output as well as the HTML output into the [`doc/*`](../doc/odata-data-aggregation-ext) folder. The Markdown file starts with a byte-order mark (`EF BB BF`) so that it is recognized as UTF-8 when loaded from github.io.
- [`npm run pdf`](build-pdf.mjs) runs the PDF conversion and writes the PDF document into the [`doc/*`](../doc/odata-data-aggregation-ext) folder.
- [`npm test`](../test) runs a test suite.

Expand Down
1 change: 1 addition & 0 deletions lib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ fs.readdirSync(__dirname + "/..", { withFileTypes: true }).forEach(function (
__dirname + "/../docs/" + doc.name + "/" + doc.name + ".html"
)
);
md.write(Buffer.of(0xEF, 0xBB, 0xBF));
new Number(doc.name)
.build(
new PassThrough()
Expand Down

0 comments on commit 10245f9

Please sign in to comment.