Giter Site home page Giter Site logo

hilalisa / scrawl.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from json-ld/scrawl.js

0.0 1.0 0.0 16.75 MB

Scribe tool used by the JSON-LD Community Group

License: BSD 3-Clause "New" or "Revised" License

JavaScript 75.15% Shell 8.66% HTML 13.61% CSS 2.58%

scrawl.js's Introduction

Scrawl.js

Handy scribe tool for W3C group scribes.

Installation

Clone the repo locally, and in this repositories working directory run the following commands:

$ npm i
$ npm start

Setup

Scrawl works on directories structured like:

2011-07-04/
  ./irc.log
  ./audio.ogg
  • The directory name MUST be in ISO 8601 format.
  • The log file MUST be named irc.log.
  • The (optional) audio file MUST be named audio.ogg.

The output files will be added to the same directory for simpler hosting of all the things.

There are two important setup files:

  • config.yaml (see config.yaml.example)
  • people.json (see people.json.example)

Once those two files are configured to your contentment, see below.

Command Line Usage

To install scrawl globally, run...

$ npm i -g

Then...

$ scrawl -m -d 2011-07-04/

To include a parent index of all minutes directories, run...

$ scrawl -i -m -d 2011-07-04/

The resulting directory will look like

2011-07-04/
  ./irc.log
  ./audio.ogg
  ./index.html
index.html

Command Line Help Output

There are several more options available.

  Usage: index.js [options]

  Options:

    -h, --help                   output usage information
    -V, --version                output the version number
    -d, --directory <directory>  The directory to process.
    -m, --html                   If set, write the minutes to an index.html file
    -w, --wordpress              If set, publish the minutes to the blog
    -e, --email                  If set, publish the minutes to the mailing list
    -t, --twitter                If set, publish the minutes to Twitter
    -g, --google                 If set, publish the minutes to G+
    -i, --index                  Build meeting index
    -q, --quiet                  Don't print status information to the console

The WordPress, Google, and Twitter related switches also require some custom environment variables to be setup. For examples of those, see the publish.sh.example.

Web-based editor

You can edit logs in a small Web app. To do so, it's recommended to install the http-server node package and use that (for now):

$ npm i -g http-server
$ http-server www/

Once that's done, you can visit http://localhost:8080/ to paste IRC logs, see the output, and copy/paste the HTML (etc) wherever you need it.

For this to work you'll need to put people.json in your www/ folder.

Wrapping bash scripts

If you're on a machine that has bash available, there are a couple useful tools in the scripts/ folder. To configure them, copy the publishing.cfg.example to publishing.cfg, make your changes, and then run the scripts (which wrap the node code).

Development

During development, you'll want to test with the working copy version of scrawl. For that, simply use node index.js -h or npm start -- -h.

License

BSD-3-clause

scrawl.js's People

Contributors

bigbluehat avatar

Watchers

James Cloos 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.