This is a simple tool to enhance the HTML documentation generated by the Deno
CLI's builtin command, deno doc --html
(Deno v1.38.0+). It improves the CSS
styling, adding support for dark mode and persisted color scheme preferences,
along with some other usability improvements.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum Char { | |
Null = 0, | |
/** | |
* The `\b` character. | |
*/ | |
Backspace = 8, | |
/** | |
* The `\t` character. | |
*/ | |
Tab = 9, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--bg-body: rgb(231 229 228); | |
--bg-content: white; | |
--bg-highlight: white; | |
--bg-searchbar: rgb(231 229 228); | |
--bg-search-results-hover: rgb(243 244 246); | |
--bg-code: rgb(243 244 246); | |
--bg-overload-label: rgb(243 244 246); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference no-default-lib="true" /> | |
// deno-lint-ignore-file no-unused-vars no-explicit-any | |
import { | |
inspect, | |
type InspectOptions, | |
type InspectOptionsStylized, | |
// highlight, | |
indexOf, | |
pop, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface ListAllOptions<T> extends Deno.KvListOptions { | |
comparer?(a: Deno.KvEntry<T>, b: Deno.KvEntry<T>): number; | |
} | |
export interface ListEntry<T> extends Deno.KvEntry<T> { | |
readonly cursor: string; | |
} | |
export async function listAll<T>( | |
kv: Deno.Kv, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The MIT License (MIT) | |
Copyright © 2023 Nicholas Berlette (https://github.com/nberlette) | |
Copyright © 2023 Sindre Sorhus (https://github.com/sindresorhus) | |
Permission is hereby granted, free of charge, to any person obtaining a copy of | |
this software and associated documentation files (the “Software”), to deal in | |
the Software without restriction, including without limitation the rights to | |
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
the Software, and to permit persons to whom the Software is furnished to do so, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2024+ Nicholas Berlette (https://github.com/nberlette) | |
// Published under the MIT license. All rights reserved. | |
/** | |
* Removes common leading whitespace from each line in {@linkcode S}. | |
* This is the type-level counterpart to the {@linkcode outdent} function. | |
* | |
* @example | |
* ```ts | |
* type S = Outdent<` |
This is a bare-bones implementation of the interfaces AsyncDisposableStack
and DisposableStack
from the [Explicit Resource Management Proposal].
Note: see the examples below for more detailed usage examples.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// deno-lint-ignore-file | |
// Generated by Peggy 3.0.2. | |
// https://peggyjs.org/ | |
export default (function () { | |
"use strict"; | |
function add(obj, props) { | |
for (const [k, v] of Object.entries(props)) if (v) obj[k] = v; | |
return obj; | |
} |