Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Elastic.Documentation.Site/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
node_modules/
_static/styles.css
_static/styles.css.map
_static/*.ttf
_static/*.woff
_static/*.woff2
_static/*.js
_static/*.js.map
203 changes: 203 additions & 0 deletions src/Elastic.Documentation.Site/Assets/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,206 @@
font-weight: 600;
font-display: swap;
}

/* math fonts */

@font-face {
font-display: block;
font-family: KaTeX_AMS;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_AMS-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_AMS-Regular.woff) format('woff'),
url(./fonts/KaTeX_AMS-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Caligraphic;
font-style: normal;
font-weight: 700;
src:
url(./fonts/KaTeX_Caligraphic-Bold.woff2) format('woff2'),
url(./fonts/KaTeX_Caligraphic-Bold.woff) format('woff'),
url(./fonts/KaTeX_Caligraphic-Bold.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Caligraphic;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_Caligraphic-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_Caligraphic-Regular.woff) format('woff'),
url(./fonts/KaTeX_Caligraphic-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Fraktur;
font-style: normal;
font-weight: 700;
src:
url(./fonts/KaTeX_Fraktur-Bold.woff2) format('woff2'),
url(./fonts/KaTeX_Fraktur-Bold.woff) format('woff'),
url(./fonts/KaTeX_Fraktur-Bold.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Fraktur;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_Fraktur-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_Fraktur-Regular.woff) format('woff'),
url(./fonts/KaTeX_Fraktur-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Main;
font-style: normal;
font-weight: 700;
src:
url(./fonts/KaTeX_Main-Bold.woff2) format('woff2'),
url(./fonts/KaTeX_Main-Bold.woff) format('woff'),
url(./fonts/KaTeX_Main-Bold.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Main;
font-style: italic;
font-weight: 700;
src:
url(./fonts/KaTeX_Main-BoldItalic.woff2) format('woff2'),
url(./fonts/KaTeX_Main-BoldItalic.woff) format('woff'),
url(./fonts/KaTeX_Main-BoldItalic.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Main;
font-style: italic;
font-weight: 400;
src:
url(./fonts/KaTeX_Main-Italic.woff2) format('woff2'),
url(./fonts/KaTeX_Main-Italic.woff) format('woff'),
url(./fonts/KaTeX_Main-Italic.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Main;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_Main-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_Main-Regular.woff) format('woff'),
url(./fonts/KaTeX_Main-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Math;
font-style: italic;
font-weight: 700;
src:
url(./fonts/KaTeX_Math-BoldItalic.woff2) format('woff2'),
url(./fonts/KaTeX_Math-BoldItalic.woff) format('woff'),
url(./fonts/KaTeX_Math-BoldItalic.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Math;
font-style: italic;
font-weight: 400;
src:
url(./fonts/KaTeX_Math-Italic.woff2) format('woff2'),
url(./fonts/KaTeX_Math-Italic.woff) format('woff'),
url(./fonts/KaTeX_Math-Italic.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_SansSerif;
font-style: normal;
font-weight: 700;
src:
url(./fonts/KaTeX_SansSerif-Bold.woff2) format('woff2'),
url(./fonts/KaTeX_SansSerif-Bold.woff) format('woff'),
url(./fonts/KaTeX_SansSerif-Bold.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_SansSerif;
font-style: italic;
font-weight: 400;
src:
url(./fonts/KaTeX_SansSerif-Italic.woff2) format('woff2'),
url(./fonts/KaTeX_SansSerif-Italic.woff) format('woff'),
url(./fonts/KaTeX_SansSerif-Italic.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_SansSerif;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_SansSerif-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_SansSerif-Regular.woff) format('woff'),
url(./fonts/KaTeX_SansSerif-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Script;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_Script-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_Script-Regular.woff) format('woff'),
url(./fonts/KaTeX_Script-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Size1;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_Size1-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_Size1-Regular.woff) format('woff'),
url(./fonts/KaTeX_Size1-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Size2;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_Size2-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_Size2-Regular.woff) format('woff'),
url(./fonts/KaTeX_Size2-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Size3;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_Size3-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_Size3-Regular.woff) format('woff'),
url(./fonts/KaTeX_Size3-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Size4;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_Size4-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_Size4-Regular.woff) format('woff'),
url(./fonts/KaTeX_Size4-Regular.ttf) format('truetype');
}
@font-face {
font-display: block;
font-family: KaTeX_Typewriter;
font-style: normal;
font-weight: 400;
src:
url(./fonts/KaTeX_Typewriter-Regular.woff2) format('woff2'),
url(./fonts/KaTeX_Typewriter-Regular.woff) format('woff'),
url(./fonts/KaTeX_Typewriter-Regular.ttf) format('truetype');
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 0 additions & 1 deletion src/Elastic.Documentation.Site/Assets/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { initTocNav } from './toc-nav'
import 'htmx-ext-head-support'
import 'htmx-ext-preload'
import katex from 'katex'
import 'katex/dist/katex.min.css'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this. It created a main.css file that wasn't even imported.

import { $, $$ } from 'select-dom'
import { UAParser } from 'ua-parser-js'

Expand Down
Loading
Loading