Skip to content

Commit c44d82f

Browse files
committed
Update README; add config.yaml.example
1 parent b3904fa commit c44d82f

File tree

3 files changed

+69
-13
lines changed

3 files changed

+69
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
2+
config.yaml
23
people.json
34
publish.sh

README.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,11 @@ Scrawl works on directories structured like:
2828
The output files will be added to the same directory for simpler hosting of
2929
all the things.
3030

31-
Now, we need to setup the nicknames of all the people in the group.
32-
So, copy `people.json.example` to `www/people.json` and fill in names,
33-
homepages, and nicknames as needed.
31+
There are **two** important setup files:
32+
- `config.yaml` (see `config.yaml.example`)
33+
- `people.json` (see `people.json.example`)
3434

35-
To edit logs in a Web page, it's recommended to install the `http-server` node
36-
package and use that (for now):
37-
38-
```sh
39-
$ npm i -g http-server
40-
$ http-server www/
41-
```
42-
43-
Once that's done, you can visit `http://localhost:8080/` to paste IRC logs, see
44-
the output, and copy/paste the HTML (etc) wherever you need it.
35+
Once those two files are configured to your contentment, see below.
4536

4637
## Command Line Usage
4738

@@ -96,6 +87,21 @@ The WordPress, Google, and Twitter related switches also require some custom
9687
environment variables to be setup. For examples of those, see the
9788
[publish.sh.example](publish.sh.example).
9889
90+
## Web-based editor
91+
92+
You can edit logs in a small Web app. To do so, it's recommended to install the
93+
`http-server` node package and use that (for now):
94+
95+
```sh
96+
$ npm i -g http-server
97+
$ http-server www/
98+
```
99+
100+
Once that's done, you can visit `http://localhost:8080/` to paste IRC logs, see
101+
the output, and copy/paste the HTML (etc) wherever you need it.
102+
103+
For this to work you'll need to put `people.json` in your `www/` folder.
104+
99105
## Wrapping bash scripts
100106

101107
If you're on a machine that has bash available, there are a couple useful tools

config.yaml.example

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
# required - or URLs are not produce-able
3+
minutes_base_url: https://json-ld.github.io/minutes/
4+
5+
group: JSON-LD CG Telecon # default: Telecon
6+
people: www/people.json # default: www/people.json
7+
partials: www/_partials/ # default: www/_partials/
8+
9+
# The `content` and `minutes_base_url` Mustache variables MUST are pre-escaped
10+
# so use {{{content}}} (3 curley braces) to properly unescape them for text.
11+
12+
email: # required for -e
13+
from: gregg@greggkellogg.net # required!
14+
to: JSON-LD CG <public-linked-json@w3.org> # required!
15+
# Mustache template - vars: gDate
16+
subject: "[MINUTES] W3C JSON-LD CG Call - {{gDate}} 12pm ET"
17+
# Mustache template - vars: content, gDate, scribe, minutes_base_url
18+
body: |-
19+
Thanks to {{scribe}} for scribing this week! The minutes
20+
for this week's JSON-LD CG telecon are now available:
21+
{{{minutes_base_url}}}{{gDate}}/
22+
23+
Full text of the discussion follows for W3C archival purposes.
24+
Audio from the meeting is available as well (link provided below).
25+
26+
----------------------------------------------------------------
27+
{{{content}}}
28+
gplus: # required for -g
29+
# Mustache template - vars: content, formattedItems, gDate, minutes_base_url
30+
body: |-
31+
*JSON-LD CG Meeting Summary for {{gDate}}*
32+
33+
We discussed {{formattedItems}}.
34+
35+
{{{content}}}
36+
37+
Full transcript and audio logs are available here:
38+
39+
{{{minutes_base_url}}}{{gDate}}/
40+
41+
#w3c #json-ld
42+
twitter: # required for -t
43+
# Mustache template - vars: group, message, gDate, minutes_base_url
44+
body: |-
45+
JSON-LD CG discusses {{message}}:
46+
{{{minutes_base_url}}}{{gDate}}/ #w3c #json-ld
47+
wordpress: # required for -w
48+
# Mustache template - vars: gDate
49+
title: "JSON-LD CG Meeting Minutes for {{gDate}}"

0 commit comments

Comments
 (0)