Header Directives and ConfigurationHeader DirectivesDirectives are placed at the top of a .jemdoc file as special comments. They control page-level settings. # jemdoc: menu{MENU}{thispage.html}
# jemdoc: addcss{custom.css}
# jemdoc: title{Custom Window Title}
Available Directives
Multiple directives can go on a single line, separated by commas: # jemdoc: menu{MENU}{page.html}, analytics{G-XXXXXXXXXX}, showsource
Menu FilesA MENU file defines the navigation sidebar. Non-indented lines are category headers; indented lines with [link] are menu items. See the MENU file used by this example site.
Subfolder PagesFor pages in subdirectories, use the third prefix argument: # jemdoc: menu{MENU}{}{../}
This prepends ../ to each menu link, so they resolve correctly from the subfolder. Configuration Filesjemdoc-rs uses a default HTML template that can be partially or fully overridden. Run jemdoc-rs --show-config to see all configurable sections. Example Configurationmysite.conf
# Override the body start to add a favicon [bodystart] </head> <link rel="icon" href="img/icon.png" type="image/x-icon" /> <body> # Override the default CSS path [defaultcss] <link rel="stylesheet" href="/css/jemdoc.css" type="text/css" /> Apply with -c: jemdoc-rs -c mysite.conf *.jemdoc Multiple -c flags can be used; later files take precedence. This PageThis page uses showsource — check the footer for a link to its .jemdoc source. |