mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
configure a proper dark-mode background for ghmd
This commit is contained in:
parent
7a769e3853
commit
ba2982b880
1 changed files with 6 additions and 4 deletions
10
sh/ghmd
10
sh/ghmd
|
@ -18,10 +18,12 @@ ghmd() { ### @-
|
||||||
### ~/sh/ghmd < ~/rc/README.md > ~/rc/README.html
|
### ~/sh/ghmd < ~/rc/README.md > ~/rc/README.html
|
||||||
### ```
|
### ```
|
||||||
printf '%s' '<!DOCTYPE html><html><head><meta charset="utf-8"><link ' \
|
printf '%s' '<!DOCTYPE html><html><head><meta charset="utf-8"><link ' \
|
||||||
'href="https://eaguru.guru/t/github-markdown.css" ' \
|
'href="https://eaguru.guru/t/github-markdown.css" media="all" ' \
|
||||||
'media="all" rel="stylesheet" type="text/css"/></head><body ' \
|
'rel="stylesheet" type="text/css"/><style type="text/css">' \
|
||||||
'style="box-sizing: border-box; min-width: 200px; max-width: 980px; ' \
|
'@media (prefers-color-scheme: dark) { body { background: black; } }' \
|
||||||
'margin: 0 auto;"><article class="markdown-body" style="padding: 45px;">'
|
'</style></head><body style="box-sizing: border-box; min-width: 200px; ' \
|
||||||
|
'max-width: 980px; margin: 0 auto;"><article class="markdown-body" ' \
|
||||||
|
'style="padding: 45px;">'
|
||||||
curl -s --data-binary @- -H 'Content-Type: text/plain' \
|
curl -s --data-binary @- -H 'Content-Type: text/plain' \
|
||||||
https://api.github.com/markdown/raw
|
https://api.github.com/markdown/raw
|
||||||
local ret=$?
|
local ret=$?
|
||||||
|
|
Loading…
Add table
Reference in a new issue