Skip to content

Commit e80aedf

Browse files
committed
manual: Add CSS for Htmlize styles, update manual name
* doc/manual.org: Use "manual.info" and "manual.html" uniformly for exports. * doc/style.css: Use CSS styles for source code from modus-operandi.
1 parent 1e288f6 commit e80aedf

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

doc/manual.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#+macro: development-version 0.9.9-dev
2121
#+macro: space @@texinfo:@: @@
2222
#+macro: kbd (eval (org-texinfo-kbd-macro $1))
23-
#+texinfo_filename: gptel.info
23+
#+texinfo_filename: manual.info
2424
#+texinfo_dir_category: Misc
2525
#+texinfo_dir_desc: A simple LLM client for Emacs
2626
#+texinfo_header: @syncodeindex pg cp

doc/style.css

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,40 @@ td > pre[class*="example"] {
360360
}
361361

362362

363+
/** HTMLIZE STYLES **/
364+
:root {
365+
--pre-comment-delimiter: #595959;
366+
--pre-comment: #595959;
367+
--pre-keyword: #531ab6;
368+
--pre-string: #3548cf;
369+
--pre-builtin: #8f0075;
370+
}
371+
372+
.org-src-container {
373+
.org-comment-delimiter {
374+
/* font-lock-comment-delimiter-face */
375+
color: var(--pre-comment-delimiter);
376+
}
377+
.org-comment {
378+
/* font-lock-comment-face */
379+
color: var(--pre-comment);
380+
}
381+
.org-keyword {
382+
/* font-lock-keyword-face */
383+
color: var(--pre-keyword);
384+
font-weight: bold;
385+
}
386+
.org-string {
387+
/* font-lock-string-face */
388+
color: var(--pre-string);
389+
}
390+
.org-builtin {
391+
/* font-lock-builtin-face */
392+
color: var(--pre-builtin);
393+
font-weight: bold;
394+
}
395+
}
396+
363397
/** QUOTATIONS **/
364398

365399
/* (gawk, gawkinet & mes) Keep short quotations and their signatures

0 commit comments

Comments
 (0)