Coder Social home page Coder Social logo

tv42 / representative Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 160 KB

Static slideshow generator for Go slides

Home Page: https://eagain.net/go/representative

License: Other

Shell 1.55% Go 11.99% CSS 20.88% JavaScript 65.58%
slides golang html static-html

representative's Introduction

representative -- Static slideshow generator for Go slides

representative takes a Go Present-style *.slide (or *.article) file and creates a static HTML page.

Install

$ go get eagain.net/go/representative/cmd/representative

Usage

Read foo.slide, write foo.html, write assets into directory named static (which will be created if needed) and assume the HTML can refer to them as static/...:

$ representative -assets=static foo.slide

What files are created as assets is not guaranteed. We recommend not trying to have other content in the same directory.

Pass any number of *.slide and *.article files.

There are two flags you can give it:

  • -assets=DIR: Write assets to this directory.

    If not given, assets are not created at this time, and must be available to the HTML by some other means.

    This can be used with no files to just write assets.

  • -url-to-assets=URL: Refers to assets from HTML with this base URL.

    If -assets=DIR was given, defaults to DIR, otherwise static.

Some more ways you can call it:

# Multiple slides at once
$ representative -assets=static *.slide

# Just write out the assets
$ representative -assets=static

# Just convert slides to HTML (assets assumed to be available as
# `static/...`)
$ representative foo.slide

# Write assets into custom directory name
$ representative -assets=my-asset-dir foo.slide

# Asset fetched from a subdir (default `static`), no trailing slash.
$ representative -url-to-assets=my-asset-dir foo.slide

# Assets fetched relative to arbitrary URL.
$ representative -url-to-assets=https://cdn.example.com/slide-assets/ foo.slide

History

representative was inspired by https://github.com/cmars/represent but is an independent implementation with completely different command-line interface.

Notable differences:

  • representative has new slideshow features added to present after represent was last updated
  • representative does not need its source tree available to access assets
  • representative does not copy everything in the source directory into the publish directory; it just writes HTML

representative's People

Contributors

tv42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.