mypresent

command module
v0.0.0-...-b6314e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2019 License: BSD-3-Clause Imports: 17 Imported by: 0

README

Mypresent

A redistribution of present from golang tools.

Install

go get -u -v github.com/leexun/mypresent
mypresent --help # remember to setup your GOPATH, GOROOT in env

Extra features

Inline HTML
* _
```html
<p class="slogan slogan-15 bold">About me</p>
```htmlend

* _
```html
<p class="slogan slogan-10">First line,</p>
<p class="slogan">second line.</p>
```htmlend
Monaco editor
.monaco ./code/example.go

Cautions

Never serve a public web service by this tool. It is only for presentation and provides full control of remote code execution.

Note

GC optimization is currently disabled. Will use parameter to control this.

Documentation

Overview

Present displays slide presentations and articles. It runs a web server that presents slide and article files from the current directory.

It may be run as a stand-alone command or an App Engine app.

The setup of the Go version of NaCl is documented at: https://golang.org/wiki/NativeClient

To use with App Engine, copy the files in the tools/cmd/present directory to the root of your application and create an app.yaml file similar to this:

runtime: go111

handlers:
- url: /favicon.ico
  static_files: static/favicon.ico
  upload: static/favicon.ico
- url: /static
  static_dir: static
- url: /.*
  script: auto

# nobuild_files is a regexp that identifies which files to not build.  It
# is useful for embedding static assets like code snippets and preventing
# them from producing build errors for your project.
nobuild_files: [path regexp for talk materials]

When running on App Engine, content will be served from the ./content/ subdirectory.

Present then can be tested in a local App Engine environment with

GAE_ENV=standard go run .

And deployed using

gcloud app deploy

Input files are named foo.extension, where "extension" defines the format of the generated output. The supported formats are:

.slide        // HTML5 slide presentation
.article      // article format, such as a blog post

The present file format is documented by the present package: http://godoc.org/golang.org/x/tools/present

Directories

Path Synopsis
example
The present file format Present files have the following format.
The present file format Present files have the following format.
Package socket implements an WebSocket-based playground backend.
Package socket implements an WebSocket-based playground backend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL