Repository: denoland/deno
Pull request: feat(doc): add darkmode for HTML output


Changed files:
filename: Cargo.lock
patch: @@ -1854,9 +1854,9 @@ dependencies = [
 
 [[package]]
 name = "deno_doc"
-version = "0.169.1"
+version = "0.171.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6bcf13d7637f5eb22952319b9477ae21f2497e3e34823394794cf12266e8493c"
+checksum = "1e2586f93cf7326a45a117affbb76f1330f26cfea62cc13b91b02fce34c1d81d"
 dependencies = [
  "anyhow",
  "cfg-if",

filename: Cargo.toml
patch: @@ -56,7 +56,7 @@ deno_core = { version = "0.343.0" }
 
 deno_cache_dir = "=0.18.0"
 deno_config = { version = "=0.52.0", features = ["workspace"] }
-deno_doc = "=0.169.1"
+deno_doc = "=0.171.1"
 deno_error = "=0.5.6"
 deno_graph = "=0.89.4"
 deno_lint = "=0.74.0"

filename: cli/tools/doc/prism.css
patch: @@ -1,3 +1,6 @@
-/* PrismJS 1.29.0
-https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+json+markdown+regex+rust+typescript */
-code[class*=language-],pre[class*=language-]{color:#000;background:0 0;text-shadow:0 1px #fff;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
+/* PrismJS 1.30.0
+https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+json+markdown+regex+rust+typescript
+and https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript+bash+json+markdown+regex+rust+typescript
+modified to remove extra padding, and add .dark prefix for darkmodes */
+code[class*=language-],pre[class*=language-]{color:#000;text-shadow:0 1px #fff;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;line-height:1.5}code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:#ffffff80}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
+.dark code[class*=language-],.dark pre[class*=language-]{color:#f8f8f2;text-shadow:0 1px #0000004d;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;line-height:1.5}.dark pre[class*=language-]{overflow:auto}.dark :not(pre)>code[class*=language-],.dark pre[class*=language-]{background:#272822}.dark :not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}.dark .token.cdata,.dark .token.comment,.dark .token.doctype,.dark .token.prolog{color:#8292a2}.dark .token.punctuation{color:#f8f8f2}.dark .token.namespace{opacity:.7}.dark .token.constant,.dark .token.deleted,.dark .token.property,.dark .token.symbol,.dark .token.tag{color:#f92672}.dark .token.boolean,.dark .token.number{color:#ae81ff}.dark .token.attr-name,.dark .token.builtin,.dark .token.char,.dark .token.inserted,.dark .token.selector,.dark .token.string{color:#a6e22e}.dark .language-css .token.string,.dark .style .token.string,.dark .token.entity,.dark .token.operator,.dark .token.url,.dark .token.variable{color:#f8f8f2}.dark .token.atrule,.dark .token.attr-value,.dark .token.class-name,.dark .token.function{color:#e6db74}.dark .token.keyword{color:#66d9ef}.dark .token.important,.dark .token.regex{color:#fd971f}.dark .token.bold,.dark .token.important{font-weight:700}.dark .token.italic{font-style:italic}.dark .token.entity{cursor:help}

filename: tests/specs/doc/html/__test__.jsonc
patch: @@ -9,7 +9,7 @@
         "a.ts",
         "b.ts"
       ],
-      "output": "Written 23 files to \"./docs/\"\n",
+      "output": "Written 24 files to \"./docs/\"\n",
       "exitCode": 0
     },
     {

filename: tests/specs/doc/lint_html_success/lint_success_html.out
patch: @@ -1 +1 @@
-Written 15 files to "./docs/"
+Written 16 files to "./docs/"