diff --git a/docs/odata-csdl-json/odata-csdl-json.html b/docs/odata-csdl-json/odata-csdl-json.html index 82ef3b23..0c4e20eb 100644 --- a/docs/odata-csdl-json/odata-csdl-json.html +++ b/docs/odata-csdl-json/odata-csdl-json.html @@ -97,10 +97,48 @@ } }}; + +

OASIS Logo


OData Common Schema Definition Language (CSDL) JSON Representation Version 4.02

diff --git a/docs/odata-csdl-json/styles/odata.css b/docs/odata-csdl-json/styles/odata.css index 42b8eaed..12deb343 100644 --- a/docs/odata-csdl-json/styles/odata.css +++ b/docs/odata-csdl-json/styles/odata.css @@ -201,6 +201,21 @@ hr:first-of-type { } @media screen { + body { + position: relative; + } + + #darkmode { + position: absolute; + top: 0; + right: 0; + } + + body.darkmode { + background-color: black; + filter: invert(100%); + } + details:not([open]) > summary { list-style: disclosure-closed; } @@ -211,6 +226,10 @@ hr:first-of-type { } @media print { + #darkmode { + display: none; + } + details > summary { list-style: none; } diff --git a/docs/odata-csdl-xml/odata-csdl-xml.html b/docs/odata-csdl-xml/odata-csdl-xml.html index 58749e62..2e0e2790 100644 --- a/docs/odata-csdl-xml/odata-csdl-xml.html +++ b/docs/odata-csdl-xml/odata-csdl-xml.html @@ -97,10 +97,48 @@ } }}; + +

OASIS Logo


OData Common Schema Definition Language (CSDL) XML Representation Version 4.02

diff --git a/docs/odata-csdl-xml/styles/odata.css b/docs/odata-csdl-xml/styles/odata.css index 42b8eaed..12deb343 100644 --- a/docs/odata-csdl-xml/styles/odata.css +++ b/docs/odata-csdl-xml/styles/odata.css @@ -201,6 +201,21 @@ hr:first-of-type { } @media screen { + body { + position: relative; + } + + #darkmode { + position: absolute; + top: 0; + right: 0; + } + + body.darkmode { + background-color: black; + filter: invert(100%); + } + details:not([open]) > summary { list-style: disclosure-closed; } @@ -211,6 +226,10 @@ hr:first-of-type { } @media print { + #darkmode { + display: none; + } + details > summary { list-style: none; } diff --git a/docs/odata-data-aggregation-ext/odata-data-aggregation-ext.html b/docs/odata-data-aggregation-ext/odata-data-aggregation-ext.html index 0685508b..9e9195fe 100644 --- a/docs/odata-data-aggregation-ext/odata-data-aggregation-ext.html +++ b/docs/odata-data-aggregation-ext/odata-data-aggregation-ext.html @@ -97,10 +97,48 @@ } }}; + +

OASIS Logo


OData Extension for Data Aggregation Version 4.0

diff --git a/docs/odata-data-aggregation-ext/styles/odata.css b/docs/odata-data-aggregation-ext/styles/odata.css index 42b8eaed..12deb343 100644 --- a/docs/odata-data-aggregation-ext/styles/odata.css +++ b/docs/odata-data-aggregation-ext/styles/odata.css @@ -201,6 +201,21 @@ hr:first-of-type { } @media screen { + body { + position: relative; + } + + #darkmode { + position: absolute; + top: 0; + right: 0; + } + + body.darkmode { + background-color: black; + filter: invert(100%); + } + details:not([open]) > summary { list-style: disclosure-closed; } @@ -211,6 +226,10 @@ hr:first-of-type { } @media print { + #darkmode { + display: none; + } + details > summary { list-style: none; } diff --git a/docs/odata-json-format/odata-json-format.html b/docs/odata-json-format/odata-json-format.html index 60fca4ea..ccb5dde0 100644 --- a/docs/odata-json-format/odata-json-format.html +++ b/docs/odata-json-format/odata-json-format.html @@ -97,10 +97,48 @@ } }}; + +

OASIS Logo


OData JSON Format Version 4.02

diff --git a/docs/odata-json-format/styles/odata.css b/docs/odata-json-format/styles/odata.css index 42b8eaed..12deb343 100644 --- a/docs/odata-json-format/styles/odata.css +++ b/docs/odata-json-format/styles/odata.css @@ -201,6 +201,21 @@ hr:first-of-type { } @media screen { + body { + position: relative; + } + + #darkmode { + position: absolute; + top: 0; + right: 0; + } + + body.darkmode { + background-color: black; + filter: invert(100%); + } + details:not([open]) > summary { list-style: disclosure-closed; } @@ -211,6 +226,10 @@ hr:first-of-type { } @media print { + #darkmode { + display: none; + } + details > summary { list-style: none; } diff --git a/docs/odata-protocol/odata-protocol.html b/docs/odata-protocol/odata-protocol.html index bc5d945a..65420b3e 100644 --- a/docs/odata-protocol/odata-protocol.html +++ b/docs/odata-protocol/odata-protocol.html @@ -97,10 +97,48 @@ } }}; + +

OASIS Logo


OData Version 4.02. Part 1: Protocol

diff --git a/docs/odata-protocol/styles/odata.css b/docs/odata-protocol/styles/odata.css index 42b8eaed..12deb343 100644 --- a/docs/odata-protocol/styles/odata.css +++ b/docs/odata-protocol/styles/odata.css @@ -201,6 +201,21 @@ hr:first-of-type { } @media screen { + body { + position: relative; + } + + #darkmode { + position: absolute; + top: 0; + right: 0; + } + + body.darkmode { + background-color: black; + filter: invert(100%); + } + details:not([open]) > summary { list-style: disclosure-closed; } @@ -211,6 +226,10 @@ hr:first-of-type { } @media print { + #darkmode { + display: none; + } + details > summary { list-style: none; } diff --git a/docs/odata-temporal-ext/odata-temporal-ext.html b/docs/odata-temporal-ext/odata-temporal-ext.html index 387a8b4a..76057919 100644 --- a/docs/odata-temporal-ext/odata-temporal-ext.html +++ b/docs/odata-temporal-ext/odata-temporal-ext.html @@ -97,10 +97,48 @@ } }}; + +

OASIS Logo


OData Extension for Temporal Data Version 4.0

diff --git a/docs/odata-temporal-ext/styles/odata.css b/docs/odata-temporal-ext/styles/odata.css index 42b8eaed..12deb343 100644 --- a/docs/odata-temporal-ext/styles/odata.css +++ b/docs/odata-temporal-ext/styles/odata.css @@ -201,6 +201,21 @@ hr:first-of-type { } @media screen { + body { + position: relative; + } + + #darkmode { + position: absolute; + top: 0; + right: 0; + } + + body.darkmode { + background-color: black; + filter: invert(100%); + } + details:not([open]) > summary { list-style: disclosure-closed; } @@ -211,6 +226,10 @@ hr:first-of-type { } @media print { + #darkmode { + display: none; + } + details > summary { list-style: none; } diff --git a/docs/odata-url-conventions/odata-url-conventions.html b/docs/odata-url-conventions/odata-url-conventions.html index 330b689b..d7b27259 100644 --- a/docs/odata-url-conventions/odata-url-conventions.html +++ b/docs/odata-url-conventions/odata-url-conventions.html @@ -97,10 +97,48 @@ } }}; + +

OASIS Logo


OData Version 4.02. Part 2: URL Conventions

diff --git a/docs/odata-url-conventions/styles/odata.css b/docs/odata-url-conventions/styles/odata.css index 42b8eaed..12deb343 100644 --- a/docs/odata-url-conventions/styles/odata.css +++ b/docs/odata-url-conventions/styles/odata.css @@ -201,6 +201,21 @@ hr:first-of-type { } @media screen { + body { + position: relative; + } + + #darkmode { + position: absolute; + top: 0; + right: 0; + } + + body.darkmode { + background-color: black; + filter: invert(100%); + } + details:not([open]) > summary { list-style: disclosure-closed; } @@ -211,6 +226,10 @@ hr:first-of-type { } @media print { + #darkmode { + display: none; + } + details > summary { list-style: none; } diff --git a/lib/pandoc.js b/lib/pandoc.js index 568d7dd3..e0dbc1da 100644 --- a/lib/pandoc.js +++ b/lib/pandoc.js @@ -24,6 +24,14 @@ module.exports = function (options) { } }}; `, + "-V", + `include-before=`, + "-H", + "scripts/darkmode.html", "-F", "lib/md2html.js", ]; diff --git a/scripts/darkmode.html b/scripts/darkmode.html new file mode 100644 index 00000000..0b1b1380 --- /dev/null +++ b/scripts/darkmode.html @@ -0,0 +1,33 @@ + diff --git a/styles/odata.css b/styles/odata.css index 42b8eaed..12deb343 100644 --- a/styles/odata.css +++ b/styles/odata.css @@ -201,6 +201,21 @@ hr:first-of-type { } @media screen { + body { + position: relative; + } + + #darkmode { + position: absolute; + top: 0; + right: 0; + } + + body.darkmode { + background-color: black; + filter: invert(100%); + } + details:not([open]) > summary { list-style: disclosure-closed; } @@ -211,6 +226,10 @@ hr:first-of-type { } @media print { + #darkmode { + display: none; + } + details > summary { list-style: none; }