Skip to content

πŸŽ‰ My tool for presentation forked from golang/tools/present

Notifications You must be signed in to change notification settings

cj1128/mypresent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Mypresent

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

Slide Format

title [subtitle] [time](format: "15:04 2 Jan 2006" or "2 Jan 2006") [cover image](format: .cover [url]) [misc info] [sections]

Static Resource

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

Syntax Highlight

Use highlight.js to do syntax highlight.

See all supported languages in css-class-reference.

About

πŸŽ‰ My tool for presentation forked from golang/tools/present

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published