Skip to content

Commit fa56637

Browse files
Merge pull request #74 from bluecadet/feature/docs-action
Feature/docs action
2 parents da59cf4 + 745c338 commit fa56637

File tree

2 files changed

+47
-17
lines changed

2 files changed

+47
-17
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow builds documentation and formats/checks code
2+
name: NPM CI
3+
4+
on:
5+
push:
6+
branches: [ "develop" ]
7+
pull_request:
8+
branches: [ "develop" ]
9+
10+
jobs:
11+
main:
12+
name: Main
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [18.x]
18+
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
cache: 'npm'
27+
cache-dependency-path: '**/package-lock.json'
28+
- run: npm ci
29+
30+
- name: Generate documentation
31+
run: npm run docs

packages/launchpad/README.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
# 🚀 Launchpad
22

3-
Launchpad is a suite of tools to manage media installations. In a typicla usecase, it bootstraps up your Windows PC, downloads and caches CMS content and then launches and monitors your apps. It can:
3+
Launchpad is a highly configurable suite of tools to manage media installations. It can:
44

5-
- Launch, control and monitor muiltiple processes (via PM2)
5+
- Launch, control and monitor muiltiple processes (via [PM2](https://pm2.keymetrics.io/))
66
- Download and locally cache content from various common web APIs
7-
- Bootstrap PCs running Windows 8/10/11 with common exhibit settings
7+
- Bootstrap Windows PCs with common exhibit settings
88
- Consolidate and route application logs
9-
- [...and many more things](#more-features)
9+
10+
[...and many more things](#documentation)
1011

1112
![Screen Recording of Launchpad on Windows 11](https://user-images.githubusercontent.com/295789/197365153-d62d9218-2ffa-4611-ac61-fa5bf786766a.gif)
1213

1314
## Getting Started
1415

15-
1. Install: `npm i @bluecadet/launchpad`
16-
2. Create a `launchpad.json` config (see [#Configuration](#Configuration))
16+
A typical setup will use launchpad as a node dependency, configure it via a `launchpad.json` file and run `npx launchpad` via a startup task (e.g. Windows Task Scheduler):
17+
18+
1. Install launchpad: **`npm i @bluecadet/launchpad`**
19+
2. Create a **`launchpad.json`** config (see [configuration](#configuration))
1720
3. *Optional: Bootstrap your PC with `npx launchpad scaffold`*
18-
4. Run `npx launchpad`
21+
4. Run **`npx launchpad`**
1922

2023
Type `npx launchpad --help` for all available commands.
2124

2225
*Launchpad can also be installed globally via `npm i -g @bluecadet/launchpad` and called via `launchpad` instead of `npx launchpad`.*
2326

2427
## Configuration
2528

26-
Each [launchpad package](#packages) needs its own config section in `launchpad.json`.
27-
28-
### Example
29-
30-
A simple `launchpad.json` example to download content from Flickr and launch a single app:
29+
Each [launchpad package](#packages) is configured via its own section in `launchpad.json`. Below is a simple example that uses the [`content`](/packages/content) package to download JSON and images from Flickr and the [`monitor`](/packages/monitor) to launch a single app:
3130

3231
```json
3332
{
@@ -58,18 +57,18 @@ A simple `launchpad.json` example to download content from Flickr and launch a s
5857

5958
### Documentation
6059

61-
For a full list of configuration options, review the documentation below:
60+
All available config settings across packages can be found in the links below:
6261

63-
- [`monitor`](/packages/monitor/README.md): Run and monitor apps
64-
- [`content`](/packages/content/README.md): Download and cache remote content
62+
- [**`monitor`**](/packages/monitor/README.md): Run and monitor apps
63+
- [**`content`**](/packages/content/README.md): Download and cache remote content
6564
- `sources`: An array containing one or more of the following content source options:
6665
- [`airtable`](/packages/content/docs/airtable-source.md): Download content from Airtable
6766
- [`contentful`](/packages/content/docs/contentful-source.md): Download content from Contentful
6867
- [`json`](/packages/content/docs/json-source.md): Download content from JSON endpoints
6968
- [`strapi`](/packages/content/docs/strapi-source.md): Download content from Strapi
7069
- [`sanity`](/packages/content/docs/sanity-source.md): Download content from Sanity
71-
- [`logging`](/packages/launchpad/docs/logging.md): Route logs to the console and to files
72-
- [`hooks`](/packages/launchpad/docs/hooks.md): Execute scripts before or after common events (e.g. after content has been updated)
70+
- [**`logging`**](/packages/launchpad/docs/logging.md): Route logs to the console and to files
71+
- [**`hooks`**](/packages/launchpad/docs/hooks.md): Execute scripts before or after common events (e.g. after content has been updated)
7372

7473
### Config Loading
7574

0 commit comments

Comments
 (0)