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
27 changes: 22 additions & 5 deletions docs/_document.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,38 @@
<link rel="stylesheet" href="/css/style.css" type="text/css" />
<link rel="stylesheet" href="/css/shared.css" type="text/css" />
<link rel="stylesheet" href="/css/hljs-github.css" type="text/css" />
<link rel="stylesheet" href="/css/hljs-github-dark.css" type="text/css" />
</head>
<body>
<a href="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/markedjs/marked" class="github-corner" aria-label="View source on Github">
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#202020; color:#fff;" aria-hidden="true">
<svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path>
</svg>
</a>
<div id="container">
<header>
<a href="/">
<img alt="logo" src="/img/logo-black.svg" height="50px" width="50px" />
</a>
<h1>Marked Documentation</h1>
<div class="header-content">
<a href="/">
<img alt="logo" src="/img/logo-black.svg" height="50px" width="50px" />
</a>
<h1>Marked Documentation</h1>
</div>
<button id="theme-toggle" class="theme-toggle" type="button" aria-label="Toggle dark mode">
<svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="4"></circle>
<path d="m12 2 0 2"></path>
<path d="m12 20 0 2"></path>
<path d="m4.93 4.93 1.41 1.41"></path>
<path d="m17.66 17.66 1.41 1.41"></path>
<path d="M2 12h2"></path>
<path d="M20 12h2"></path>
<path d="m6.34 17.66-1.41 1.41"></path>
<path d="m19.07 4.93-1.41 1.41"></path>
</svg>
<span class="text">Dark</span>
</button>
</header>
<div style="display: flex">
<nav>
Expand Down
191 changes: 191 additions & 0 deletions docs/css/hljs-github-dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
/*!
Theme: GitHub Dark
Description: Dark theme for syntax highlighting
Based on GitHub's dark theme colors
*/

/* Dark theme syntax highlighting - Manual dark mode */
[data-theme="dark"] .hljs {
color: #e6edf3;
background: #262c36;
}

[data-theme="dark"] .hljs-doctag,
[data-theme="dark"] .hljs-keyword,
[data-theme="dark"] .hljs-meta .hljs-keyword,
[data-theme="dark"] .hljs-template-tag,
[data-theme="dark"] .hljs-template-variable,
[data-theme="dark"] .hljs-type,
[data-theme="dark"] .hljs-variable.language_ {
color: #ff7b72;
}

[data-theme="dark"] .hljs-title,
[data-theme="dark"] .hljs-title.class_,
[data-theme="dark"] .hljs-title.class_.inherited__,
[data-theme="dark"] .hljs-title.function_ {
color: #d2a8ff;
}

[data-theme="dark"] .hljs-attr,
[data-theme="dark"] .hljs-attribute,
[data-theme="dark"] .hljs-literal,
[data-theme="dark"] .hljs-meta,
[data-theme="dark"] .hljs-number,
[data-theme="dark"] .hljs-operator,
[data-theme="dark"] .hljs-variable,
[data-theme="dark"] .hljs-selector-attr,
[data-theme="dark"] .hljs-selector-class,
[data-theme="dark"] .hljs-selector-id {
color: #79c0ff;
}

[data-theme="dark"] .hljs-regexp,
[data-theme="dark"] .hljs-string {
color: #a5d6ff;
}

[data-theme="dark"] .hljs-built_in,
[data-theme="dark"] .hljs-symbol {
color: #ffa657;
}

[data-theme="dark"] .hljs-comment,
[data-theme="dark"] .hljs-code,
[data-theme="dark"] .hljs-formula {
color: #8b949e;
}

[data-theme="dark"] .hljs-name,
[data-theme="dark"] .hljs-quote,
[data-theme="dark"] .hljs-selector-tag,
[data-theme="dark"] .hljs-selector-pseudo {
color: #7ee787;
}

[data-theme="dark"] .hljs-subst {
color: #e6edf3;
}

[data-theme="dark"] .hljs-section {
color: #1f6feb;
font-weight: bold;
}

[data-theme="dark"] .hljs-bullet {
color: #f2cc60;
}

[data-theme="dark"] .hljs-emphasis {
color: #e6edf3;
font-style: italic;
}

[data-theme="dark"] .hljs-strong {
color: #e6edf3;
font-weight: bold;
}

[data-theme="dark"] .hljs-addition {
color: #aff5b4;
background-color: #033a16;
}

[data-theme="dark"] .hljs-deletion {
color: #ffdcd7;
background-color: #67060c;
}

/* Dark theme syntax highlighting - System preference auto mode */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .hljs {
color: #e6edf3;
background: #262c36;
}

:root:not([data-theme="light"]) .hljs-doctag,
:root:not([data-theme="light"]) .hljs-keyword,
:root:not([data-theme="light"]) .hljs-meta .hljs-keyword,
:root:not([data-theme="light"]) .hljs-template-tag,
:root:not([data-theme="light"]) .hljs-template-variable,
:root:not([data-theme="light"]) .hljs-type,
:root:not([data-theme="light"]) .hljs-variable.language_ {
color: #ff7b72;
}

:root:not([data-theme="light"]) .hljs-title,
:root:not([data-theme="light"]) .hljs-title.class_,
:root:not([data-theme="light"]) .hljs-title.class_.inherited__,
:root:not([data-theme="light"]) .hljs-title.function_ {
color: #d2a8ff;
}

:root:not([data-theme="light"]) .hljs-attr,
:root:not([data-theme="light"]) .hljs-attribute,
:root:not([data-theme="light"]) .hljs-literal,
:root:not([data-theme="light"]) .hljs-meta,
:root:not([data-theme="light"]) .hljs-number,
:root:not([data-theme="light"]) .hljs-operator,
:root:not([data-theme="light"]) .hljs-variable,
:root:not([data-theme="light"]) .hljs-selector-attr,
:root:not([data-theme="light"]) .hljs-selector-class,
:root:not([data-theme="light"]) .hljs-selector-id {
color: #79c0ff;
}

:root:not([data-theme="light"]) .hljs-regexp,
:root:not([data-theme="light"]) .hljs-string {
color: #a5d6ff;
}

:root:not([data-theme="light"]) .hljs-built_in,
:root:not([data-theme="light"]) .hljs-symbol {
color: #ffa657;
}

:root:not([data-theme="light"]) .hljs-comment,
:root:not([data-theme="light"]) .hljs-code,
:root:not([data-theme="light"]) .hljs-formula {
color: #8b949e;
}

:root:not([data-theme="light"]) .hljs-name,
:root:not([data-theme="light"]) .hljs-quote,
:root:not([data-theme="light"]) .hljs-selector-tag,
:root:not([data-theme="light"]) .hljs-selector-pseudo {
color: #7ee787;
}

:root:not([data-theme="light"]) .hljs-subst {
color: #e6edf3;
}

:root:not([data-theme="light"]) .hljs-section {
color: #1f6feb;
font-weight: bold;
}

:root:not([data-theme="light"]) .hljs-bullet {
color: #f2cc60;
}

:root:not([data-theme="light"]) .hljs-emphasis {
color: #e6edf3;
font-style: italic;
}

:root:not([data-theme="light"]) .hljs-strong {
color: #e6edf3;
font-weight: bold;
}

:root:not([data-theme="light"]) .hljs-addition {
color: #aff5b4;
background-color: #033a16;
}

:root:not([data-theme="light"]) .hljs-deletion {
color: #ffdcd7;
background-color: #67060c;
}
}
6 changes: 6 additions & 0 deletions docs/css/shared.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
right: 0;
}

.github-corner svg {
fill: var(--github-corner-fill);
color: var(--github-corner-color);
transition: fill 0.3s ease, color 0.3s ease;
}

.github-corner:hover .octo-arm {
animation:octocat-wave 560ms ease-in-out;
}
Expand Down
Loading