diff options
author | Jake Leahy <jake@leahy.dev> | 2024-01-19 23:04:30 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 21:04:30 +0800 |
commit | 1855f67503e6c541f3d8c38c3ec28c0fbb02be1a (patch) | |
tree | 84a0fca4916aed5ddf22c924ec9f4cad4c3b2a2e /config | |
parent | af8b1d0cb9bfa2f3b91b95219f850d075fc745f1 (diff) | |
download | Nim-1855f67503e6c541f3d8c38c3ec28c0fbb02be1a.tar.gz |
Make `data-theme` default to "auto" in HTML (#23222)
Makes docs default to using browser settings instead of light mode This should fix #16515 since it doesn't require the browser to run the JS to set the default Also means that dark mode can be used without JS if the browser is configured to default to dark mode
Diffstat (limited to 'config')
-rw-r--r-- | config/nimdoc.cfg | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/nimdoc.cfg b/config/nimdoc.cfg index 9535aa384..5b902b362 100644 --- a/config/nimdoc.cfg +++ b/config/nimdoc.cfg @@ -226,7 +226,7 @@ doc.listing_end = "</pre>" doc.file = """<?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!-- This file is generated by Nim. --> -<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> |