Skip to content

Commit

Permalink
Use Courier New bold for monospace outside formulas
Browse files Browse the repository at this point in the history
  • Loading branch information
HeikoTheissen committed Aug 28, 2024
1 parent 76e17ab commit 5daffce
Show file tree
Hide file tree
Showing 19 changed files with 104 additions and 114 deletions.
13 changes: 0 additions & 13 deletions docs/odata-csdl-json/styles/monospace.css

This file was deleted.

13 changes: 13 additions & 0 deletions docs/odata-csdl-json/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ table {
stroke-width: 2;
}

p code,
li code,
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
td > code {
font-size: 1em;
font-weight: bold;
}

.example p code,
.example li code {
font-style: initial;
Expand Down
13 changes: 0 additions & 13 deletions docs/odata-csdl-xml/styles/monospace.css

This file was deleted.

13 changes: 13 additions & 0 deletions docs/odata-csdl-xml/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ table {
stroke-width: 2;
}

p code,
li code,
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
td > code {
font-size: 1em;
font-weight: bold;
}

.example p code,
.example li code {
font-style: initial;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@
</style>
<link rel="stylesheet" href="styles/markdown-styles-v1.7.3b.css" />
<link rel="stylesheet" href="styles/odata.css" />
<link rel="stylesheet" href="styles/monospace.css" />
<script type="text/javascript">
MathJax = {startup: {
ready() {
Expand Down
13 changes: 0 additions & 13 deletions docs/odata-data-aggregation-ext/styles/monospace.css

This file was deleted.

13 changes: 13 additions & 0 deletions docs/odata-data-aggregation-ext/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ table {
stroke-width: 2;
}

p code,
li code,
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
td > code {
font-size: 1em;
font-weight: bold;
}

.example p code,
.example li code {
font-style: initial;
Expand Down
13 changes: 0 additions & 13 deletions docs/odata-json-format/styles/monospace.css

This file was deleted.

13 changes: 13 additions & 0 deletions docs/odata-json-format/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ table {
stroke-width: 2;
}

p code,
li code,
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
td > code {
font-size: 1em;
font-weight: bold;
}

.example p code,
.example li code {
font-style: initial;
Expand Down
13 changes: 0 additions & 13 deletions docs/odata-protocol/styles/monospace.css

This file was deleted.

13 changes: 13 additions & 0 deletions docs/odata-protocol/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ table {
stroke-width: 2;
}

p code,
li code,
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
td > code {
font-size: 1em;
font-weight: bold;
}

.example p code,
.example li code {
font-style: initial;
Expand Down
13 changes: 0 additions & 13 deletions docs/odata-temporal-ext/styles/monospace.css

This file was deleted.

13 changes: 13 additions & 0 deletions docs/odata-temporal-ext/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ table {
stroke-width: 2;
}

p code,
li code,
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
td > code {
font-size: 1em;
font-weight: bold;
}

.example p code,
.example li code {
font-style: initial;
Expand Down
13 changes: 0 additions & 13 deletions docs/odata-url-conventions/styles/monospace.css

This file was deleted.

13 changes: 13 additions & 0 deletions docs/odata-url-conventions/styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ table {
stroke-width: 2;
}

p code,
li code,
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
td > code {
font-size: 1em;
font-weight: bold;
}

.example p code,
.example li code {
font-style: initial;
Expand Down
7 changes: 0 additions & 7 deletions lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ proc.stdout.pipe(«HTML file»);
new Number("odata-data-aggregation-ext").build(proc.stdin);
```

The HTML file uses CSS stylesheets contained in the [`docs/*/styles`](../docs/odata-data-aggregation-ext/styles) subfolder in order to render keywords in the same font (MathJax Typewriter) whether they occur standalone or in a formula:

| Keyword occurs | Markdown source | Rendered result |
| ------------------ | ---------------------------------- | ------------------------------------ |
| standalone | ``The `aggregate` transformation`` | The ${\tt aggregate}$ transformation |
| in MathJax formula | `${\tt aggregate}(α{\tt\ as\ }D)$` | ${\tt aggregate}(α{\tt\ as\ }D)$ |

A monospaced font (Courier New) is used for OData requests and their JSON or XML responses.

[`npm start`](server.js) starts a web server that serves such HTML files and the static `.css` files without writing intermediate files. This allows authors to see the effects of every change to the source folder in the working tree after saving the source files which triggers a browser auto-refresh.
Expand Down
2 changes: 0 additions & 2 deletions odata-data-aggregation-ext/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,3 @@ additionalArtifacts:
description:
This specification adds basic grouping and aggregation functionality (e.g. sum, min, and max)
to the Open Data Protocol (OData) without changing any of the base principles of OData.
pandocOptions:
-c: styles/monospace.css
13 changes: 0 additions & 13 deletions styles/monospace.css

This file was deleted.

13 changes: 13 additions & 0 deletions styles/odata.css
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,19 @@ table {
stroke-width: 2;
}

p code,
li code,
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
td > code {
font-size: 1em;
font-weight: bold;
}

.example p code,
.example li code {
font-style: initial;
Expand Down

0 comments on commit 5daffce

Please sign in to comment.