Skip to content

Commit 1b940dd

Browse files
committed
rename
1 parent af3b90e commit 1b940dd

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

test/echo renamed to README.md

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

lib/document-viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ DocumentViewer.prototype.renderPage = function(pageId, msg) {
3535

3636
//workaround
3737
if (classname="bigtext" && !opts.font) {
38-
opts.font = __dirname + "/../font/ter-u12n.json"
38+
opts.font = __dirname + "/../lib/ter-u12n.json"
3939
}
4040

4141
//console.log(JSON.stringify(opts, null, 2))
File renamed without changes.

misc/more.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Put a report on the web (e.g. gist) and view it via curl!
1818

1919
<img src="../docs/images/map.png" alt="term" width="800">
2020

21-
([xml source](https://raw.githubusercontent.com/yaronn/wopr/master/test/sample.xml))
21+
([xml source](https://raw.githubusercontent.com/yaronn/wopr/master/examples/sample.xml))
2222

2323

2424
You can view it from the web with no installation:
@@ -34,7 +34,7 @@ You can also use a local viewer rather than curl:
3434

3535
`````bash
3636
$> npm install -g wopr
37-
$> curl https://raw.githubusercontent.com/yaronn/wopr/master/test/sample.xml > wopr-sample.xml
37+
$> curl https://raw.githubusercontent.com/yaronn/wopr/master/examples/sample.xml > wopr-sample.xml
3838
$> wopr wopr-sample.xml
3939
`````
4040

@@ -54,15 +54,15 @@ Here is a simple report with a bar chart:
5454

5555
You have 3 options to view this report:
5656

57-
**option 1: POST it to the wopr online viewer**
57+
**Option 1: POST it to the wopr online viewer**
5858

5959
`````bash
6060
$> curl --data '<document><page><item col="0" row="0" colSpan="5" rowSpan="4"><bar maxHeight="5" data-titles="A,B,C" data-data="2,5,3" /></item></page></document>' tty.zone?cols=$((COLUMNS))
6161
`````
6262

6363
If you experience firewall issues replace tty.zone with ec2-23-21-64-152.compute-1.amazonaws.com.
6464

65-
**option 2: POST it from external url**
65+
**Option 2: POST it from external url**
6666

6767
Save the report content in some url (e.g. gist) and then:
6868

@@ -74,7 +74,7 @@ Save the report content in some url (e.g. gist) and then:
7474

7575
If you experience firewall issues replace tty.zone with ec2-23-21-64-152.compute-1.amazonaws.com.
7676

77-
**option 3: via the local viewer**
77+
**Option 3: Via the local viewer**
7878

7979
Save the report xml to report.xml and then:
8080

@@ -159,7 +159,7 @@ Then here is how you would represent it in xml:
159159
</widget>
160160
`````
161161

162-
You can also look at the [demo xml](https://raw.githubusercontent.com/yaronn/wopr/master/test/sample.xml) to get more samples.
162+
You can also look at the [demo xml](https://raw.githubusercontent.com/yaronn/wopr/master/examples/sample.xml) to get more samples.
163163

164164

165165
##Viewing Reports##

server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ http.createServer(function (req, res) {
3333
else {
3434
if (req.headers["user-agent"].indexOf('curl')!=-1) {
3535

36-
var content = fs.readFileSync(__dirname+'/../test/sample.xml')
36+
var content = fs.readFileSync(__dirname+'/../examples/sample.xml')
3737
present(req, res, content, function(err) {
3838
if (err) console.log(new Error().stack)
3939
if (err) return contrib.serverError(req, res, err)

0 commit comments

Comments
 (0)