Skip to content

Commit 434aa7d

Browse files
authored
docs: update references to documentation. (#23)
* chore: update ci deps. * ci: publish workflow.
1 parent 2fceb3d commit 434aa7d

File tree

10 files changed

+53
-20
lines changed

10 files changed

+53
-20
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v3.5.2
17+
uses: actions/checkout@v4.1.1
1818
- name: Setup Node
19-
uses: actions/setup-node@v3.6.0
19+
uses: actions/setup-node@v4.0.2
2020
with:
21-
node-version: '20.10.0'
21+
node-version: '20.11.0'
2222
- name: Install Dependencies
2323
run: npm ci
2424
- name: Save error log
25-
uses: actions/upload-artifact@v2
25+
uses: actions/upload-artifact@v4.3.1
2626
if: ${{ failure() }}
2727
with:
2828
name: npm-debug-log-${{ hashFiles('package-lock.json') }}

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3.5.2
12+
uses: actions/checkout@v4.1.1
1313
- name: Setup Node
14-
uses: actions/setup-node@v3.6.0
14+
uses: actions/setup-node@v4.0.2
1515
with:
16-
node-version: '20.10.0'
16+
node-version: '20.11.0'
1717
- name: Install Dependencies
1818
run: npm ci
1919
- name: Save error log
20-
uses: actions/upload-artifact@v2
20+
uses: actions/upload-artifact@v4.3.1
2121
if: ${{ failure() }}
2222
with:
2323
name: npm-debug-log-${{ hashFiles('package-lock.json') }}

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
if: contains('["morganney"]', github.actor)
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4.1.1
14+
- name: Setup Node
15+
uses: actions/setup-node@v4.0.2
16+
with:
17+
node-version: '20.11.0'
18+
- name: Install Dependencies
19+
run: npm ci
20+
- name: Save error log
21+
uses: actions/upload-artifact@v4.3.1
22+
if: ${{ failure() }}
23+
with:
24+
name: npm-debug-log-${{ hashFiles('package-lock.json') }}
25+
path: npm-debug.log
26+
- name: Pack
27+
run: npm pack
28+
- name: Push to NPM registry
29+
uses: JS-DevTools/npm-publish@v3.0.1
30+
with:
31+
token: ${{ secrets.NPM_AUTH_TOKEN }}
32+
tag: ${{ contains(github.ref, '-') && 'next' || 'latest' }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.log
2+
*.tgz
23
node_modules
34
dist

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Converts the [NextBus][1] [Public XML Feed][2], which is used to build real-time transit applications, into a RESTful JSON API.
44

5-
All documentation is hosted at [restbus.info][0].
5+
All documentation is hosted at [morganney.github.io/restbus.info][0].
66

7-
[0]: http://restbus.info
7+
[0]: https://morganney.github.io/restbus.info
88
[1]: https://retro.umoiq.com/
99
[2]: https://retro.umoiq.com/xmlFeedDocs/NextBusXMLFeed.pdf

lambda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Used by restbus.info domain for hosting documentation about restbus.
2+
* Used by morganney.github.io/restbus.info domain for hosting documentation about restbus.
33
*/
44
const serverlessExpress = require('@codegenie/serverless-express');
55
const restbus = require('./lib/restbus');

lib/api/predictions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ predictions.get = function (req, res) {
149149
title: title
150150
});
151151

152-
// Add a via from-links if needed (tuples and code preds are only known by docs at restbus.info)
152+
// Add a via from-links if needed (tuples and code preds are only known by docs at morganney.github.io/restbus.info)
153153
if (onsplit === 'routes') {
154154
from.push({
155155
href: [uri, 'routes/', p.route.id].join(''),

lib/api/routes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ routes.list = function (req, res) {
9797
self: {
9898
href: suri,
9999
type: utils.c.MTJSON,
100-
rel: 'http://restbus.info/_links/rel/full',
100+
rel: 'https://morganney.github.io/restbus.info/full.html',
101101
rt: C.RTE,
102102
title: [
103103
'Full configuration for ',
@@ -111,7 +111,7 @@ routes.list = function (req, res) {
111111
{
112112
href: suri,
113113
type: utils.c.MTJSON,
114-
rel: 'http://restbus.info/_links/rel/full',
114+
rel: 'https://morganney.github.io/restbus.info/full.html',
115115
rt: C.RTE,
116116
title: [
117117
'Full configuration for ',

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "restbus",
33
"description": "RESTful JSON API for the NextBus Inc. public XML feed.",
4-
"version": "2.4.0",
5-
"main": "index",
4+
"version": "2.4.1",
5+
"main": "index.js",
66
"dependencies": {
77
"compression": "1.7.4",
88
"express": "4.18.2",
@@ -22,7 +22,7 @@
2222
"type": "git",
2323
"url": "https://github.com/morganney/restbus.git"
2424
},
25-
"homepage": "http://restbus.info",
25+
"homepage": "https://morganney.github.io/restbus.info",
2626
"keywords": [
2727
"umo",
2828
"nextbus",
@@ -40,7 +40,7 @@
4040
},
4141
"license": "MIT",
4242
"files": [
43-
"dist"
43+
"lib"
4444
],
4545
"scripts": {
4646
"prettier": "prettier -w .",

0 commit comments

Comments
 (0)