Skip to content

Commit aa8f418

Browse files
authored
Add pages navigation (#447)
* Add pages navigation * ok * Enhance nav * Fine tuning * style * Revert to sessionStorage * Lighter gray * Enhance * Refactor and fix * cleanup * fix spacing * Split into multiple views
1 parent e94971e commit aa8f418

25 files changed

+406
-123
lines changed

docs/docset.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,11 @@ toc:
105105
children:
106106
- file: first-page.md
107107
- file: second-page.md
108+
- folder: deeply-nested
109+
children:
110+
- file: index.md
111+
- file: foo.md
112+
- file: bar.md
113+
- folder: baz
114+
children:
115+
- file: qux.md

docs/testing/deeply-nested/bar.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Bar

docs/testing/deeply-nested/baz/qux.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Qux

docs/testing/deeply-nested/foo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Foo

docs/testing/deeply-nested/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Deeply Nested

src/Elastic.Markdown/Assets/fonts.css

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
1+
@font-face {
2+
font-family: "Inter";
3+
src: url("./fonts/InterVariable.woff2") format("woff2");
4+
font-display: swap;
5+
}
26

7+
@font-face {
8+
font-family: "Mier B";
9+
src: url("./fonts/MierB-Regular.woff2") format("woff2");
10+
font-weight: normal;
11+
font-display: swap;
12+
}
13+
14+
@font-face {
15+
font-family: "Mier B";
16+
src: url("./fonts/MierB-Bold.woff2") format("woff2");
17+
font-weight: bold;
18+
font-display: swap;
19+
}
320

421
@font-face {
522
font-family: "Mier B";
6-
src: url("./fonts/MierB-Regular.woff2") format("woff2")
23+
src: url("./fonts/MierB-Demi.woff2") format("woff2");
24+
font-weight: 600;
25+
font-display: swap;
726
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

src/Elastic.Markdown/Assets/hljs.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import {mergeHTMLPlugin} from "./hljs-merge-html-plugin";
2+
import hljs from "highlight.js";
3+
4+
hljs.registerLanguage('apiheader', function() {
5+
return {
6+
case_insensitive: true, // language is case-insensitive
7+
keywords: 'GET POST PUT DELETE HEAD OPTIONS PATCH',
8+
contains: [
9+
hljs.HASH_COMMENT_MODE,
10+
{
11+
className: "subst", // (pathname: path1/path2/dothis) color #ab5656
12+
begin: /(?<=(?:\/|GET |POST |PUT |DELETE |HEAD |OPTIONS |PATH))[^?\n\r\/]+/,
13+
}
14+
], }
15+
})
16+
17+
hljs.addPlugin(mergeHTMLPlugin);
18+
19+
export function initHighlight() {
20+
hljs.highlightAll();
21+
}

0 commit comments

Comments
 (0)