From 0a67729b8b247ab6b8c6eda420b06aca719ed484 Mon Sep 17 00:00:00 2001 From: D024504 Date: Thu, 6 Jul 2023 13:00:59 +0200 Subject: [PATCH 1/2] Add byte-order mark to docs/*/*.md file --- docs/odata-data-aggregation-ext/odata-data-aggregation-ext.md | 2 +- lib/build.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/odata-data-aggregation-ext/odata-data-aggregation-ext.md b/docs/odata-data-aggregation-ext/odata-data-aggregation-ext.md index 1e60c5cb7..2ae70b55a 100644 --- a/docs/odata-data-aggregation-ext/odata-data-aggregation-ext.md +++ b/docs/odata-data-aggregation-ext/odata-data-aggregation-ext.md @@ -1,4 +1,4 @@ - + ![OASIS Logo](https://docs.oasis-open.org/templates/OASISLogo-v3.0.png) ------- diff --git a/lib/build.js b/lib/build.js index ccba96dd8..4c2f36ec0 100644 --- a/lib/build.js +++ b/lib/build.js @@ -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() From d4a2eb0c3b351d0a3128584cc9d745f97e36cdd3 Mon Sep 17 00:00:00 2001 From: D024504 Date: Thu, 6 Jul 2023 13:11:51 +0200 Subject: [PATCH 2/2] Explanation --- lib/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/README.md b/lib/README.md index ef1a02cc1..fc96a9e76 100644 --- a/lib/README.md +++ b/lib/README.md @@ -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.