My tool for presentation forked from golang/tools/present
and used to build slides.cjting.me.
- Support syntax highlight
- Can generate static html files
- Indented code can specify language
- Remove all functions except for slide
$ mypresent --help
usage: mypresent [<flags>] <command> [<args> ...]
Flags:
-h, --help Show context-sensitive help (also try --help-long and
--help-man).
-r, --resource=RESOURCE static resource path, if not provided, use builtin
resource
-c, --content="." presentation content path
Commands:
help [<command>...]
Show help.
serve* [<flags>]
Start the server
build [<flags>]
Generate output
title [subtitle] [time](format: "15:04 2 Jan 2006" or "2 Jan 2006") [cover image](format: .cover [url]) [misc info] [sections]
We can use -r dir
to provide custom resources. Mypresent needs these files tow work. If one cann't be found at the directory, it will use the default shipped one.
βββ favicon.ico
βββ hljs
βΒ Β βββ hljs.css
βΒ Β βββ hljs.js
βββ index.css
βββ note.js
βββ slide.css
βββ slide.js
βββ tmpl
βββ index.tmpl
βββ slide.tmpl
Use highlight.js to do syntax highlight.
See all supported languages in css-class-reference.