THEME(1)
π THEME(1) π
okay bestie, welcome to the General Commands Manual page for theme β yes that's the whole manual name, we're fancy here π. Strap in, this one's actually so useful.
πΈ NAME πΈ
theme β create a web page from a template file β¨
π¦ SYNOPSIS π¦
theme [-C option-flags] [-c options] [-d root] [-E] [-f] [-o file]
[-p pagename] [-t template] [-V] [textfile]
π DESCRIPTION π
so here's the vibe: theme grabs a markdown(7)-formatted textfile β or stdin if you don't hand it a file, no pressure β compiles it, and smushes it together with a template to cook up a whole web page. default template? that's page.theme, iconic.
if you don't tell it where the template lives, theme goes on a little scavenger hunt π: first page.theme in the current directory, then each parent directory all the way up to the document root. and the document root is set with -d, or β if you never set it β it's just the root directory of the system. once it finds page.theme, theme copies it straight into the output, hunting for <?theme action?> html tags and processing whatever action is embedded in there. slay.
π the actions it processes
authorβ prints the author name(s), straight from themkd_doc_author(3)function.bodyβ prints the formattedmarkdown(7)input file. the main character, honestly.dateβ prints the date thatmkd_doc_date(3)gives back or, if there isn't one, the date the input file was last modified.dirβ prints the directory part of the pagename.include(file)β prints the contents of file. and heads up: Markdown(7) translation will NOT be done on this file. not even a little.sourceβ the filename part of the pagename.styleβ print any stylesheets (peepmkd-extensions(7)) found in the input file.titleβ prints the title frommkd_doc_title(3)or, if that doesn't exist, the source filename. fallback queen π.versionβ print the version ofdiscount(7)that this copy ofthemewas compiled with.
if the input is coming from a file and you never set the output with the -o option, it writes the output to file-sans-text.html β like, if file has a .text suffix, that gets stripped off and replaced with .html; otherwise a .html gets appended to the end of the filename. cute, right?
π the options, fr fr
the options are as follows:
-droot β set the document root to root.-Eβ normallythemewill not expand<?theme body?>or<?theme toc?>in the<head>section, or<?theme style?>in the<body>section, but the-Eoption overrides all that and allows expansions everywhere.-fβ forcibly overwrite existing html files. no asking, no mercy π.-ofilename β write the output to filename.-ppath β set the pagename to path.-tfilename β use filename as the template file.
π RETURN VALUES π
theme exits 0 on success, and >0 if an error occurs. that's it, that's the whole drama.
π SEE ALSO π
markdown(1), markdown(3), markdown(7), mkd-extensions(7).
π«Ά AUTHOR π«Ά
David Parsons (orc@pell.portland.or.us) β legend behavior, honestly.
and that's the whole page bestie!! this one's from MASTODON, dated January 23, 2008 β vintage, but she ate and left no crumbs πβ¨ go build something cute, ily, bye π
π¦ where this page comes from
- arch rolling: discount 3.0.2.0-1 Β· BSD-3-Clause
- debian bookworm: discount 2.2.7-2 Β· BSD-3-clause-like
- debian trixie: discount 2.2.7-2.1 Β· BSD-3-clause-like
- opensuse-leap 16.0: discount 3.0.0a-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: discount 3.0.0a-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: discount 3.0.0a-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: discount 3.0.0a-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: discount 2.2.7-2 Β· BSD-3-clause-like
- ubuntu noble: discount 2.2.7-2build1 Β· BSD-3-clause-like
- ubuntu questing: discount 2.2.7-2.1
- ubuntu resolute: discount 2.2.7-2.1build1 Β· BSD-3-clause-like
- ubuntu stonking: discount 2.2.7-2.1build1 Β· BSD-3-clause-like
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms