docs: update mdbook

Changed files
+1026 -989
.github
workflows
docs
nix
+7 -21
.github/workflows/build-docs.yaml
···
paths:
- "docs/**"
-
env:
-
SCCACHE_VERSION: v0.7.7
-
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
-
- name: Setup rust toolchain
-
uses: dtolnay/rust-toolchain@nightly
-
- name: Obtain sccache
-
run: |
-
curl -fsSL https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz \
-
| tar xz sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl/sccache --strip=1
-
- name: Configure sccache
-
uses: actions/github-script@v6
+
- name: Install Nix
+
uses: DeterminateSystems/nix-installer-action@v10
with:
-
script: |
-
core.exportVariable('RUSTC_WRAPPER', './sccache')
-
core.exportVariable('SCCACHE_GHA_ENABLED', 'on')
-
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
-
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
-
- name: Install mdBook and dependencies
-
run: cargo install mdbook mdbook-admonish
+
extra-conf: |
+
experimental-features = nix-command flakes
+
- name: Build site
-
run: mdbook build docs
+
run: "nix develop .#devShells.x86_64-linux.docs -c mdbook build docs"
+
- name: Upload built site as artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/dist
-
- name: Get some statistics
-
run: ./sccache --show-stats
deploy:
environment:
+3 -4
docs/book.toml
···
language = "en"
multilingual = false
src = "src"
-
title = "genso-nix"
+
title = "gensokyo"
[build]
build-dir = "./dist"
···
[output.html]
default-theme = "latte"
preferred-dark-theme = "mocha"
-
git-repository-url = "https://patchy.soopy.moe/cassie/genso-nix"
+
git-repository-url = "https://patchy.soopy.moe/cassie/gensokyo"
git-repository-icon = "fa-code-fork"
-
edit-url-template = "https://patchy.soopy.moe/cassie/genso-nix/_edit/main/docs/{path}"
+
edit-url-template = "https://patchy.soopy.moe/cassie/gensokyo/_edit/main/docs/{path}"
cname = "flake.soopy.moe"
additional-js = ["theme/pagetoc.js"]
···
assets_version = "3.0.2" # do not edit: managed by `mdbook-admonish install`
[preprocessor.pagetoc]
-
# [preprocessor.catppuccin]
# assets_version = "2.1.0" # DO NOT EDIT: Managed by `mdbook-catppuccin install`
+19 -19
docs/src/SUMMARY.md
···
[Welcome to the Cow](README.md)
# Documentation
-
- [Tips and Tricks](./tips/README.md)
-
- [Overriding packages](./tips/overriding-packages.md)
-
- [Overlays](./tips/overlays.md)
-
- ["Global" Options](./tips/global-options.md)
-
- [Passing large secrets to DynamicUser=true services](./tips/pass-big-secrets-to-dynamic-user.md)
-
- [Miscellaneous Tips](./tips/misc.md)
-
- [Pitfalls](./tips/pitfalls.md)
-
- [Utility Functions](./utils/README.md)
-
- [mkVhost](./utils/mkVhost.md)
-
- [mkSimpleProxy](./utils/mkSimpleProxy.md)
-
- [genSecrets](./utils/genSecrets.md)
-
- [setupSecrets](./utils/setupSecrets.md)
-
- [mkNginxFile](./utils/mkNginxFile.md)
-
- [mkNginxJSON](./utils/mkNginxJSON.md)
+
- [Tips and Tricks](tips/README.md)
+
- [Overriding packages](tips/overriding-packages.md)
+
- [Overlays](tips/overlays.md)
+
- ["Global" Options](tips/global-options.md)
+
- [Passing large secrets to DynamicUser=true services](tips/pass-big-secrets-to-dynamic-user.md)
+
- [Miscellaneous Tips](tips/misc.md)
+
- [Pitfalls](tips/pitfalls.md)
+
- [Utility Functions](utils/README.md)
+
- [mkVhost](utils/mkVhost.md)
+
- [mkSimpleProxy](utils/mkSimpleProxy.md)
+
- [genSecrets](utils/genSecrets.md)
+
- [setupSecrets](utils/setupSecrets.md)
+
- [mkNginxFile](utils/mkNginxFile.md)
+
- [mkNginxJSON](utils/mkNginxJSON.md)
# Internal documentation
- ["Private" use]()
-
- [Ports](./internal/ports.md)
-
- [External Untracked Files](./internal/ext-files.md)
+
- [Ports](internal/ports.md)
+
- [External Untracked Files](internal/ext-files.md)
- [Presets]()
-
- [`certificates`](./internal/presets/certificates.md)
-
- [`nginx`](./internal/presets/nginx.md)
-
- [`vmetrics`](./internal/presets/vmetrics.md)
+
- [`certificates`](internal/presets/certificates.md)
+
- [`nginx`](internal/presets/nginx.md)
+
- [`vmetrics`](internal/presets/vmetrics.md)
+211 -211
docs/theme/catppuccin-admonish.css
···
-
.mocha :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) {
-
border-color: #f9e2af;
+
.latte :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) {
+
border-color: #df8e1d;
}
-
.mocha :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(249, 226, 175, 0.2);
+
.latte :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(223, 142, 29, 0.2);
}
-
.mocha :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #f9e2af;
+
.latte :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #df8e1d;
}
-
.mocha :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) {
-
border-color: #f2cdcd;
+
.latte :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) {
+
border-color: #dd7878;
}
-
.mocha :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(242, 205, 205, 0.2);
+
.latte :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(221, 120, 120, 0.2);
}
-
.mocha :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #f2cdcd;
+
.latte :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #dd7878;
}
-
.mocha :is(.admonition):is(.admonish-example) {
-
border-color: #cba6f7;
+
.latte :is(.admonition):is(.admonish-example) {
+
border-color: #8839ef;
}
-
.mocha :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(203, 166, 247, 0.2);
+
.latte :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(136, 57, 239, 0.2);
}
-
.mocha :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #cba6f7;
+
.latte :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #8839ef;
}
-
.mocha :is(.admonition):is(.admonish-info, .admonish-todo) {
-
border-color: #89dceb;
+
.latte :is(.admonition):is(.admonish-info, .admonish-todo) {
+
border-color: #04a5e5;
}
-
.mocha :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(137, 220, 235, 0.2);
+
.latte :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(4, 165, 229, 0.2);
}
-
.mocha :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #89dceb;
+
.latte :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #04a5e5;
}
-
.mocha :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) {
-
border-color: #a6e3a1;
+
.latte :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) {
+
border-color: #40a02b;
}
-
.mocha :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(166, 227, 161, 0.2);
+
.latte :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(64, 160, 43, 0.2);
}
-
.mocha :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #a6e3a1;
+
.latte :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #40a02b;
}
-
.mocha :is(.admonition):is(.admonish-note) {
-
border-color: #89b4fa;
+
.latte :is(.admonition):is(.admonish-note) {
+
border-color: #1e66f5;
}
-
.mocha :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(137, 180, 250, 0.2);
+
.latte :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(30, 102, 245, 0.2);
}
-
.mocha :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #89b4fa;
+
.latte :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #1e66f5;
}
-
.mocha :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) {
-
border-color: #fab387;
+
.latte :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) {
+
border-color: #fe640b;
}
-
.mocha :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(250, 179, 135, 0.2);
+
.latte :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(254, 100, 11, 0.2);
}
-
.mocha :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #fab387;
+
.latte :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #fe640b;
}
-
.mocha :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) {
-
border-color: #94e2d5;
+
.latte :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) {
+
border-color: #179299;
}
-
.mocha :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(148, 226, 213, 0.2);
+
.latte :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(23, 146, 153, 0.2);
}
-
.mocha :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #94e2d5;
+
.latte :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #179299;
}
-
.mocha :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) {
-
border-color: #f38ba8;
+
.latte :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) {
+
border-color: #d20f39;
}
-
.mocha :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(243, 139, 168, 0.2);
+
.latte :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(210, 15, 57, 0.2);
}
-
.mocha :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #f38ba8;
+
.latte :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #d20f39;
}
-
.mocha :is(.admonition):is(.admonish-cite, .admonish-quote) {
-
border-color: #f5c2e7;
+
.latte :is(.admonition):is(.admonish-cite, .admonish-quote) {
+
border-color: #ea76cb;
}
-
.mocha :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(245, 194, 231, 0.2);
+
.latte :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(234, 118, 203, 0.2);
}
-
.mocha :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #f5c2e7;
-
}
-
-
.macchiato :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) {
-
border-color: #eed49f;
-
}
-
.macchiato :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(238, 212, 159, 0.2);
-
}
-
.macchiato :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #eed49f;
-
}
-
.macchiato :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) {
-
border-color: #f0c6c6;
-
}
-
.macchiato :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(240, 198, 198, 0.2);
-
}
-
.macchiato :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #f0c6c6;
-
}
-
.macchiato :is(.admonition):is(.admonish-example) {
-
border-color: #c6a0f6;
-
}
-
.macchiato :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(198, 160, 246, 0.2);
-
}
-
.macchiato :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #c6a0f6;
-
}
-
.macchiato :is(.admonition):is(.admonish-info, .admonish-todo) {
-
border-color: #91d7e3;
-
}
-
.macchiato :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(145, 215, 227, 0.2);
-
}
-
.macchiato :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #91d7e3;
-
}
-
.macchiato :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) {
-
border-color: #a6da95;
-
}
-
.macchiato :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(166, 218, 149, 0.2);
-
}
-
.macchiato :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #a6da95;
-
}
-
.macchiato :is(.admonition):is(.admonish-note) {
-
border-color: #8aadf4;
-
}
-
.macchiato :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(138, 173, 244, 0.2);
-
}
-
.macchiato :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #8aadf4;
-
}
-
.macchiato :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) {
-
border-color: #f5a97f;
-
}
-
.macchiato :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(245, 169, 127, 0.2);
-
}
-
.macchiato :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #f5a97f;
-
}
-
.macchiato :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) {
-
border-color: #8bd5ca;
-
}
-
.macchiato :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(139, 213, 202, 0.2);
-
}
-
.macchiato :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #8bd5ca;
-
}
-
.macchiato :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) {
-
border-color: #ed8796;
-
}
-
.macchiato :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(237, 135, 150, 0.2);
-
}
-
.macchiato :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #ed8796;
-
}
-
.macchiato :is(.admonition):is(.admonish-cite, .admonish-quote) {
-
border-color: #f5bde6;
-
}
-
.macchiato :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(245, 189, 230, 0.2);
-
}
-
.macchiato :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #f5bde6;
+
.latte :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #ea76cb;
}
.frappe :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) {
···
background-color: #f4b8e4;
}
-
.latte :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) {
-
border-color: #df8e1d;
+
.macchiato :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) {
+
border-color: #eed49f;
+
}
+
.macchiato :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(238, 212, 159, 0.2);
+
}
+
.macchiato :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #eed49f;
+
}
+
.macchiato :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) {
+
border-color: #f0c6c6;
+
}
+
.macchiato :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(240, 198, 198, 0.2);
+
}
+
.macchiato :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #f0c6c6;
+
}
+
.macchiato :is(.admonition):is(.admonish-example) {
+
border-color: #c6a0f6;
+
}
+
.macchiato :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(198, 160, 246, 0.2);
+
}
+
.macchiato :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #c6a0f6;
+
}
+
.macchiato :is(.admonition):is(.admonish-info, .admonish-todo) {
+
border-color: #91d7e3;
}
-
.latte :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(223, 142, 29, 0.2);
+
.macchiato :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(145, 215, 227, 0.2);
}
-
.latte :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #df8e1d;
+
.macchiato :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #91d7e3;
}
-
.latte :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) {
-
border-color: #dd7878;
+
.macchiato :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) {
+
border-color: #a6da95;
+
}
+
.macchiato :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(166, 218, 149, 0.2);
+
}
+
.macchiato :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #a6da95;
+
}
+
.macchiato :is(.admonition):is(.admonish-note) {
+
border-color: #8aadf4;
+
}
+
.macchiato :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(138, 173, 244, 0.2);
+
}
+
.macchiato :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #8aadf4;
+
}
+
.macchiato :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) {
+
border-color: #f5a97f;
+
}
+
.macchiato :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(245, 169, 127, 0.2);
+
}
+
.macchiato :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #f5a97f;
+
}
+
.macchiato :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) {
+
border-color: #8bd5ca;
+
}
+
.macchiato :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(139, 213, 202, 0.2);
+
}
+
.macchiato :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #8bd5ca;
+
}
+
.macchiato :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) {
+
border-color: #ed8796;
+
}
+
.macchiato :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(237, 135, 150, 0.2);
+
}
+
.macchiato :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #ed8796;
+
}
+
.macchiato :is(.admonition):is(.admonish-cite, .admonish-quote) {
+
border-color: #f5bde6;
+
}
+
.macchiato :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(245, 189, 230, 0.2);
+
}
+
.macchiato :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #f5bde6;
+
}
+
+
.mocha :is(.admonition):is(.admonish-hint, .admonish-important, .admonish-tip) {
+
border-color: #f9e2af;
+
}
+
.mocha :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(249, 226, 175, 0.2);
+
}
+
.mocha :is(.admonish-hint, .admonish-important, .admonish-tip) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #f9e2af;
+
}
+
.mocha :is(.admonition):is(.admonish-abstract, .admonish-summary, .admonish-tldr) {
+
border-color: #f2cdcd;
}
-
.latte :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(221, 120, 120, 0.2);
+
.mocha :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(242, 205, 205, 0.2);
}
-
.latte :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #dd7878;
+
.mocha :is(.admonish-abstract, .admonish-summary, .admonish-tldr) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #f2cdcd;
}
-
.latte :is(.admonition):is(.admonish-example) {
-
border-color: #8839ef;
+
.mocha :is(.admonition):is(.admonish-example) {
+
border-color: #cba6f7;
}
-
.latte :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(136, 57, 239, 0.2);
+
.mocha :is(.admonish-example) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(203, 166, 247, 0.2);
}
-
.latte :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #8839ef;
+
.mocha :is(.admonish-example) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #cba6f7;
}
-
.latte :is(.admonition):is(.admonish-info, .admonish-todo) {
-
border-color: #04a5e5;
+
.mocha :is(.admonition):is(.admonish-info, .admonish-todo) {
+
border-color: #89dceb;
}
-
.latte :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(4, 165, 229, 0.2);
+
.mocha :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(137, 220, 235, 0.2);
}
-
.latte :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #04a5e5;
+
.mocha :is(.admonish-info, .admonish-todo) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #89dceb;
}
-
.latte :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) {
-
border-color: #40a02b;
+
.mocha :is(.admonition):is(.admonish-check, .admonish-done, .admonish-success) {
+
border-color: #a6e3a1;
}
-
.latte :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(64, 160, 43, 0.2);
+
.mocha :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(166, 227, 161, 0.2);
}
-
.latte :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #40a02b;
+
.mocha :is(.admonish-check, .admonish-done, .admonish-success) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #a6e3a1;
}
-
.latte :is(.admonition):is(.admonish-note) {
-
border-color: #1e66f5;
+
.mocha :is(.admonition):is(.admonish-note) {
+
border-color: #89b4fa;
}
-
.latte :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(30, 102, 245, 0.2);
+
.mocha :is(.admonish-note) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(137, 180, 250, 0.2);
}
-
.latte :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #1e66f5;
+
.mocha :is(.admonish-note) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #89b4fa;
}
-
.latte :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) {
-
border-color: #c74c05;
+
.mocha :is(.admonition):is(.admonish-attention, .admonish-caution, .admonish-warning) {
+
border-color: #fab387;
}
-
.latte :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(254, 100, 11, 0.2);
+
.mocha :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(250, 179, 135, 0.2);
}
-
.latte :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #c74c05;
+
.mocha :is(.admonish-attention, .admonish-caution, .admonish-warning) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #fab387;
}
-
.latte :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) {
-
border-color: #179299;
+
.mocha :is(.admonition):is(.admonish-faq, .admonish-help, .admonish-question) {
+
border-color: #94e2d5;
}
-
.latte :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(23, 146, 153, 0.2);
+
.mocha :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(148, 226, 213, 0.2);
}
-
.latte :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #179299;
+
.mocha :is(.admonish-faq, .admonish-help, .admonish-question) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #94e2d5;
}
-
.latte :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) {
-
border-color: #d20f39;
+
.mocha :is(.admonition):is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) {
+
border-color: #f38ba8;
}
-
.latte :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(210, 15, 57, 0.2);
+
.mocha :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(243, 139, 168, 0.2);
}
-
.latte :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #d20f39;
+
.mocha :is(.admonish-bug, .admonish-danger, .admonish-error, .admonish-fail, .admonish-failure, .admonish-missing) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #f38ba8;
}
-
.latte :is(.admonition):is(.admonish-cite, .admonish-quote) {
-
border-color: #ea76cb;
+
.mocha :is(.admonition):is(.admonish-cite, .admonish-quote) {
+
border-color: #f5c2e7;
}
-
.latte :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) {
-
background-color: rgba(234, 118, 203, 0.2);
+
.mocha :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title) {
+
background-color: rgba(245, 194, 231, 0.2);
}
-
.latte :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before {
-
background-color: #ea76cb;
+
.mocha :is(.admonish-cite, .admonish-quote) > :is(.admonition-title, summary.admonition-title)::before {
+
background-color: #f5c2e7;
}
+529 -480
docs/theme/catppuccin.css
···
-
.mocha.hljs {
-
color: #cdd6f4;
-
background: #1e1e2e;
+
/* https://highlightjs.readthedocs.io/en/latest/css-classes-reference.html */
+
.latte.hljs {
+
color: #4c4f69;
+
background: #eff1f5;
}
-
.mocha .hljs-keyword {
-
color: #cba6f7;
+
.latte .hljs-keyword {
+
color: #8839ef;
}
-
.mocha .hljs-built_in {
-
color: #f38ba8;
+
.latte .hljs-built_in {
+
color: #d20f39;
}
-
.mocha .hljs-type {
-
color: #f9e2af;
+
.latte .hljs-type {
+
color: #df8e1d;
}
-
.mocha .hljs-literal {
-
color: #fab387;
+
.latte .hljs-literal {
+
color: #fe640b;
}
-
.mocha .hljs-number {
-
color: #fab387;
+
.latte .hljs-number {
+
color: #fe640b;
}
-
.mocha .hljs-operator {
-
color: #94e2d5;
+
.latte .hljs-operator {
+
color: #04a5e5;
}
-
.mocha .hljs-punctuation {
-
color: #bac2de;
+
.latte .hljs-punctuation {
+
color: #5c5f77;
}
-
.mocha .hljs-property {
-
color: #94e2d5;
+
.latte .hljs-property {
+
color: #179299;
}
-
.mocha .hljs-regexp {
-
color: #f5c2e7;
+
.latte .hljs-regexp {
+
color: #ea76cb;
}
-
.mocha .hljs-string {
-
color: #a6e3a1;
+
.latte .hljs-string {
+
color: #40a02b;
}
-
.mocha .hljs-char.escape_ {
-
color: #a6e3a1;
+
.latte .hljs-char.escape_ {
+
color: #40a02b;
}
-
.mocha .hljs-subst {
-
color: #a6adc8;
+
.latte .hljs-subst {
+
color: #6c6f85;
}
-
.mocha .hljs-symbol {
-
color: #f2cdcd;
+
.latte .hljs-symbol {
+
color: #dd7878;
}
-
.mocha .hljs-variable {
-
color: #cba6f7;
+
.latte .hljs-variable {
+
color: #8839ef;
}
-
.mocha .hljs-variable.language_ {
-
color: #cba6f7;
+
.latte .hljs-variable.language_ {
+
color: #8839ef;
}
-
.mocha .hljs-variable.constant_ {
-
color: #fab387;
+
.latte .hljs-variable.constant_ {
+
color: #fe640b;
}
-
.mocha .hljs-title {
-
color: #89b4fa;
+
.latte .hljs-title {
+
color: #1e66f5;
}
-
.mocha .hljs-title.class_ {
-
color: #f9e2af;
+
.latte .hljs-title.class_ {
+
color: #df8e1d;
}
-
.mocha .hljs-title.function_ {
-
color: #89b4fa;
+
.latte .hljs-title.function_ {
+
color: #1e66f5;
}
-
.mocha .hljs-params {
-
color: #cdd6f4;
+
.latte .hljs-params {
+
color: #4c4f69;
}
-
.mocha .hljs-comment {
-
color: #585b70;
+
.latte .hljs-comment {
+
color: #7c7f93;
}
-
.mocha .hljs-doctag {
-
color: #f38ba8;
+
.latte .hljs-doctag {
+
color: #d20f39;
}
-
.mocha .hljs-meta {
-
color: #fab387;
+
.latte .hljs-meta {
+
color: #fe640b;
}
-
.mocha .hljs-section {
-
color: #89b4fa;
+
.latte .hljs-section {
+
color: #1e66f5;
}
-
.mocha .hljs-tag {
-
color: #a6adc8;
+
.latte .hljs-tag {
+
color: #179299;
}
-
.mocha .hljs-name {
-
color: #cba6f7;
+
.latte .hljs-name {
+
color: #8839ef;
}
-
.mocha .hljs-attr {
-
color: #89b4fa;
+
.latte .hljs-attr {
+
color: #1e66f5;
}
-
.mocha .hljs-attribute {
-
color: #a6e3a1;
+
.latte .hljs-attribute {
+
color: #40a02b;
}
-
.mocha .hljs-bullet {
-
color: #94e2d5;
+
.latte .hljs-bullet {
+
color: #179299;
}
-
.mocha .hljs-code {
-
color: #a6e3a1;
+
.latte .hljs-code {
+
color: #40a02b;
}
-
.mocha .hljs-emphasis {
-
color: #f38ba8;
+
.latte .hljs-emphasis {
+
color: #d20f39;
font-style: italic;
}
-
.mocha .hljs-strong {
-
color: #f38ba8;
+
.latte .hljs-strong {
+
color: #d20f39;
font-weight: bold;
}
-
.mocha .hljs-formula {
-
color: #94e2d5;
+
.latte .hljs-formula {
+
color: #179299;
}
-
.mocha .hljs-link {
-
color: #74c7ec;
+
.latte .hljs-link {
+
color: #209fb5;
font-style: italic;
}
-
.mocha .hljs-quote {
-
color: #a6e3a1;
+
.latte .hljs-quote {
+
color: #40a02b;
font-style: italic;
}
-
.mocha .hljs-selector-tag {
-
color: #f9e2af;
+
.latte .hljs-selector-tag {
+
color: #df8e1d;
}
-
.mocha .hljs-selector-id {
-
color: #89b4fa;
+
.latte .hljs-selector-id {
+
color: #1e66f5;
}
-
.mocha .hljs-selector-class {
-
color: #94e2d5;
+
.latte .hljs-selector-class {
+
color: #179299;
}
-
.mocha .hljs-selector-attr {
-
color: #cba6f7;
-
}
-
.mocha .hljs-selector-pseudo {
-
color: #94e2d5;
-
}
-
.mocha .hljs-template-tag {
-
color: #f2cdcd;
+
.latte .hljs-selector-attr {
+
color: #8839ef;
}
-
.mocha .hljs-template-variable {
-
color: #f2cdcd;
+
.latte .hljs-selector-pseudo {
+
color: #179299;
}
-
.mocha .hljs-addition {
-
color: #a6e3a1;
-
background: rgba(166, 227, 161, 0.15);
-
}
-
.mocha .hljs-deletion {
-
color: #f38ba8;
-
background: rgba(243, 139, 168, 0.15);
-
}
-
.mocha code {
-
color: #cdd6f4;
-
background: #181825;
-
}
-
.mocha blockquote blockquote {
-
border-top: 0.1em solid #585b70;
-
border-bottom: 0.1em solid #585b70;
-
}
-
.mocha hr {
-
color: #585b70;
+
.latte .hljs-template-tag {
+
color: #dd7878;
}
-
.mocha del {
-
color: #9399b2;
+
.latte .hljs-template-variable {
+
color: #dd7878;
}
-
.mocha .ace_gutter {
-
color: #7f849c;
-
background: #181825;
+
.latte .hljs-addition {
+
color: #40a02b;
+
background: rgba(64, 160, 43, 0.15);
}
-
.mocha .ace_gutter-active-line.ace_gutter-cell {
-
color: #f5c2e7;
-
background: #181825;
+
.latte .hljs-deletion {
+
color: #d20f39;
+
background: rgba(210, 15, 57, 0.15);
}
-
-
.macchiato.hljs {
-
color: #cad3f5;
-
background: #24273a;
+
.latte :is(h1, h2, h3, h4, h5, h6) a code {
+
color: #4c4f69;
}
-
.macchiato .hljs-keyword {
-
color: #c6a0f6;
+
.latte a code {
+
color: #1e66f5;
}
-
.macchiato .hljs-built_in {
-
color: #ed8796;
+
.latte code {
+
color: #4c4f69;
+
background: #e6e9ef;
}
-
.macchiato .hljs-type {
-
color: #eed49f;
+
.latte blockquote blockquote {
+
border-top: 0.1em solid #acb0be;
+
border-bottom: 0.1em solid #acb0be;
}
-
.macchiato .hljs-literal {
-
color: #f5a97f;
+
.latte hr {
+
border-color: #acb0be;
+
border-style: solid;
}
-
.macchiato .hljs-number {
-
color: #f5a97f;
+
.latte del {
+
color: #7c7f93;
}
-
.macchiato .hljs-operator {
-
color: #8bd5ca;
+
.latte .ace_gutter {
+
color: #8c8fa1;
+
background: #e6e9ef;
}
-
.macchiato .hljs-punctuation {
-
color: #b8c0e0;
+
.latte .ace_gutter-active-line.ace_gutter-cell {
+
color: #ea76cb;
+
background: #e6e9ef;
}
-
.macchiato .hljs-property {
-
color: #8bd5ca;
-
}
-
.macchiato .hljs-regexp {
-
color: #f5bde6;
-
}
-
.macchiato .hljs-string {
-
color: #a6da95;
-
}
-
.macchiato .hljs-char.escape_ {
-
color: #a6da95;
-
}
-
.macchiato .hljs-subst {
-
color: #a5adcb;
-
}
-
.macchiato .hljs-symbol {
-
color: #f0c6c6;
-
}
-
.macchiato .hljs-variable {
-
color: #c6a0f6;
-
}
-
.macchiato .hljs-variable.language_ {
-
color: #c6a0f6;
-
}
-
.macchiato .hljs-variable.constant_ {
-
color: #f5a97f;
-
}
-
.macchiato .hljs-title {
-
color: #8aadf4;
-
}
-
.macchiato .hljs-title.class_ {
-
color: #eed49f;
-
}
-
.macchiato .hljs-title.function_ {
-
color: #8aadf4;
-
}
-
.macchiato .hljs-params {
-
color: #cad3f5;
-
}
-
.macchiato .hljs-comment {
-
color: #5b6078;
-
}
-
.macchiato .hljs-doctag {
-
color: #ed8796;
-
}
-
.macchiato .hljs-meta {
-
color: #f5a97f;
-
}
-
.macchiato .hljs-section {
-
color: #8aadf4;
-
}
-
.macchiato .hljs-tag {
-
color: #a5adcb;
-
}
-
.macchiato .hljs-name {
-
color: #c6a0f6;
-
}
-
.macchiato .hljs-attr {
-
color: #8aadf4;
-
}
-
.macchiato .hljs-attribute {
-
color: #a6da95;
-
}
-
.macchiato .hljs-bullet {
-
color: #8bd5ca;
-
}
-
.macchiato .hljs-code {
-
color: #a6da95;
-
}
-
.macchiato .hljs-emphasis {
-
color: #ed8796;
-
font-style: italic;
-
}
-
.macchiato .hljs-strong {
-
color: #ed8796;
-
font-weight: bold;
-
}
-
.macchiato .hljs-formula {
-
color: #8bd5ca;
-
}
-
.macchiato .hljs-link {
-
color: #7dc4e4;
-
font-style: italic;
-
}
-
.macchiato .hljs-quote {
-
color: #a6da95;
-
font-style: italic;
-
}
-
.macchiato .hljs-selector-tag {
-
color: #eed49f;
-
}
-
.macchiato .hljs-selector-id {
-
color: #8aadf4;
-
}
-
.macchiato .hljs-selector-class {
-
color: #8bd5ca;
-
}
-
.macchiato .hljs-selector-attr {
-
color: #c6a0f6;
-
}
-
.macchiato .hljs-selector-pseudo {
-
color: #8bd5ca;
-
}
-
.macchiato .hljs-template-tag {
-
color: #f0c6c6;
-
}
-
.macchiato .hljs-template-variable {
-
color: #f0c6c6;
-
}
-
.macchiato .hljs-addition {
-
color: #a6da95;
-
background: rgba(166, 218, 149, 0.15);
-
}
-
.macchiato .hljs-deletion {
-
color: #ed8796;
-
background: rgba(237, 135, 150, 0.15);
-
}
-
.macchiato code {
-
color: #cad3f5;
-
background: #1e2030;
-
}
-
.macchiato blockquote blockquote {
-
border-top: 0.1em solid #5b6078;
-
border-bottom: 0.1em solid #5b6078;
-
}
-
.macchiato hr {
-
color: #5b6078;
-
}
-
.macchiato del {
-
color: #939ab7;
-
}
-
.macchiato .ace_gutter {
-
color: #8087a2;
-
background: #1e2030;
-
}
-
.macchiato .ace_gutter-active-line.ace_gutter-cell {
-
color: #f5bde6;
-
background: #1e2030;
+
.latte .tooltiptext {
+
background: #e6e9ef;
+
color: #4c4f69;
}
.frappe.hljs {
···
color: #ef9f76;
}
.frappe .hljs-operator {
-
color: #81c8be;
+
color: #99d1db;
}
.frappe .hljs-punctuation {
color: #b5bfe2;
···
color: #c6d0f5;
}
.frappe .hljs-comment {
-
color: #626880;
+
color: #949cbb;
}
.frappe .hljs-doctag {
color: #e78284;
···
color: #8caaee;
}
.frappe .hljs-tag {
-
color: #a5adce;
+
color: #81c8be;
}
.frappe .hljs-name {
color: #ca9ee6;
···
color: #e78284;
background: rgba(231, 130, 132, 0.15);
}
+
.frappe :is(h1, h2, h3, h4, h5, h6) a code {
+
color: #c6d0f5;
+
}
+
.frappe a code {
+
color: #8caaee;
+
}
.frappe code {
color: #c6d0f5;
background: #292c3c;
···
border-bottom: 0.1em solid #626880;
}
.frappe hr {
-
color: #626880;
+
border-color: #626880;
+
border-style: solid;
}
.frappe del {
color: #949cbb;
···
color: #f4b8e4;
background: #292c3c;
}
+
.frappe .tooltiptext {
+
background: #292c3c;
+
color: #c6d0f5;
+
}
-
.latte.hljs {
-
color: #4c4f69;
-
background: #eff1f5;
+
.macchiato.hljs {
+
color: #cad3f5;
+
background: #24273a;
}
-
.latte .hljs-keyword {
-
color: #8839ef;
+
.macchiato .hljs-keyword {
+
color: #c6a0f6;
}
-
.latte .hljs-built_in {
-
color: #d20f39;
+
.macchiato .hljs-built_in {
+
color: #ed8796;
}
-
.latte .hljs-type {
-
color: #df8e1d;
+
.macchiato .hljs-type {
+
color: #eed49f;
}
-
.latte .hljs-literal {
-
color: #c74c05;
+
.macchiato .hljs-literal {
+
color: #f5a97f;
}
-
.latte .hljs-number {
-
color: #c74c05;
+
.macchiato .hljs-number {
+
color: #f5a97f;
}
-
.latte .hljs-operator {
-
color: #179299;
+
.macchiato .hljs-operator {
+
color: #91d7e3;
}
-
.latte .hljs-punctuation {
-
color: #5c5f77;
+
.macchiato .hljs-punctuation {
+
color: #b8c0e0;
}
-
.latte .hljs-property {
-
color: #179299;
+
.macchiato .hljs-property {
+
color: #8bd5ca;
}
-
.latte .hljs-regexp {
-
color: #ea76cb;
+
.macchiato .hljs-regexp {
+
color: #f5bde6;
}
-
.latte .hljs-string {
-
color: #40a02b;
+
.macchiato .hljs-string {
+
color: #a6da95;
}
-
.latte .hljs-char.escape_ {
-
color: #40a02b;
+
.macchiato .hljs-char.escape_ {
+
color: #a6da95;
}
-
.latte .hljs-subst {
-
color: #6c6f85;
+
.macchiato .hljs-subst {
+
color: #a5adcb;
}
-
.latte .hljs-symbol {
-
color: #dd7878;
+
.macchiato .hljs-symbol {
+
color: #f0c6c6;
}
-
.latte .hljs-variable {
-
color: #8839ef;
+
.macchiato .hljs-variable {
+
color: #c6a0f6;
}
-
.latte .hljs-variable.language_ {
-
color: #8839ef;
+
.macchiato .hljs-variable.language_ {
+
color: #c6a0f6;
}
-
.latte .hljs-variable.constant_ {
-
color: #c74c05;
+
.macchiato .hljs-variable.constant_ {
+
color: #f5a97f;
}
-
.latte .hljs-title {
-
color: #1e66f5;
+
.macchiato .hljs-title {
+
color: #8aadf4;
}
-
.latte .hljs-title.class_ {
-
color: #df8e1d;
+
.macchiato .hljs-title.class_ {
+
color: #eed49f;
}
-
.latte .hljs-title.function_ {
-
color: #1e66f5;
+
.macchiato .hljs-title.function_ {
+
color: #8aadf4;
}
-
.latte .hljs-params {
-
color: #4c4f69;
+
.macchiato .hljs-params {
+
color: #cad3f5;
}
-
.latte .hljs-comment {
-
color: #acb0be;
+
.macchiato .hljs-comment {
+
color: #939ab7;
}
-
.latte .hljs-doctag {
-
color: #d20f39;
+
.macchiato .hljs-doctag {
+
color: #ed8796;
}
-
.latte .hljs-meta {
-
color: #c74c05;
+
.macchiato .hljs-meta {
+
color: #f5a97f;
}
-
.latte .hljs-section {
-
color: #1e66f5;
+
.macchiato .hljs-section {
+
color: #8aadf4;
}
-
.latte .hljs-tag {
-
color: #6c6f85;
+
.macchiato .hljs-tag {
+
color: #8bd5ca;
}
-
.latte .hljs-name {
-
color: #8839ef;
+
.macchiato .hljs-name {
+
color: #c6a0f6;
}
-
.latte .hljs-attr {
-
color: #1e66f5;
+
.macchiato .hljs-attr {
+
color: #8aadf4;
}
-
.latte .hljs-attribute {
-
color: #40a02b;
+
.macchiato .hljs-attribute {
+
color: #a6da95;
}
-
.latte .hljs-bullet {
-
color: #179299;
+
.macchiato .hljs-bullet {
+
color: #8bd5ca;
}
-
.latte .hljs-code {
-
color: #40a02b;
+
.macchiato .hljs-code {
+
color: #a6da95;
}
-
.latte .hljs-emphasis {
-
color: #d20f39;
+
.macchiato .hljs-emphasis {
+
color: #ed8796;
font-style: italic;
}
-
.latte .hljs-strong {
-
color: #d20f39;
+
.macchiato .hljs-strong {
+
color: #ed8796;
font-weight: bold;
}
-
.latte .hljs-formula {
-
color: #179299;
+
.macchiato .hljs-formula {
+
color: #8bd5ca;
}
-
.latte .hljs-link {
-
color: #209fb5;
+
.macchiato .hljs-link {
+
color: #7dc4e4;
font-style: italic;
}
-
.latte .hljs-quote {
-
color: #40a02b;
+
.macchiato .hljs-quote {
+
color: #a6da95;
font-style: italic;
}
-
.latte .hljs-selector-tag {
-
color: #df8e1d;
+
.macchiato .hljs-selector-tag {
+
color: #eed49f;
}
-
.latte .hljs-selector-id {
-
color: #1e66f5;
+
.macchiato .hljs-selector-id {
+
color: #8aadf4;
}
-
.latte .hljs-selector-class {
-
color: #179299;
+
.macchiato .hljs-selector-class {
+
color: #8bd5ca;
}
-
.latte .hljs-selector-attr {
-
color: #8839ef;
+
.macchiato .hljs-selector-attr {
+
color: #c6a0f6;
}
-
.latte .hljs-selector-pseudo {
-
color: #179299;
+
.macchiato .hljs-selector-pseudo {
+
color: #8bd5ca;
}
-
.latte .hljs-template-tag {
-
color: #dd7878;
+
.macchiato .hljs-template-tag {
+
color: #f0c6c6;
}
-
.latte .hljs-template-variable {
-
color: #dd7878;
+
.macchiato .hljs-template-variable {
+
color: #f0c6c6;
}
-
.latte .hljs-addition {
-
color: #40a02b;
-
background: rgba(64, 160, 43, 0.15);
+
.macchiato .hljs-addition {
+
color: #a6da95;
+
background: rgba(166, 218, 149, 0.15);
}
-
.latte .hljs-deletion {
-
color: #d20f39;
-
background: rgba(210, 15, 57, 0.15);
+
.macchiato .hljs-deletion {
+
color: #ed8796;
+
background: rgba(237, 135, 150, 0.15);
}
-
.latte code {
-
color: #4c4f69;
-
background: #e6e9ef;
+
.macchiato :is(h1, h2, h3, h4, h5, h6) a code {
+
color: #cad3f5;
+
}
+
.macchiato a code {
+
color: #8aadf4;
}
-
.latte blockquote blockquote {
-
border-top: 0.1em solid #acb0be;
-
border-bottom: 0.1em solid #acb0be;
+
.macchiato code {
+
color: #cad3f5;
+
background: #1e2030;
}
-
.latte hr {
-
color: #acb0be;
+
.macchiato blockquote blockquote {
+
border-top: 0.1em solid #5b6078;
+
border-bottom: 0.1em solid #5b6078;
}
-
.latte del {
-
color: #7c7f93;
+
.macchiato hr {
+
border-color: #5b6078;
+
border-style: solid;
}
-
.latte .ace_gutter {
-
color: #8c8fa1;
-
background: #e6e9ef;
+
.macchiato del {
+
color: #939ab7;
}
-
.latte .ace_gutter-active-line.ace_gutter-cell {
-
color: #ea76cb;
-
background: #e6e9ef;
+
.macchiato .ace_gutter {
+
color: #8087a2;
+
background: #1e2030;
+
}
+
.macchiato .ace_gutter-active-line.ace_gutter-cell {
+
color: #f5bde6;
+
background: #1e2030;
+
}
+
.macchiato .tooltiptext {
+
background: #1e2030;
+
color: #cad3f5;
}
-
.mocha {
-
--bg: #1e1e2e;
-
--fg: #cdd6f4;
-
--sidebar-bg: #181825;
-
--sidebar-fg: #cdd6f4;
-
--sidebar-non-existant: #6c7086;
-
--sidebar-active: #89b4fa;
-
--sidebar-spacer: #6c7086;
-
--scrollbar: #6c7086;
-
--icons: #6c7086;
-
--icons-hover: #7f849c;
-
--links: #89b4fa;
-
--inline-code-color: #fab387;
-
--theme-popup-bg: #181825;
-
--theme-popup-border: #6c7086;
-
--theme-hover: #6c7086;
-
--quote-bg: #181825;
-
--quote-border: #11111b;
-
--table-border-color: #11111b;
-
--table-header-bg: #181825;
-
--table-alternate-bg: #181825;
-
--searchbar-border-color: #11111b;
-
--searchbar-bg: #181825;
-
--searchbar-fg: #cdd6f4;
-
--searchbar-shadow-color: #11111b;
-
--searchresults-header-fg: #cdd6f4;
-
--searchresults-border-color: #11111b;
-
--searchresults-li-bg: #1e1e2e;
-
--search-mark-bg: #fab387;
-
--warning-border: #fab387;
+
.mocha.hljs {
+
color: #cdd6f4;
+
background: #1e1e2e;
+
}
+
.mocha .hljs-keyword {
+
color: #cba6f7;
+
}
+
.mocha .hljs-built_in {
+
color: #f38ba8;
+
}
+
.mocha .hljs-type {
+
color: #f9e2af;
+
}
+
.mocha .hljs-literal {
+
color: #fab387;
+
}
+
.mocha .hljs-number {
+
color: #fab387;
+
}
+
.mocha .hljs-operator {
+
color: #89dceb;
+
}
+
.mocha .hljs-punctuation {
+
color: #bac2de;
+
}
+
.mocha .hljs-property {
+
color: #94e2d5;
+
}
+
.mocha .hljs-regexp {
+
color: #f5c2e7;
+
}
+
.mocha .hljs-string {
+
color: #a6e3a1;
+
}
+
.mocha .hljs-char.escape_ {
+
color: #a6e3a1;
+
}
+
.mocha .hljs-subst {
+
color: #a6adc8;
+
}
+
.mocha .hljs-symbol {
+
color: #f2cdcd;
+
}
+
.mocha .hljs-variable {
+
color: #cba6f7;
+
}
+
.mocha .hljs-variable.language_ {
+
color: #cba6f7;
+
}
+
.mocha .hljs-variable.constant_ {
+
color: #fab387;
+
}
+
.mocha .hljs-title {
+
color: #89b4fa;
+
}
+
.mocha .hljs-title.class_ {
+
color: #f9e2af;
+
}
+
.mocha .hljs-title.function_ {
+
color: #89b4fa;
+
}
+
.mocha .hljs-params {
+
color: #cdd6f4;
+
}
+
.mocha .hljs-comment {
+
color: #9399b2;
+
}
+
.mocha .hljs-doctag {
+
color: #f38ba8;
+
}
+
.mocha .hljs-meta {
+
color: #fab387;
+
}
+
.mocha .hljs-section {
+
color: #89b4fa;
+
}
+
.mocha .hljs-tag {
+
color: #94e2d5;
+
}
+
.mocha .hljs-name {
+
color: #cba6f7;
+
}
+
.mocha .hljs-attr {
+
color: #89b4fa;
+
}
+
.mocha .hljs-attribute {
+
color: #a6e3a1;
+
}
+
.mocha .hljs-bullet {
+
color: #94e2d5;
+
}
+
.mocha .hljs-code {
+
color: #a6e3a1;
+
}
+
.mocha .hljs-emphasis {
+
color: #f38ba8;
+
font-style: italic;
+
}
+
.mocha .hljs-strong {
+
color: #f38ba8;
+
font-weight: bold;
+
}
+
.mocha .hljs-formula {
+
color: #94e2d5;
+
}
+
.mocha .hljs-link {
+
color: #74c7ec;
+
font-style: italic;
+
}
+
.mocha .hljs-quote {
+
color: #a6e3a1;
+
font-style: italic;
+
}
+
.mocha .hljs-selector-tag {
+
color: #f9e2af;
+
}
+
.mocha .hljs-selector-id {
+
color: #89b4fa;
+
}
+
.mocha .hljs-selector-class {
+
color: #94e2d5;
+
}
+
.mocha .hljs-selector-attr {
+
color: #cba6f7;
+
}
+
.mocha .hljs-selector-pseudo {
+
color: #94e2d5;
+
}
+
.mocha .hljs-template-tag {
+
color: #f2cdcd;
+
}
+
.mocha .hljs-template-variable {
+
color: #f2cdcd;
+
}
+
.mocha .hljs-addition {
+
color: #a6e3a1;
+
background: rgba(166, 227, 161, 0.15);
+
}
+
.mocha .hljs-deletion {
+
color: #f38ba8;
+
background: rgba(243, 139, 168, 0.15);
+
}
+
.mocha :is(h1, h2, h3, h4, h5, h6) a code {
+
color: #cdd6f4;
+
}
+
.mocha a code {
+
color: #89b4fa;
+
}
+
.mocha code {
+
color: #cdd6f4;
+
background: #181825;
+
}
+
.mocha blockquote blockquote {
+
border-top: 0.1em solid #585b70;
+
border-bottom: 0.1em solid #585b70;
+
}
+
.mocha hr {
+
border-color: #585b70;
+
border-style: solid;
+
}
+
.mocha del {
+
color: #9399b2;
+
}
+
.mocha .ace_gutter {
+
color: #7f849c;
+
background: #181825;
+
}
+
.mocha .ace_gutter-active-line.ace_gutter-cell {
+
color: #f5c2e7;
+
background: #181825;
+
}
+
.mocha .tooltiptext {
+
background: #181825;
+
color: #cdd6f4;
}
-
.macchiato {
-
--bg: #24273a;
-
--fg: #cad3f5;
-
--sidebar-bg: #1e2030;
-
--sidebar-fg: #cad3f5;
-
--sidebar-non-existant: #6e738d;
-
--sidebar-active: #8aadf4;
-
--sidebar-spacer: #6e738d;
-
--scrollbar: #6e738d;
-
--icons: #6e738d;
-
--icons-hover: #8087a2;
-
--links: #8aadf4;
-
--inline-code-color: #f5a97f;
-
--theme-popup-bg: #1e2030;
-
--theme-popup-border: #6e738d;
-
--theme-hover: #6e738d;
-
--quote-bg: #1e2030;
-
--quote-border: #181926;
-
--table-border-color: #181926;
-
--table-header-bg: #1e2030;
-
--table-alternate-bg: #1e2030;
-
--searchbar-border-color: #181926;
-
--searchbar-bg: #1e2030;
-
--searchbar-fg: #cad3f5;
-
--searchbar-shadow-color: #181926;
-
--searchresults-header-fg: #cad3f5;
-
--searchresults-border-color: #181926;
-
--searchresults-li-bg: #24273a;
-
--search-mark-bg: #f5a97f;
-
--warning-border: #f5a97f;
+
.latte {
+
--bg: #eff1f5;
+
--fg: #4c4f69;
+
--sidebar-bg: #e6e9ef;
+
--sidebar-fg: #4c4f69;
+
--sidebar-non-existant: #9ca0b0;
+
--sidebar-active: #1e66f5;
+
--sidebar-spacer: #9ca0b0;
+
--scrollbar: #9ca0b0;
+
--icons: #9ca0b0;
+
--icons-hover: #7c7f93;
+
--links: #1e66f5;
+
--inline-code-color: #4c4f69;
+
--theme-popup-bg: #e6e9ef;
+
--theme-popup-border: #9ca0b0;
+
--theme-hover: #ccd0da;
+
--quote-bg: #e6e9ef;
+
--quote-border: #dce0e8;
+
--table-border-color: #ccd0da;
+
--table-header-bg: #e6e9ef;
+
--table-alternate-bg: #e6e9ef;
+
--searchbar-border-color: #ccd0da;
+
--searchbar-bg: #e6e9ef;
+
--searchbar-fg: #4c4f69;
+
--searchbar-shadow-color: #dce0e8;
+
--searchresults-header-fg: #4c4f69;
+
--searchresults-border-color: #ccd0da;
+
--searchresults-li-bg: #eff1f5;
+
--search-mark-bg: #fe640b;
+
--warning-border: #fe640b;
+
--color-scheme: light;
}
.frappe {
···
--sidebar-spacer: #737994;
--scrollbar: #737994;
--icons: #737994;
-
--icons-hover: #838ba7;
+
--icons-hover: #949cbb;
--links: #8caaee;
-
--inline-code-color: #ef9f76;
+
--inline-code-color: #c6d0f5;
--theme-popup-bg: #292c3c;
--theme-popup-border: #737994;
-
--theme-hover: #737994;
+
--theme-hover: #414559;
--quote-bg: #292c3c;
--quote-border: #232634;
-
--table-border-color: #232634;
+
--table-border-color: #414559;
--table-header-bg: #292c3c;
--table-alternate-bg: #292c3c;
-
--searchbar-border-color: #232634;
+
--searchbar-border-color: #414559;
--searchbar-bg: #292c3c;
--searchbar-fg: #c6d0f5;
--searchbar-shadow-color: #232634;
--searchresults-header-fg: #c6d0f5;
-
--searchresults-border-color: #232634;
+
--searchresults-border-color: #414559;
--searchresults-li-bg: #303446;
--search-mark-bg: #ef9f76;
--warning-border: #ef9f76;
+
--color-scheme: dark;
}
-
.latte {
-
--bg: #eff1f5;
-
--fg: #4c4f69;
-
--sidebar-bg: #e6e9ef;
-
--sidebar-fg: #4c4f69;
-
--sidebar-non-existant: #9ca0b0;
-
--sidebar-active: #1e66f5;
-
--sidebar-spacer: #9ca0b0;
-
--scrollbar: #9ca0b0;
-
--icons: #9ca0b0;
-
--icons-hover: #8c8fa1;
-
--links: #1e66f5;
-
--inline-code-color: #c74c05;
-
--theme-popup-bg: #e6e9ef;
-
--theme-popup-border: #9ca0b0;
-
--theme-hover: #9ca0b0;
-
--quote-bg: #e6e9ef;
-
--quote-border: #dce0e8;
-
--table-border-color: #dce0e8;
-
--table-header-bg: #e6e9ef;
-
--table-alternate-bg: #e6e9ef;
-
--searchbar-border-color: #dce0e8;
-
--searchbar-bg: #e6e9ef;
-
--searchbar-fg: #4c4f69;
-
--searchbar-shadow-color: #dce0e8;
-
--searchresults-header-fg: #4c4f69;
-
--searchresults-border-color: #dce0e8;
-
--searchresults-li-bg: #eff1f5;
-
--search-mark-bg: #c74c05;
-
--warning-border: #c74c05;
+
.macchiato {
+
--bg: #24273a;
+
--fg: #cad3f5;
+
--sidebar-bg: #1e2030;
+
--sidebar-fg: #cad3f5;
+
--sidebar-non-existant: #6e738d;
+
--sidebar-active: #8aadf4;
+
--sidebar-spacer: #6e738d;
+
--scrollbar: #6e738d;
+
--icons: #6e738d;
+
--icons-hover: #939ab7;
+
--links: #8aadf4;
+
--inline-code-color: #cad3f5;
+
--theme-popup-bg: #1e2030;
+
--theme-popup-border: #6e738d;
+
--theme-hover: #363a4f;
+
--quote-bg: #1e2030;
+
--quote-border: #181926;
+
--table-border-color: #363a4f;
+
--table-header-bg: #1e2030;
+
--table-alternate-bg: #1e2030;
+
--searchbar-border-color: #363a4f;
+
--searchbar-bg: #1e2030;
+
--searchbar-fg: #cad3f5;
+
--searchbar-shadow-color: #181926;
+
--searchresults-header-fg: #cad3f5;
+
--searchresults-border-color: #363a4f;
+
--searchresults-li-bg: #24273a;
+
--search-mark-bg: #f5a97f;
+
--warning-border: #f5a97f;
+
--color-scheme: dark;
+
}
+
+
.mocha {
+
--bg: #1e1e2e;
+
--fg: #cdd6f4;
+
--sidebar-bg: #181825;
+
--sidebar-fg: #cdd6f4;
+
--sidebar-non-existant: #6c7086;
+
--sidebar-active: #89b4fa;
+
--sidebar-spacer: #6c7086;
+
--scrollbar: #6c7086;
+
--icons: #6c7086;
+
--icons-hover: #9399b2;
+
--links: #89b4fa;
+
--inline-code-color: #cdd6f4;
+
--theme-popup-bg: #181825;
+
--theme-popup-border: #6c7086;
+
--theme-hover: #313244;
+
--quote-bg: #181825;
+
--quote-border: #11111b;
+
--table-border-color: #313244;
+
--table-header-bg: #181825;
+
--table-alternate-bg: #181825;
+
--searchbar-border-color: #313244;
+
--searchbar-bg: #181825;
+
--searchbar-fg: #cdd6f4;
+
--searchbar-shadow-color: #11111b;
+
--searchresults-header-fg: #cdd6f4;
+
--searchresults-border-color: #313244;
+
--searchresults-li-bg: #1e1e2e;
+
--search-mark-bg: #fab387;
+
--warning-border: #fab387;
+
--color-scheme: dark;
}
+22 -41
docs/theme/index.hbs
···
<!DOCTYPE HTML>
-
<html lang="{{ language }}" class="{{ default_theme }}" dir="{{ text_direction }}">
+
<html lang="{{ language }}" class="{{ default_theme }} sidebar-visible" dir="{{ text_direction }}">
<head>
<!-- Book generated using mdBook -->
<meta charset="UTF-8">
···
<!-- MathJax -->
<script async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
{{/if}}
-
</head>
-
<body class="sidebar-visible no-js">
-
<div id="body-container">
+
<!-- Provide site root to javascript -->
<script>
var path_to_root = "{{ path_to_root }}";
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "{{ preferred_dark_theme }}" : "{{ default_theme }}";
</script>
-
+
<!-- Start loading toc.js asap -->
+
<script src="{{ path_to_root }}toc.js"></script>
+
</head>
+
<body>
+
<div id="body-container">
<!-- Work around some values being stored in localStorage wrapped in quotes -->
<script>
try {
···
var theme;
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { }
if (theme === null || theme === undefined) { theme = default_theme; }
-
var html = document.querySelector('html');
+
const html = document.documentElement;
html.classList.remove('{{ default_theme }}')
html.classList.add(theme);
-
var body = document.querySelector('body');
-
body.classList.remove('no-js')
-
body.classList.add('js');
+
html.classList.add("js");
</script>
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden">
<!-- Hide / unhide sidebar before it is displayed -->
<script>
-
var body = document.querySelector('body');
var sidebar = null;
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor");
if (document.body.clientWidth >= 1080) {
···
sidebar = 'hidden';
}
sidebar_toggle.checked = sidebar === 'visible';
-
body.classList.remove('sidebar-visible');
-
body.classList.add("sidebar-" + sidebar);
+
html.classList.remove('sidebar-visible');
+
html.classList.add("sidebar-" + sidebar);
</script>
<nav id="sidebar" class="sidebar" aria-label="Table of contents">
-
<div class="sidebar-scrollbox">
-
{{#toc}}{{/toc}}
+
<!-- populated by js -->
+
<mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox>
+
<noscript>
+
<iframe class="sidebar-iframe-outer" src="{{ path_to_root }}toc.html"></iframe>
+
</noscript>
+
<div id="sidebar-resize-handle" class="sidebar-resize-handle">
+
<div class="sidebar-resize-indicator"></div>
</div>
-
<div id="sidebar-resize-handle" class="sidebar-resize-handle"></div>
</nav>
-
<!-- Track and set sidebar scroll position -->
-
<script>
-
var sidebarScrollbox = document.querySelector('#sidebar .sidebar-scrollbox');
-
sidebarScrollbox.addEventListener('click', function(e) {
-
if (e.target.tagName === 'A') {
-
sessionStorage.setItem('sidebar-scroll', sidebarScrollbox.scrollTop);
-
}
-
}, { passive: true });
-
var sidebarScrollTop = sessionStorage.getItem('sidebar-scroll');
-
sessionStorage.removeItem('sidebar-scroll');
-
if (sidebarScrollTop) {
-
// preserve sidebar scroll position when navigating via links within sidebar
-
sidebarScrollbox.scrollTop = sidebarScrollTop;
-
} else {
-
// scroll sidebar to current active section when navigating via "next/previous chapter" buttons
-
var activeSection = document.querySelector('#sidebar .active');
-
if (activeSection) {
-
activeSection.scrollIntoView({ block: 'center' });
-
}
-
}
-
</script>
-
<div id="page-wrapper" class="page-wrapper">
<div class="page">
···
<i class="fa fa-paint-brush"></i>
</button>
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu">
-
<li role="none"><button role="menuitem" class="theme" id="latte">Catppuccin Latte</button></li>
-
<li role="none"><button role="menuitem" class="theme" id="frappe">Catppuccin Frappé</button></li>
-
<li role="none"><button role="menuitem" class="theme" id="macchiato">Catppuccin Macchiato</button></li>
-
<li role="none"><button role="menuitem" class="theme" id="mocha">Catppuccin Mocha</button></li>
+
<li role="none"><button role="menuitem" class="theme" id="latte">Catppuccin Latte</button></li>
+
<li role="none"><button role="menuitem" class="theme" id="frappe">Catppuccin Frappé</button></li>
+
<li role="none"><button role="menuitem" class="theme" id="macchiato">Catppuccin Macchiato</button></li>
+
<li role="none"><button role="menuitem" class="theme" id="mocha">Catppuccin Mocha</button></li>
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li>
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li>
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li>
+227 -213
docs/vendor/highlight.min.js
···
-
// built with node tools/build.js nix python python-repl rust javascript makefile ini bash shell
/*!
-
Highlight.js v11.9.0 (git: ca77d5b733)
-
(c) 2006-2024 undefined and other contributors
+
Highlight.js v11.11.1 (git: d301848ccf)
+
(c) 2006-2025 Josh Goebel <hello@joshgoebel.com> and other contributors
License: BSD-3-Clause
*/
var hljs=function(){"use strict";function e(n){
···
throw Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=()=>{
throw Error("set is read-only")
}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach((t=>{
-
const s=n[t],a=typeof s;"object"!==a&&"function"!==a||Object.isFrozen(s)||e(s)
+
const a=n[t],s=typeof a;"object"!==s&&"function"!==s||Object.isFrozen(a)||e(a)
})),n}class n{constructor(e){
void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
ignoreMatch(){this.isMatchIgnored=!0}}function t(e){
return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")
-
}function s(e,...n){const t=Object.create(null);for(const n in e)t[n]=e[n]
-
;return n.forEach((e=>{for(const n in e)t[n]=e[n]})),t}const a=e=>!!e.scope
+
}function a(e,...n){const t=Object.create(null);for(const n in e)t[n]=e[n]
+
;return n.forEach((e=>{for(const n in e)t[n]=e[n]})),t}const s=e=>!!e.scope
;class i{constructor(e,n){
this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){
-
this.buffer+=t(e)}openNode(e){if(!a(e))return;const n=((e,{prefix:n})=>{
+
this.buffer+=t(e)}openNode(e){if(!s(e))return;const n=((e,{prefix:n})=>{
if(e.startsWith("language:"))return e.replace("language:","language-")
;if(e.includes(".")){const t=e.split(".")
;return[`${n}${t.shift()}`,...t.map(((e,n)=>`${e}${"_".repeat(n+1)}`))].join(" ")
}return`${n}${e}`})(e.scope,{prefix:this.classPrefix});this.span(n)}
-
closeNode(e){a(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
+
closeNode(e){s(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){
this.buffer+=`<span class="${e}">`}}const r=(e={})=>{const n={children:[]}
;return Object.assign(n,e),n};class o{constructor(){
this.rootNode=r(),this.stack=[this.rootNode]}get top(){
···
;return"object"==typeof n&&n.constructor===Object?(e.splice(e.length-1,1),n):{}
})(e);return"("+(n.capture?"":"?:")+e.map((e=>l(e))).join("|")+")"}
function p(e){return RegExp(e.toString()+"|").exec("").length-1}
-
const f=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
-
;function m(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t
-
;let s=l(e),a="";for(;s.length>0;){const e=f.exec(s);if(!e){a+=s;break}
-
a+=s.substring(0,e.index),
-
s=s.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?a+="\\"+(Number(e[1])+n):(a+=e[0],
-
"("===e[0]&&t++)}return a})).map((e=>`(${e})`)).join(n)}
-
const _="[a-zA-Z]\\w*",E="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",w="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",N="\\b(0b[01]+)",S={
+
const m=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./
+
;function f(e,{joinWith:n}){let t=0;return e.map((e=>{t+=1;const n=t
+
;let a=l(e),s="";for(;a.length>0;){const e=m.exec(a);if(!e){s+=a;break}
+
s+=a.substring(0,e.index),
+
a=a.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+n):(s+=e[0],
+
"("===e[0]&&t++)}return s})).map((e=>`(${e})`)).join(n)}
+
const E="[a-zA-Z]\\w*",_="[a-zA-Z_]\\w*",y="\\b\\d+(\\.\\d+)?",w="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",N="\\b(0b[01]+)",S={
begin:"\\\\[\\s\\S]",relevance:0},v={scope:"string",begin:"'",end:"'",
illegal:"\\n",contains:[S]},x={scope:"string",begin:'"',end:'"',illegal:"\\n",
-
contains:[S]},A=(e,n,t={})=>{const a=s({scope:"comment",begin:e,end:n,
-
contains:[]},t);a.contains.push({scope:"doctag",
+
contains:[S]},A=(e,n,t={})=>{const s=a({scope:"comment",begin:e,end:n,
+
contains:[]},t);s.contains.push({scope:"doctag",
begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
;const i=b("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
-
;return a.contains.push({begin:h(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),a
+
;return s.contains.push({begin:h(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s
},k=A("//","$"),O=A("/\\*","\\*/"),R=A("#","$");var M=Object.freeze({
__proto__:null,APOS_STRING_MODE:v,BACKSLASH_ESCAPE:S,BINARY_NUMBER_MODE:{
scope:"number",begin:N,relevance:0},BINARY_NUMBER_RE:N,COMMENT:A,
C_BLOCK_COMMENT_MODE:O,C_LINE_COMMENT_MODE:k,C_NUMBER_MODE:{scope:"number",
begin:w,relevance:0},C_NUMBER_RE:w,END_SAME_AS_BEGIN:e=>Object.assign(e,{
"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{
-
n.data._beginMatch!==e[1]&&n.ignoreMatch()}}),HASH_COMMENT_MODE:R,IDENT_RE:_,
-
MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+E,relevance:0},
+
n.data._beginMatch!==e[1]&&n.ignoreMatch()}}),HASH_COMMENT_MODE:R,IDENT_RE:E,
+
MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+_,relevance:0},
NUMBER_MODE:{scope:"number",begin:y,relevance:0},NUMBER_RE:y,
PHRASAL_WORDS_MODE:{
begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
···
end:/\/[gimuy]*/,contains:[S,{begin:/\[/,end:/\]/,relevance:0,contains:[S]}]},
RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
SHEBANG:(e={})=>{const n=/^#![ ]*\//
-
;return e.binary&&(e.begin=h(n,/.*\b/,e.binary,/\b.*/)),s({scope:"meta",begin:n,
+
;return e.binary&&(e.begin=h(n,/.*\b/,e.binary,/\b.*/)),a({scope:"meta",begin:n,
end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},
-
TITLE_MODE:{scope:"title",begin:_,relevance:0},UNDERSCORE_IDENT_RE:E,
-
UNDERSCORE_TITLE_MODE:{scope:"title",begin:E,relevance:0}});function T(e,n){
+
TITLE_MODE:{scope:"title",begin:E,relevance:0},UNDERSCORE_IDENT_RE:_,
+
UNDERSCORE_TITLE_MODE:{scope:"title",begin:_,relevance:0}});function T(e,n){
"."===e.input[e.index-1]&&n.ignoreMatch()}function I(e,n){
-
void 0!==e.className&&(e.scope=e.className,delete e.className)}function B(e,n){
+
void 0!==e.className&&(e.scope=e.className,delete e.className)}function C(e,n){
n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
e.__beforeBegin=T,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
-
void 0===e.relevance&&(e.relevance=0))}function C(e,n){
+
void 0===e.relevance&&(e.relevance=0))}function B(e,n){
Array.isArray(e.illegal)&&(e.illegal=b(...e.illegal))}function $(e,n){
if(e.match){
if(e.begin||e.end)throw Error("begin & end are not supported with match")
;e.begin=e.match,delete e.match}}function L(e,n){
-
void 0===e.relevance&&(e.relevance=1)}const j=(e,n)=>{if(!e.beforeMatch)return
+
void 0===e.relevance&&(e.relevance=1)}const D=(e,n)=>{if(!e.beforeMatch)return
;if(e.starts)throw Error("beforeMatch cannot be used with starts")
;const t=Object.assign({},e);Object.keys(e).forEach((n=>{delete e[n]
})),e.keywords=t.keywords,e.begin=h(t.beforeMatch,d(t.begin)),e.starts={
relevance:0,contains:[Object.assign(t,{endsParent:!0})]
},e.relevance=0,delete t.beforeMatch
-
},D=["of","and","for","in","not","or","if","then","parent","list","value"],z="keyword"
-
;function P(e,n,t=z){const s=Object.create(null)
-
;return"string"==typeof e?a(t,e.split(" ")):Array.isArray(e)?a(t,e):Object.keys(e).forEach((t=>{
-
Object.assign(s,P(e[t],n,t))})),s;function a(e,t){
+
},j=["of","and","for","in","not","or","if","then","parent","list","value"]
+
;function P(e,n,t="keyword"){const a=Object.create(null)
+
;return"string"==typeof e?s(t,e.split(" ")):Array.isArray(e)?s(t,e):Object.keys(e).forEach((t=>{
+
Object.assign(a,P(e[t],n,t))})),a;function s(e,t){
n&&(t=t.map((e=>e.toLowerCase()))),t.forEach((n=>{const t=n.split("|")
-
;s[t[0]]=[e,H(t[0],t[1])]}))}}function H(e,n){
-
return n?Number(n):(e=>D.includes(e.toLowerCase()))(e)?0:1}const U={},F=e=>{
-
console.error(e)},Z=(e,...n)=>{console.log("WARN: "+e,...n)},K=(e,n)=>{
-
U[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),U[`${e}/${n}`]=!0)
-
},G=Error();function W(e,n,{key:t}){let s=0;const a=e[t],i={},r={}
-
;for(let e=1;e<=n.length;e++)r[e+s]=a[e],i[e+s]=!0,s+=p(n[e-1])
+
;a[t[0]]=[e,z(t[0],t[1])]}))}}function z(e,n){
+
return n?Number(n):(e=>j.includes(e.toLowerCase()))(e)?0:1}const H={},U=e=>{
+
console.error(e)},F=(e,...n)=>{console.log("WARN: "+e,...n)},Z=(e,n)=>{
+
H[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),H[`${e}/${n}`]=!0)
+
},K=Error();function G(e,n,{key:t}){let a=0;const s=e[t],i={},r={}
+
;for(let e=1;e<=n.length;e++)r[e+a]=s[e],i[e+a]=!0,a+=p(n[e-1])
;e[t]=r,e[t]._emit=i,e[t]._multi=!0}function q(e){(e=>{
e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
}),(e=>{if(Array.isArray(e.begin)){
-
if(e.skip||e.excludeBegin||e.returnBegin)throw F("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
-
G
-
;if("object"!=typeof e.beginScope||null===e.beginScope)throw F("beginScope must be object"),
-
G;W(e,e.begin,{key:"beginScope"}),e.begin=m(e.begin,{joinWith:""})}})(e),(e=>{
+
if(e.skip||e.excludeBegin||e.returnBegin)throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
+
K
+
;if("object"!=typeof e.beginScope||null===e.beginScope)throw U("beginScope must be object"),
+
K;G(e,e.begin,{key:"beginScope"}),e.begin=f(e.begin,{joinWith:""})}})(e),(e=>{
if(Array.isArray(e.end)){
-
if(e.skip||e.excludeEnd||e.returnEnd)throw F("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
-
G
-
;if("object"!=typeof e.endScope||null===e.endScope)throw F("endScope must be object"),
-
G;W(e,e.end,{key:"endScope"}),e.end=m(e.end,{joinWith:""})}})(e)}function X(e){
+
if(e.skip||e.excludeEnd||e.returnEnd)throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
+
K
+
;if("object"!=typeof e.endScope||null===e.endScope)throw U("endScope must be object"),
+
K;G(e,e.end,{key:"endScope"}),e.end=f(e.end,{joinWith:""})}})(e)}function W(e){
function n(n,t){
return RegExp(l(n),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(t?"g":""))
}class t{constructor(){
···
addRule(e,n){
n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),
this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
-
;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(m(e,{joinWith:"|"
+
;const e=this.regexes.map((e=>e[1]));this.matcherRe=n(f(e,{joinWith:"|"
}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
;const n=this.matcherRe.exec(e);if(!n)return null
-
;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),s=this.matchIndexes[t]
-
;return n.splice(0,t),Object.assign(n,s)}}class a{constructor(){
+
;const t=n.findIndex(((e,n)=>n>0&&void 0!==e)),a=this.matchIndexes[t]
+
;return n.splice(0,t),Object.assign(n,a)}}class s{constructor(){
this.rules=[],this.multiRegexes=[],
this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t
···
this.regexIndex===this.count&&this.considerAll()),t}}
if(e.compilerExtensions||(e.compilerExtensions=[]),
e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
-
;return e.classNameAliases=s(e.classNameAliases||{}),function t(i,r){const o=i
+
;return e.classNameAliases=a(e.classNameAliases||{}),function t(i,r){const o=i
;if(i.isCompiled)return o
-
;[I,$,q,j].forEach((e=>e(i,r))),e.compilerExtensions.forEach((e=>e(i,r))),
-
i.__beforeBegin=null,[B,C,L].forEach((e=>e(i,r))),i.isCompiled=!0;let c=null
+
;[I,$,q,D].forEach((e=>e(i,r))),e.compilerExtensions.forEach((e=>e(i,r))),
+
i.__beforeBegin=null,[C,B,L].forEach((e=>e(i,r))),i.isCompiled=!0;let c=null
;return"object"==typeof i.keywords&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),
c=i.keywords.$pattern,
delete i.keywords.$pattern),c=c||/\w+/,i.keywords&&(i.keywords=P(i.keywords,e.case_insensitive)),
···
i.end&&(o.endRe=n(o.end)),
o.terminatorEnd=l(o.end)||"",i.endsWithParent&&r.terminatorEnd&&(o.terminatorEnd+=(i.end?"|":"")+r.terminatorEnd)),
i.illegal&&(o.illegalRe=n(i.illegal)),
-
i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((n=>s(e,{
-
variants:null},n)))),e.cachedVariants?e.cachedVariants:J(e)?s(e,{
-
starts:e.starts?s(e.starts):null
-
}):Object.isFrozen(e)?s(e):e))("self"===e?i:e)))),i.contains.forEach((e=>{t(e,o)
-
})),i.starts&&t(i.starts,r),o.matcher=(e=>{const n=new a
+
i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((n=>a(e,{
+
variants:null},n)))),e.cachedVariants?e.cachedVariants:X(e)?a(e,{
+
starts:e.starts?a(e.starts):null
+
}):Object.isFrozen(e)?a(e):e))("self"===e?i:e)))),i.contains.forEach((e=>{t(e,o)
+
})),i.starts&&t(i.starts,r),o.matcher=(e=>{const n=new s
;return e.contains.forEach((e=>n.addRule(e.begin,{rule:e,type:"begin"
}))),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:"end"
-
}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n})(o),o}(e)}function J(e){
-
return!!e&&(e.endsWithParent||J(e.starts))}class V extends Error{
+
}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n})(o),o}(e)}function X(e){
+
return!!e&&(e.endsWithParent||X(e.starts))}class V extends Error{
constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}
-
const Q=t,Y=s,ee=Symbol("nomatch"),ne=t=>{
-
const s=Object.create(null),a=Object.create(null),i=[];let r=!0
+
const J=t,Q=a,Y=Symbol("nomatch"),ee=t=>{
+
const a=Object.create(null),s=Object.create(null),i=[];let r=!0
;const o="Could not find the language '{}', did you forget to load/include a language module?",l={
disableAutodetect:!0,name:"Plain text",contains:[]};let p={
ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
-
cssSelector:"pre code",languages:null,__emitter:c};function f(e){
-
return p.noHighlightRe.test(e)}function m(e,n,t){let s="",a=""
-
;"object"==typeof n?(s=e,
-
t=n.ignoreIllegals,a=n.language):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."),
-
K("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
-
a=e,s=n),void 0===t&&(t=!0);const i={code:s,language:a};A("before:highlight",i)
-
;const r=i.result?i.result:_(i.language,i.code,t)
-
;return r.code=i.code,A("after:highlight",r),r}function _(e,t,a,i){
+
cssSelector:"pre code",languages:null,__emitter:c};function m(e){
+
return p.noHighlightRe.test(e)}function f(e,n,t){let a="",s=""
+
;"object"==typeof n?(a=e,
+
t=n.ignoreIllegals,s=n.language):(Z("10.7.0","highlight(lang, code, ...args) has been deprecated."),
+
Z("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
+
s=e,a=n),void 0===t&&(t=!0);const i={code:a,language:s};A("before:highlight",i)
+
;const r=i.result?i.result:E(i.language,i.code,t)
+
;return r.code=i.code,A("after:highlight",r),r}function E(e,t,s,i){
const c=Object.create(null);function l(){if(!A.keywords)return void O.addText(R)
;let e=0;A.keywordPatternRe.lastIndex=0;let n=A.keywordPatternRe.exec(R),t=""
;for(;n;){t+=R.substring(e,n.index)
-
;const a=N.case_insensitive?n[0].toLowerCase():n[0],i=(s=a,A.keywords[s]);if(i){
-
const[e,s]=i
-
;if(O.addText(t),t="",c[a]=(c[a]||0)+1,c[a]<=7&&(M+=s),e.startsWith("_"))t+=n[0];else{
+
;const s=N.case_insensitive?n[0].toLowerCase():n[0],i=(a=s,A.keywords[a]);if(i){
+
const[e,a]=i
+
;if(O.addText(t),t="",c[s]=(c[s]||0)+1,c[s]<=7&&(M+=a),e.startsWith("_"))t+=n[0];else{
const t=N.classNameAliases[e]||e;g(n[0],t)}}else t+=n[0]
-
;e=A.keywordPatternRe.lastIndex,n=A.keywordPatternRe.exec(R)}var s
+
;e=A.keywordPatternRe.lastIndex,n=A.keywordPatternRe.exec(R)}var a
;t+=R.substring(e),O.addText(t)}function d(){null!=A.subLanguage?(()=>{
if(""===R)return;let e=null;if("string"==typeof A.subLanguage){
-
if(!s[A.subLanguage])return void O.addText(R)
-
;e=_(A.subLanguage,R,!0,k[A.subLanguage]),k[A.subLanguage]=e._top
-
}else e=E(R,A.subLanguage.length?A.subLanguage:null)
+
if(!a[A.subLanguage])return void O.addText(R)
+
;e=E(A.subLanguage,R,!0,k[A.subLanguage]),k[A.subLanguage]=e._top
+
}else e=_(R,A.subLanguage.length?A.subLanguage:null)
;A.relevance>0&&(M+=e.relevance),O.__addSublanguage(e._emitter,e.language)
})():l(),R=""}function g(e,n){
""!==e&&(O.startScope(n),O.addText(e),O.endScope())}function u(e,n){let t=1
-
;const s=n.length-1;for(;t<=s;){if(!e._emit[t]){t++;continue}
-
const s=N.classNameAliases[e[t]]||e[t],a=n[t];s?g(a,s):(R=a,l(),R=""),t++}}
+
;const a=n.length-1;for(;t<=a;){if(!e._emit[t]){t++;continue}
+
const a=N.classNameAliases[e[t]]||e[t],s=n[t];a?g(s,a):(R=s,l(),R=""),t++}}
function h(e,n){
return e.scope&&"string"==typeof e.scope&&O.openNode(N.classNameAliases[e.scope]||e.scope),
e.beginScope&&(e.beginScope._wrap?(g(R,N.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
R=""):e.beginScope._multi&&(u(e.beginScope,n),R="")),A=Object.create(e,{parent:{
-
value:A}}),A}function b(e,t,s){let a=((e,n)=>{const t=e&&e.exec(n)
-
;return t&&0===t.index})(e.endRe,s);if(a){if(e["on:end"]){const s=new n(e)
-
;e["on:end"](t,s),s.isMatchIgnored&&(a=!1)}if(a){
+
value:A}}),A}function b(e,t,a){let s=((e,n)=>{const t=e&&e.exec(n)
+
;return t&&0===t.index})(e.endRe,a);if(s){if(e["on:end"]){const a=new n(e)
+
;e["on:end"](t,a),a.isMatchIgnored&&(s=!1)}if(s){
for(;e.endsParent&&e.parent;)e=e.parent;return e}}
-
if(e.endsWithParent)return b(e.parent,t,s)}function f(e){
-
return 0===A.matcher.regexIndex?(R+=e[0],1):(B=!0,0)}function m(e){
-
const n=e[0],s=t.substring(e.index),a=b(A,e,s);if(!a)return ee;const i=A
+
if(e.endsWithParent)return b(e.parent,t,a)}function m(e){
+
return 0===A.matcher.regexIndex?(R+=e[0],1):(C=!0,0)}function f(e){
+
const n=e[0],a=t.substring(e.index),s=b(A,e,a);if(!s)return Y;const i=A
;A.endScope&&A.endScope._wrap?(d(),
g(n,A.endScope._wrap)):A.endScope&&A.endScope._multi?(d(),
u(A.endScope,e)):i.skip?R+=n:(i.returnEnd||i.excludeEnd||(R+=n),
d(),i.excludeEnd&&(R=n));do{
A.scope&&O.closeNode(),A.skip||A.subLanguage||(M+=A.relevance),A=A.parent
-
}while(A!==a.parent);return a.starts&&h(a.starts,e),i.returnEnd?0:n.length}
-
let y={};function w(s,i){const o=i&&i[0];if(R+=s,null==o)return d(),0
+
}while(A!==s.parent);return s.starts&&h(s.starts,e),i.returnEnd?0:n.length}
+
let y={};function w(a,i){const o=i&&i[0];if(R+=a,null==o)return d(),0
;if("begin"===y.type&&"end"===i.type&&y.index===i.index&&""===o){
if(R+=t.slice(i.index,i.index+1),!r){const n=Error(`0 width match regex (${e})`)
;throw n.languageName=e,n.badRule=y.rule,n}return 1}
if(y=i,"begin"===i.type)return(e=>{
-
const t=e[0],s=e.rule,a=new n(s),i=[s.__beforeBegin,s["on:begin"]]
-
;for(const n of i)if(n&&(n(e,a),a.isMatchIgnored))return f(t)
-
;return s.skip?R+=t:(s.excludeBegin&&(R+=t),
-
d(),s.returnBegin||s.excludeBegin||(R=t)),h(s,e),s.returnBegin?0:t.length})(i)
-
;if("illegal"===i.type&&!a){
+
const t=e[0],a=e.rule,s=new n(a),i=[a.__beforeBegin,a["on:begin"]]
+
;for(const n of i)if(n&&(n(e,s),s.isMatchIgnored))return m(t)
+
;return a.skip?R+=t:(a.excludeBegin&&(R+=t),
+
d(),a.returnBegin||a.excludeBegin||(R=t)),h(a,e),a.returnBegin?0:t.length})(i)
+
;if("illegal"===i.type&&!s){
const e=Error('Illegal lexeme "'+o+'" for mode "'+(A.scope||"<unnamed>")+'"')
-
;throw e.mode=A,e}if("end"===i.type){const e=m(i);if(e!==ee)return e}
-
if("illegal"===i.type&&""===o)return 1
+
;throw e.mode=A,e}if("end"===i.type){const e=f(i);if(e!==Y)return e}
+
if("illegal"===i.type&&""===o)return i.index===t.length||(R+="\n"),1
;if(I>1e5&&I>3*i.index)throw Error("potential infinite loop, way more iterations than matches")
;return R+=o,o.length}const N=S(e)
-
;if(!N)throw F(o.replace("{}",e)),Error('Unknown language: "'+e+'"')
-
;const v=X(N);let x="",A=i||v;const k={},O=new p.__emitter(p);(()=>{const e=[]
+
;if(!N)throw U(o.replace("{}",e)),Error('Unknown language: "'+e+'"')
+
;const v=W(N);let x="",A=i||v;const k={},O=new p.__emitter(p);(()=>{const e=[]
;for(let n=A;n!==N;n=n.parent)n.scope&&e.unshift(n.scope)
-
;e.forEach((e=>O.openNode(e)))})();let R="",M=0,T=0,I=0,B=!1;try{
+
;e.forEach((e=>O.openNode(e)))})();let R="",M=0,T=0,I=0,C=!1;try{
if(N.__emitTokens)N.__emitTokens(t,O);else{for(A.matcher.considerAll();;){
-
I++,B?B=!1:A.matcher.considerAll(),A.matcher.lastIndex=T
+
I++,C?C=!1:A.matcher.considerAll(),A.matcher.lastIndex=T
;const e=A.matcher.exec(t);if(!e)break;const n=w(t.substring(T,e.index),e)
;T=e.index+n}w(t.substring(T))}return O.finalize(),x=O.toHTML(),{language:e,
value:x,relevance:M,illegal:!1,_emitter:O,_top:A}}catch(n){
-
if(n.message&&n.message.includes("Illegal"))return{language:e,value:Q(t),
+
if(n.message&&n.message.includes("Illegal"))return{language:e,value:J(t),
illegal:!0,relevance:0,_illegalBy:{message:n.message,index:T,
context:t.slice(T-100,T+100),mode:n.mode,resultSoFar:x},_emitter:O};if(r)return{
-
language:e,value:Q(t),illegal:!1,relevance:0,errorRaised:n,_emitter:O,_top:A}
-
;throw n}}function E(e,n){n=n||p.languages||Object.keys(s);const t=(e=>{
-
const n={value:Q(e),illegal:!1,relevance:0,_top:l,_emitter:new p.__emitter(p)}
-
;return n._emitter.addText(e),n})(e),a=n.filter(S).filter(x).map((n=>_(n,e,!1)))
-
;a.unshift(t);const i=a.sort(((e,n)=>{
+
language:e,value:J(t),illegal:!1,relevance:0,errorRaised:n,_emitter:O,_top:A}
+
;throw n}}function _(e,n){n=n||p.languages||Object.keys(a);const t=(e=>{
+
const n={value:J(e),illegal:!1,relevance:0,_top:l,_emitter:new p.__emitter(p)}
+
;return n._emitter.addText(e),n})(e),s=n.filter(S).filter(x).map((n=>E(n,e,!1)))
+
;s.unshift(t);const i=s.sort(((e,n)=>{
if(e.relevance!==n.relevance)return n.relevance-e.relevance
;if(e.language&&n.language){if(S(e.language).supersetOf===n.language)return 1
;if(S(n.language).supersetOf===e.language)return-1}return 0})),[r,o]=i,c=r
;return c.secondBest=o,c}function y(e){let n=null;const t=(e=>{
let n=e.className+" ";n+=e.parentNode?e.parentNode.className:""
;const t=p.languageDetectRe.exec(n);if(t){const n=S(t[1])
-
;return n||(Z(o.replace("{}",t[1])),
-
Z("Falling back to no-highlight mode for this block.",e)),n?t[1]:"no-highlight"}
-
return n.split(/\s+/).find((e=>f(e)||S(e)))})(e);if(f(t))return
+
;return n||(F(o.replace("{}",t[1])),
+
F("Falling back to no-highlight mode for this block.",e)),n?t[1]:"no-highlight"}
+
return n.split(/\s+/).find((e=>m(e)||S(e)))})(e);if(m(t))return
;if(A("before:highlightElement",{el:e,language:t
}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e)
;if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
console.warn("The element with unescaped HTML:"),
console.warn(e)),p.throwUnescapedHTML))throw new V("One of your code blocks includes unescaped HTML.",e.innerHTML)
-
;n=e;const s=n.textContent,i=t?m(s,{language:t,ignoreIllegals:!0}):E(s)
-
;e.innerHTML=i.value,e.dataset.highlighted="yes",((e,n,t)=>{const s=n&&a[n]||t
-
;e.classList.add("hljs"),e.classList.add("language-"+s)
+
;n=e;const a=n.textContent,i=t?f(a,{language:t,ignoreIllegals:!0}):_(a)
+
;e.innerHTML=i.value,e.dataset.highlighted="yes",((e,n,t)=>{const a=n&&s[n]||t
+
;e.classList.add("hljs"),e.classList.add("language-"+a)
})(e,t,i.language),e.result={language:i.language,re:i.relevance,
relevance:i.relevance},i.secondBest&&(e.secondBest={
language:i.secondBest.language,relevance:i.secondBest.relevance
-
}),A("after:highlightElement",{el:e,result:i,text:s})}let w=!1;function N(){
-
"loading"!==document.readyState?document.querySelectorAll(p.cssSelector).forEach(y):w=!0
-
}function S(e){return e=(e||"").toLowerCase(),s[e]||s[a[e]]}
+
}),A("after:highlightElement",{el:e,result:i,text:a})}let w=!1;function N(){
+
if("loading"===document.readyState)return w||window.addEventListener("DOMContentLoaded",(()=>{
+
N()}),!1),void(w=!0);document.querySelectorAll(p.cssSelector).forEach(y)}
+
function S(e){return e=(e||"").toLowerCase(),a[e]||a[s[e]]}
function v(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach((e=>{
-
a[e.toLowerCase()]=n}))}function x(e){const n=S(e)
+
s[e.toLowerCase()]=n}))}function x(e){const n=S(e)
;return n&&!n.disableAutodetect}function A(e,n){const t=e;i.forEach((e=>{
-
e[t]&&e[t](n)}))}
-
"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(()=>{
-
w&&N()}),!1),Object.assign(t,{highlight:m,highlightAuto:E,highlightAll:N,
+
e[t]&&e[t](n)}))}Object.assign(t,{highlight:f,highlightAuto:_,highlightAll:N,
highlightElement:y,
-
highlightBlock:e=>(K("10.7.0","highlightBlock will be removed entirely in v12.0"),
-
K("10.7.0","Please use highlightElement now."),y(e)),configure:e=>{p=Y(p,e)},
+
highlightBlock:e=>(Z("10.7.0","highlightBlock will be removed entirely in v12.0"),
+
Z("10.7.0","Please use highlightElement now."),y(e)),configure:e=>{p=Q(p,e)},
initHighlighting:()=>{
-
N(),K("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
+
N(),Z("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
initHighlightingOnLoad:()=>{
-
N(),K("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
-
},registerLanguage:(e,n)=>{let a=null;try{a=n(t)}catch(n){
-
if(F("Language definition for '{}' could not be registered.".replace("{}",e)),
-
!r)throw n;F(n),a=l}
-
a.name||(a.name=e),s[e]=a,a.rawDefinition=n.bind(null,t),a.aliases&&v(a.aliases,{
-
languageName:e})},unregisterLanguage:e=>{delete s[e]
-
;for(const n of Object.keys(a))a[n]===e&&delete a[n]},
-
listLanguages:()=>Object.keys(s),getLanguage:S,registerAliases:v,
-
autoDetection:x,inherit:Y,addPlugin:e=>{(e=>{
+
N(),Z("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
+
},registerLanguage:(e,n)=>{let s=null;try{s=n(t)}catch(n){
+
if(U("Language definition for '{}' could not be registered.".replace("{}",e)),
+
!r)throw n;U(n),s=l}
+
s.name||(s.name=e),a[e]=s,s.rawDefinition=n.bind(null,t),s.aliases&&v(s.aliases,{
+
languageName:e})},unregisterLanguage:e=>{delete a[e]
+
;for(const n of Object.keys(s))s[n]===e&&delete s[n]},
+
listLanguages:()=>Object.keys(a),getLanguage:S,registerAliases:v,
+
autoDetection:x,inherit:Q,addPlugin:e=>{(e=>{
e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=n=>{
e["before:highlightBlock"](Object.assign({block:n.el},n))
}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=n=>{
e["after:highlightBlock"](Object.assign({block:n.el},n))})})(e),i.push(e)},
removePlugin:e=>{const n=i.indexOf(e);-1!==n&&i.splice(n,1)}}),t.debugMode=()=>{
-
r=!1},t.safeMode=()=>{r=!0},t.versionString="11.9.0",t.regex={concat:h,
+
r=!1},t.safeMode=()=>{r=!0},t.versionString="11.11.1",t.regex={concat:h,
lookahead:d,either:b,optional:u,anyNumberOfTimes:g}
;for(const n in M)"object"==typeof M[n]&&e(M[n]);return Object.assign(t,M),t
-
},te=ne({});te.newInstance=()=>ne({});var se=te
-
;const ae="[A-Za-z$_][0-9A-Za-z$_]*",ie=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],re=["true","false","null","undefined","NaN","Infinity"],oe=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],ce=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],le=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],de=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ge=[].concat(le,oe,ce)
-
;var ue=Object.freeze({__proto__:null,grmr_bash:e=>{const n=e.regex,t={},s={
+
},ne=ee({});ne.newInstance=()=>ee({})
+
;const te="[A-Za-z$_][0-9A-Za-z$_]*",ae=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],se=["true","false","null","undefined","NaN","Infinity"],ie=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],re=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],oe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ce=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],le=[].concat(oe,ie,re)
+
;var de=Object.freeze({__proto__:null,grmr_bash:e=>{const n=e.regex,t={},a={
begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]}
;Object.assign(t,{className:"variable",variants:[{
-
begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const a={
+
begin:n.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},a]});const s={
className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]
},i=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),r={
begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,
end:/(\w+)/,className:"string"})]}},o={className:"string",begin:/"/,end:/"/,
-
contains:[e.BACKSLASH_ESCAPE,t,a]};a.contains.push(o);const c={begin:/\$?\(\(/,
+
contains:[e.BACKSLASH_ESCAPE,t,s]};s.contains.push(o);const c={begin:/\$?\(\(/,
end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,t]
},l=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10
}),d={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,
contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{
name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,
-
keyword:["if","then","else","elif","fi","for","while","until","in","do","done","case","esac","function","select"],
+
keyword:["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],
literal:["true","false"],
built_in:["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset","alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias","set","shopt","autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp","chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"]
},contains:[l,e.SHEBANG(),d,c,i,r,{match:/(\/[a-z._-]+)+/},o,{match:/\\"/},{
className:"string",begin:/'/,end:/'/},{match:/\\'/},t]}},grmr_ini:e=>{
const n=e.regex,t={className:"number",relevance:0,variants:[{
-
begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},s=e.COMMENT();s.variants=[{
-
begin:/;/,end:/$/},{begin:/#/,end:/$/}];const a={className:"variable",
+
begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},a=e.COMMENT();a.variants=[{
+
begin:/;/,end:/$/},{begin:/#/,end:/$/}];const s={className:"variable",
variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},i={
className:"literal",begin:/\bon|off|true|false|yes|no\b/},r={className:"string",
contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{
begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]
-
},o={begin:/\[/,end:/\]/,contains:[s,i,a,r,t,"self"],relevance:0
+
},o={begin:/\[/,end:/\]/,contains:[a,i,s,r,t,"self"],relevance:0
},c=n.either(/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/);return{
name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,
-
contains:[s,{className:"section",begin:/\[+/,end:/\]+/},{
+
contains:[a,{className:"section",begin:/\[+/,end:/\]+/},{
begin:n.concat(c,"(\\s*\\.\\s*",c,")*",n.lookahead(/\s*=\s*[^#\s]/)),
-
className:"attr",starts:{end:/$/,contains:[s,o,i,a,r,t]}}]}},
-
grmr_javascript:e=>{const n=e.regex,t=ae,s={begin:/<[A-Za-z0-9\\._:-]+/,
+
className:"attr",starts:{end:/$/,contains:[a,o,i,s,r,t]}}]}},
+
grmr_javascript:e=>{const n=e.regex,t=te,a={begin:/<[A-Za-z0-9\\._:-]+/,
end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{
-
const t=e[0].length+e.index,s=e.input[t]
-
;if("<"===s||","===s)return void n.ignoreMatch();let a
-
;">"===s&&(((e,{after:n})=>{const t="</"+e[0].slice(1)
+
const t=e[0].length+e.index,a=e.input[t]
+
;if("<"===a||","===a)return void n.ignoreMatch();let s
+
;">"===a&&(((e,{after:n})=>{const t="</"+e[0].slice(1)
;return-1!==e.input.indexOf(t,n)})(e,{after:t})||n.ignoreMatch())
;const i=e.input.substring(t)
-
;((a=i.match(/^\s*=/))||(a=i.match(/^\s+extends\s+/))&&0===a.index)&&n.ignoreMatch()
-
}},a={$pattern:ae,keyword:ie,literal:re,built_in:ge,"variable.language":de
+
;((s=i.match(/^\s*=/))||(s=i.match(/^\s+extends\s+/))&&0===s.index)&&n.ignoreMatch()
+
}},s={$pattern:te,keyword:ae,literal:se,built_in:le,"variable.language":ce
},i="[0-9](_?[0-9])*",r=`\\.(${i})`,o="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",c={
className:"number",variants:[{
begin:`(\\b(${o})((${r})|\\.)?|(${r}))[eE][+-]?(${i})\\b`},{
···
begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{
begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{
begin:"\\b0[0-7]+n?\\b"}],relevance:0},l={className:"subst",begin:"\\$\\{",
-
end:"\\}",keywords:a,contains:[]},d={begin:"html`",end:"",starts:{end:"`",
+
end:"\\}",keywords:s,contains:[]},d={begin:".?html`",end:"",starts:{end:"`",
returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,l],subLanguage:"xml"}},g={
-
begin:"css`",end:"",starts:{end:"`",returnEnd:!1,
-
contains:[e.BACKSLASH_ESCAPE,l],subLanguage:"css"}},u={begin:"gql`",end:"",
+
begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,
+
contains:[e.BACKSLASH_ESCAPE,l],subLanguage:"css"}},u={begin:".?gql`",end:"",
starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,l],
subLanguage:"graphql"}},h={className:"string",begin:"`",end:"`",
contains:[e.BACKSLASH_ESCAPE,l]},b={className:"comment",
···
endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]
}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]
},p=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,g,u,h,{match:/\$\d+/},c]
-
;l.contains=p.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(p)
-
});const f=[].concat(b,l.contains),m=f.concat([{begin:/(\s*)\(/,end:/\)/,
-
keywords:a,contains:["self"].concat(f)}]),_={className:"params",begin:/(\s*)\(/,
-
end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:m},E={variants:[{
+
;l.contains=p.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(p)
+
});const m=[].concat(b,l.contains),f=m.concat([{begin:/(\s*)\(/,end:/\)/,
+
keywords:s,contains:["self"].concat(m)}]),E={className:"params",begin:/(\s*)\(/,
+
end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:f},_={variants:[{
match:[/class/,/\s+/,t,/\s+/,/extends/,/\s+/,n.concat(t,"(",n.concat(/\./,t),")*")],
scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{
match:[/class/,/\s+/,t],scope:{1:"keyword",3:"title.class"}}]},y={relevance:0,
match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),
-
className:"title.class",keywords:{_:[...oe,...ce]}},w={variants:[{
+
className:"title.class",keywords:{_:[...ie,...re]}},w={variants:[{
match:[/function/,/\s+/,t,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],
-
className:{1:"keyword",3:"title.function"},label:"func.def",contains:[_],
+
className:{1:"keyword",3:"title.function"},label:"func.def",contains:[E],
illegal:/%/},N={
-
match:n.concat(/\b/,(S=[...le,"super","import"].map((e=>e+"\\s*\\(")),
+
match:n.concat(/\b/,(S=[...oe,"super","import"].map((e=>e+"\\s*\\(")),
n.concat("(?!",S.join("|"),")")),t,n.lookahead(/\s*\(/)),
className:"title.function",relevance:0};var S;const v={
begin:n.concat(/\./,n.lookahead(n.concat(t,/(?![0-9A-Za-z$_(])/))),end:t,
excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},x={
match:[/get|set/,/\s+/,t,/(?=\()/],className:{1:"keyword",3:"title.function"},
-
contains:[{begin:/\(\)/},_]
+
contains:[{begin:/\(\)/},E]
},A="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",k={
match:[/const|var|let/,/\s+/,t,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(A)],
-
keywords:"async",className:{1:"keyword",3:"title.function"},contains:[_]}
-
;return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{
-
PARAMS_CONTAINS:m,CLASS_REFERENCE:y},illegal:/#(?![$_A-z])/,
+
keywords:"async",className:{1:"keyword",3:"title.function"},contains:[E]}
+
;return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{
+
PARAMS_CONTAINS:f,CLASS_REFERENCE:y},illegal:/#(?![$_A-z])/,
contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{
label:"use_strict",className:"meta",relevance:10,
begin:/^\s*['"]use (strict|asm)['"]/
},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,g,u,h,b,{match:/\$\d+/},c,y,{
-
className:"attr",begin:t+n.lookahead(":"),relevance:0},k,{
+
scope:"attr",match:t+n.lookahead(":"),relevance:0},k,{
begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",
keywords:"return throw case",relevance:0,contains:[b,e.REGEXP_MODE,{
className:"function",begin:A,returnBegin:!0,end:"\\s*=>",contains:[{
className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{
className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,
-
excludeBegin:!0,excludeEnd:!0,keywords:a,contains:m}]}]},{begin:/,/,relevance:0
+
excludeBegin:!0,excludeEnd:!0,keywords:s,contains:f}]}]},{begin:/,/,relevance:0
},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{
-
match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:s.begin,
-
"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{
-
begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},w,{
+
match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:a.begin,
+
"on:begin":a.isTrulyOpeningTag,end:a.end}],subLanguage:"xml",contains:[{
+
begin:a.begin,end:a.end,skip:!0,contains:["self"]}]}]},w,{
beginKeywords:"while if switch catch for"},{
begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",
-
returnBegin:!0,label:"func.def",contains:[_,e.inherit(e.TITLE_MODE,{begin:t,
+
returnBegin:!0,label:"func.def",contains:[E,e.inherit(e.TITLE_MODE,{begin:t,
className:"title.function"})]},{match:/\.\.\./,relevance:0},v,{match:"\\$"+t,
relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},
-
contains:[_]},N,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,
-
className:"variable.constant"},E,x,{match:/\$[(.]/}]}},grmr_makefile:e=>{
+
contains:[E]},N,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,
+
className:"variable.constant"},_,x,{match:/\$[(.]/}]}},grmr_makefile:e=>{
const n={className:"variable",variants:[{
begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{
begin:/\$[@%<?\^\+\*]/}]},t={className:"string",begin:/"/,end:/"/,
-
contains:[e.BACKSLASH_ESCAPE,n]},s={className:"variable",begin:/\$\([\w-]+\s/,
+
contains:[e.BACKSLASH_ESCAPE,n]},a={className:"variable",begin:/\$\([\w-]+\s/,
end:/\)/,keywords:{
built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"
-
},contains:[n]},a={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={
+
},contains:[n,t]},s={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},i={
className:"section",begin:/^[^\s]+:/,end:/$/,contains:[n]};return{
name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,
keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"
-
},contains:[e.HASH_COMMENT_MODE,n,t,s,a,{className:"meta",begin:/^\.PHONY:/,
+
},contains:[e.HASH_COMMENT_MODE,n,t,a,s,{className:"meta",begin:/^\.PHONY:/,
end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},i]}},grmr_nix:e=>{
-
const n={
-
keyword:["rec","with","let","in","inherit","assert","if","else","then"],
-
literal:["true","false","or","and","null"],
-
built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"]
-
},t={className:"subst",begin:/\$\{/,end:/\}/,keywords:n},s={className:"string",
-
contains:[{className:"char.escape",begin:/''\$/},t],variants:[{begin:"''",
-
end:"''"},{begin:'"',end:'"'}]
-
},a=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{
-
begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{
-
className:"attr",begin:/\S+/,relevance:.2}]}];return t.contains=a,{name:"Nix",
-
aliases:["nixos"],keywords:n,contains:a}},grmr_python:e=>{
-
const n=e.regex,t=/[\p{XID_Start}_]\p{XID_Continue}*/u,s=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={
-
$pattern:/[A-Za-z]\w+|__\w+__/,keyword:s,
+
const n=e.regex,t={
+
keyword:["assert","else","if","in","inherit","let","or","rec","then","with"],
+
literal:["true","false","null"],
+
built_in:["abort","baseNameOf","builtins","derivation","derivationStrict","dirOf","fetchGit","fetchMercurial","fetchTarball","fetchTree","fromTOML","import","isNull","map","placeholder","removeAttrs","scopedImport","throw","toString"]
+
},a={scope:"built_in",
+
match:n.either(...["abort","add","addDrvOutputDependencies","addErrorContext","all","any","appendContext","attrNames","attrValues","baseNameOf","bitAnd","bitOr","bitXor","break","builtins","catAttrs","ceil","compareVersions","concatLists","concatMap","concatStringsSep","convertHash","currentSystem","currentTime","deepSeq","derivation","derivationStrict","dirOf","div","elem","elemAt","false","fetchGit","fetchMercurial","fetchTarball","fetchTree","fetchurl","filter","filterSource","findFile","flakeRefToString","floor","foldl'","fromJSON","fromTOML","functionArgs","genList","genericClosure","getAttr","getContext","getEnv","getFlake","groupBy","hasAttr","hasContext","hashFile","hashString","head","import","intersectAttrs","isAttrs","isBool","isFloat","isFunction","isInt","isList","isNull","isPath","isString","langVersion","length","lessThan","listToAttrs","map","mapAttrs","match","mul","nixPath","nixVersion","null","parseDrvName","parseFlakeRef","partition","path","pathExists","placeholder","readDir","readFile","readFileType","removeAttrs","replaceStrings","scopedImport","seq","sort","split","splitVersion","storeDir","storePath","stringLength","sub","substring","tail","throw","toFile","toJSON","toPath","toString","toXML","trace","traceVerbose","true","tryEval","typeOf","unsafeDiscardOutputDependency","unsafeDiscardStringContext","unsafeGetAttrPos","warn","zipAttrsWith"].map((e=>"builtins\\."+e))),
+
relevance:10},s="[A-Za-z_][A-Za-z0-9_'-]*",i={scope:"symbol",
+
match:RegExp(`<${s}(/${s})*>`)},r="[A-Za-z0-9_\\+\\.-]+",o={scope:"symbol",
+
match:RegExp(`(\\.\\.|\\.|~)?/(${r})?(/${r})*(?=[\\s;])`)
+
},c=n.either("==","=","\\+\\+","\\+","<=","<\\|","<",">=",">","->","//","/","!=","!","\\|\\|","\\|>","\\?","\\*","&&"),l={
+
scope:"operator",match:n.concat(c,/(?!-)/),relevance:0},d={scope:"number",
+
match:RegExp(e.NUMBER_RE+"(?!-)"),relevance:0},g={variants:[{scope:"operator",
+
beforeMatch:/\s/,begin:/-(?!>)/},{begin:[RegExp(""+e.NUMBER_RE),/-/,/(?!>)/],
+
beginScope:{1:"number",2:"operator"}},{begin:[c,/-/,/(?!>)/],beginScope:{
+
1:"operator",2:"operator"}}],relevance:0},u={beforeMatch:/(^|\{|;)\s*/,
+
begin:RegExp(`${s}(\\.${s})*\\s*=(?!=)`),returnBegin:!0,relevance:0,contains:[{
+
scope:"attr",match:RegExp(`${s}(\\.${s})*(?=\\s*=)`),relevance:.2}]},h={
+
scope:"subst",begin:/\$\{/,end:/\}/,keywords:t},b={scope:"char.escape",
+
match:/\\(?!\$)./},p={scope:"string",variants:[{begin:"''",end:"''",contains:[{
+
scope:"char.escape",match:/''\$/},h,{scope:"char.escape",match:/'''/},b]},{
+
begin:'"',end:'"',contains:[{scope:"char.escape",match:/\\\$/},h,b]}]},m={
+
scope:"params",match:RegExp(s+"\\s*:(?=\\s)")
+
},f=[d,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT(/\/\*\*(?!\/)/,/\*\//,{
+
subLanguage:"markdown",relevance:0}),a,p,i,o,m,u,g,l];return h.contains=f,{
+
name:"Nix",aliases:["nixos"],keywords:t,contains:f.concat([{scope:"meta.prompt",
+
match:/^nix-repl>(?=\s)/,relevance:10},{scope:"meta",beforeMatch:/\s+/,
+
begin:/:([a-z]+|\?)/}])}},grmr_python:e=>{
+
const n=e.regex,t=/[\p{XID_Start}_]\p{XID_Continue}*/u,a=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={
+
$pattern:/[A-Za-z]\w+|__\w+__/,keyword:a,
built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],
literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],
type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]
},i={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/,
-
end:/\}/,keywords:a,illegal:/#/},o={begin:/\{\{/,relevance:0},c={
+
end:/\}/,keywords:s,illegal:/#/},o={begin:/\{\{/,relevance:0},c={
className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{
begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,
contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{
···
end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,
contains:[e.BACKSLASH_ESCAPE,o,r]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,
contains:[e.BACKSLASH_ESCAPE,o,r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]
-
},l="[0-9](_?[0-9])*",d=`(\\b(${l}))?\\.(${l})|\\b(${l})\\.`,g="\\b|"+s.join("|"),u={
+
},l="[0-9](_?[0-9])*",d=`(\\b(${l}))?\\.(${l})|\\b(${l})\\.`,g="\\b|"+a.join("|"),u={
className:"number",relevance:0,variants:[{
begin:`(\\b(${l})|(${d}))[eE][+-]?(${l})[jJ]?(?=${g})`},{begin:`(${d})[jJ]?`},{
begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${g})`},{
begin:`\\b0[bB](_?[01])+[lL]?(?=${g})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${g})`
},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${g})`},{begin:`\\b(${l})[jJ](?=${g})`
-
}]},h={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:a,
+
}]},h={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:s,
contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},b={
className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,
-
end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,
+
end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,
contains:["self",i,u,c,e.HASH_COMMENT_MODE]}]};return r.contains=[c,u,i],{
-
name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,
-
illegal:/(<\/|\?)|=>/,contains:[i,u,{begin:/\bself\b/},{beginKeywords:"if",
-
relevance:0},{match:/\bor\b/,scope:"keyword"},c,h,e.HASH_COMMENT_MODE,{
-
match:[/\bdef/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[b]},{
-
variants:[{match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{
-
match:[/\bclass/,/\s+/,t]}],scope:{1:"keyword",3:"title.class",
-
6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,
-
contains:[u,b,c]}]}},grmr_python_repl:e=>({aliases:["pycon"],contains:[{
-
className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}
-
},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}),
-
grmr_rust:e=>{
-
const n=e.regex,t=/(r#)?/,s=n.concat(t,e.UNDERSCORE_IDENT_RE),a=n.concat(t,e.IDENT_RE),i={
+
name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,
+
illegal:/(<\/|\?)|=>/,contains:[i,u,{scope:"variable.language",match:/\bself\b/
+
},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"
+
},c,h,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",
+
3:"title.function"},contains:[b]},{variants:[{
+
match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],
+
scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{
+
className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[u,b,c]}]}},
+
grmr_python_repl:e=>({aliases:["pycon"],contains:[{className:"meta.prompt",
+
starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{
+
begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}),grmr_rust:e=>{
+
const n=e.regex,t=/(r#)?/,a=n.concat(t,e.UNDERSCORE_IDENT_RE),s=n.concat(t,e.IDENT_RE),i={
className:"title.function.invoke",relevance:0,
-
begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,a,n.lookahead(/\s*\(/))
+
begin:n.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,n.lookahead(/\s*\(/))
},r="([ui](8|16|32|64|128|size)|f(32|64))?",o=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],c=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"]
;return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:c,
keyword:["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],
literal:["true","false","Some","None","Ok","Err"],built_in:o},illegal:"</",
contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]
}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{
-
className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{
-
begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",
-
begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{
-
begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{
-
begin:"\\b0x([A-Fa-f0-9_]+)"+r},{
+
className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",
+
variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{
+
scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{
+
className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r
+
},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{
begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{
-
begin:[/fn/,/\s+/,s],className:{1:"keyword",3:"title.function"}},{
+
begin:[/fn/,/\s+/,a],className:{1:"keyword",3:"title.function"}},{
className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",
begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{
-
begin:[/let/,/\s+/,/(?:mut\s+)?/,s],className:{1:"keyword",3:"keyword",
-
4:"variable"}},{begin:[/for/,/\s+/,s,/\s+/,/in/],className:{1:"keyword",
-
3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,s],className:{1:"keyword",
-
3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,s],
+
begin:[/let/,/\s+/,/(?:mut\s+)?/,a],className:{1:"keyword",3:"keyword",
+
4:"variable"}},{begin:[/for/,/\s+/,a,/\s+/,/in/],className:{1:"keyword",
+
3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,a],className:{1:"keyword",
+
3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,a],
className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{
keyword:"Self",built_in:o,type:c}},{className:"punctuation",begin:"->"},i]}},
grmr_shell:e=>({name:"Shell Session",aliases:["console","shellsession"],
contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,
-
starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]})});const he=se
-
;for(const e of Object.keys(ue)){const n=e.replace("grmr_","").replace("_","-")
-
;he.registerLanguage(n,ue[e])}return he}()
-
;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);
+
starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]})});const ge=ne
+
;for(const e of Object.keys(de)){const n=e.replace("grmr_","").replace("_","-")
+
;ge.registerLanguage(n,de[e])}return ge}()
+
;"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs);
+8
nix/devshell.nix
···
pkgs.nvd
];
};
+
+
docs = pkgs.mkShellNoCC {
+
packages = with pkgs; [
+
mdbook
+
mdbook-admonish
+
mdbook-pagetoc
+
];
+
};
}