Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workflow to auto-deploy docs when pushing to deploy-docs #67

Merged
merged 6 commits into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/deploy-documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Build and Deploy

on:
push:
branches:
- deploy-docs

# This allows manual triggers. Select the branch you want to deploy as the
# branch to run the workflow from.
workflow_dispatch:

permissions:
contents: write

jobs:
build-and-deploy:
# Recommended if you intend to make multiple deployments in quick
# succession.
concurrency: ci-${{ github.ref }}

runs-on: ubuntu-latest
steps:
- name: 🛎️ Checkout
uses: actions/checkout@v3

# This example project is built using npm and outputs the result to the
# 'docs' folder.
- name: 🔧 Install and Build
run: |
npm ci
npm run docs

- name: 🚀 Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
# The folder the action should deploy.
folder: docs
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ We use browser windows to represent screens because browsers are extremely flexi
- [Custom events](#custom-events)
- [Interaction rights](#interaction-rights)
- [Grouped items](#grouped-items)
- [Contributing](#contributing)
- [Setup](#setup)
- [Workflow](#workflow)
- [Linting](#linting)
- [Deploying Documentation](#deploying-documentation)

## Installation

Expand Down Expand Up @@ -644,11 +649,11 @@ Groups can only be moved together- rotation and scaling are not supported.

---

# Contribution
## Contributing

We welcome contribution to WAMS, please find details on how to setup your local development environment.

## Setup
### Setup

WAMS is a Node.js projects, and with that requires that you have Node installed. We recommend using [ASDF](https://asdf-vm.com/) or [NVM](https://github.com/nvm-sh/nvm) as your Node Version Manager to install the correct version of Node.

Expand All @@ -672,9 +677,9 @@ npm install
<!-- **Step #3:** Build the project -->
<!-- TODO: Figure out how to build or test the project -->

## Workflow
### Workflow

### Linting
#### Linting

The package.json file include a `lint` script that will run the linter via the CLI via

Expand All @@ -688,6 +693,15 @@ To fix linting errors, run
npm run lint:fix
```

#### Automatic Linting/Format On Save
##### Automatic Linting/Format On Save

To enable automatic linting and saving on save, you can download the [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) VS Code extension. All other required settings are included in the `.vscode/settings.json` file.

### Deploying Documentation

The documentation is served from the branch `gh-pages`. This branch is built using a github action, which is triggered by pushes to the `deploy-docs` branch.

When you want to have changes in the code reflected in the documentation:
1. Test the documentation changes locally using `npm run build` then opening `docs/index.html` and browsing. There is no need to commit the docs folder.
2. Open a PR and merge your changes into main.
3. Merge main into `deploy-docs` and push the changes to github.
158 changes: 0 additions & 158 deletions docs/client.js.html

This file was deleted.

441 changes: 0 additions & 441 deletions docs/client_ClientController.js.html

This file was deleted.

174 changes: 0 additions & 174 deletions docs/client_ClientElement.js.html

This file was deleted.

179 changes: 0 additions & 179 deletions docs/client_ClientImage.js.html

This file was deleted.

146 changes: 0 additions & 146 deletions docs/client_ClientItem.js.html

This file was deleted.

359 changes: 0 additions & 359 deletions docs/client_ClientModel.js.html

This file was deleted.

243 changes: 0 additions & 243 deletions docs/client_ClientView.js.html

This file was deleted.

234 changes: 0 additions & 234 deletions docs/client_Interactor.js.html

This file was deleted.

193 changes: 0 additions & 193 deletions docs/client_ShadowView.js.html

This file was deleted.

Binary file removed docs/fonts/Montserrat/Montserrat-Bold.eot
Binary file not shown.
Binary file removed docs/fonts/Montserrat/Montserrat-Bold.ttf
Binary file not shown.
Binary file removed docs/fonts/Montserrat/Montserrat-Bold.woff
Binary file not shown.
Binary file removed docs/fonts/Montserrat/Montserrat-Bold.woff2
Binary file not shown.
Binary file removed docs/fonts/Montserrat/Montserrat-Regular.eot
Binary file not shown.
Binary file removed docs/fonts/Montserrat/Montserrat-Regular.ttf
Binary file not shown.
Binary file removed docs/fonts/Montserrat/Montserrat-Regular.woff
Binary file not shown.
Binary file removed docs/fonts/Montserrat/Montserrat-Regular.woff2
Binary file not shown.
Binary file not shown.
978 changes: 0 additions & 978 deletions docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1,049 changes: 0 additions & 1,049 deletions docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
387 changes: 0 additions & 387 deletions docs/global.html

This file was deleted.

615 changes: 0 additions & 615 deletions docs/index.html

This file was deleted.

122 changes: 0 additions & 122 deletions docs/mixins.js.html

This file was deleted.

160 changes: 0 additions & 160 deletions docs/mixins_Hittable.js.html

This file was deleted.

115 changes: 0 additions & 115 deletions docs/mixins_Identifiable.js.html

This file was deleted.

147 changes: 0 additions & 147 deletions docs/mixins_Interactable.js.html

This file was deleted.

155 changes: 0 additions & 155 deletions docs/mixins_Lockable.js.html

This file was deleted.

159 changes: 0 additions & 159 deletions docs/mixins_Locker.js.html

This file was deleted.

161 changes: 0 additions & 161 deletions docs/mixins_Publishable.js.html

This file was deleted.

199 changes: 0 additions & 199 deletions docs/mixins_Transformable2D.js.html

This file was deleted.

2,190 changes: 0 additions & 2,190 deletions docs/module-client.ClientController.html

This file was deleted.

1,171 changes: 0 additions & 1,171 deletions docs/module-client.ClientElement.html

This file was deleted.

917 changes: 0 additions & 917 deletions docs/module-client.ClientImage.html

This file was deleted.

1,254 changes: 0 additions & 1,254 deletions docs/module-client.ClientItem.html

This file was deleted.

2,994 changes: 0 additions & 2,994 deletions docs/module-client.ClientModel.html

This file was deleted.

1,207 changes: 0 additions & 1,207 deletions docs/module-client.ClientView.html

This file was deleted.

1,368 changes: 0 additions & 1,368 deletions docs/module-client.Interactor.html

This file was deleted.

995 changes: 0 additions & 995 deletions docs/module-client.ShadowView.html

This file was deleted.

211 changes: 0 additions & 211 deletions docs/module-client.html

This file was deleted.

2,714 changes: 0 additions & 2,714 deletions docs/module-mixins.Hittable.html

This file was deleted.

262 changes: 0 additions & 262 deletions docs/module-mixins.Identifiable.html

This file was deleted.

2,437 changes: 0 additions & 2,437 deletions docs/module-mixins.Interactable.html

This file was deleted.

682 changes: 0 additions & 682 deletions docs/module-mixins.Lockable.html

This file was deleted.

661 changes: 0 additions & 661 deletions docs/module-mixins.Locker.html

This file was deleted.

547 changes: 0 additions & 547 deletions docs/module-mixins.Publishable.html

This file was deleted.

1,460 changes: 0 additions & 1,460 deletions docs/module-mixins.Transformable2D.html

This file was deleted.

219 changes: 0 additions & 219 deletions docs/module-mixins.html

This file was deleted.

618 changes: 0 additions & 618 deletions docs/module-predefined.actions.html

This file was deleted.

202 changes: 0 additions & 202 deletions docs/module-predefined.html

This file was deleted.

2,597 changes: 0 additions & 2,597 deletions docs/module-predefined.items.html

This file was deleted.

262 changes: 0 additions & 262 deletions docs/module-predefined.layouts.Line.html

This file was deleted.

262 changes: 0 additions & 262 deletions docs/module-predefined.layouts.Table.html

This file was deleted.

529 changes: 0 additions & 529 deletions docs/module-predefined.layouts.html

This file was deleted.

819 changes: 0 additions & 819 deletions docs/module-predefined.routing.html

This file was deleted.

411 changes: 0 additions & 411 deletions docs/module-predefined.utilities.html

This file was deleted.

2,239 changes: 0 additions & 2,239 deletions docs/module-server.Application.html

This file was deleted.

1,649 changes: 0 additions & 1,649 deletions docs/module-server.Device.html

This file was deleted.

885 changes: 0 additions & 885 deletions docs/module-server.GestureController.html

This file was deleted.

1,832 changes: 0 additions & 1,832 deletions docs/module-server.MessageHandler.html

This file was deleted.

1,877 changes: 0 additions & 1,877 deletions docs/module-server.ServerController.html

This file was deleted.

3,711 changes: 0 additions & 3,711 deletions docs/module-server.ServerElement.html

This file was deleted.

3,418 changes: 0 additions & 3,418 deletions docs/module-server.ServerGroup.html

This file was deleted.

3,326 changes: 0 additions & 3,326 deletions docs/module-server.ServerImage.html

This file was deleted.

3,903 changes: 0 additions & 3,903 deletions docs/module-server.ServerItem.html

This file was deleted.

3,960 changes: 0 additions & 3,960 deletions docs/module-server.ServerView.html

This file was deleted.

3,402 changes: 0 additions & 3,402 deletions docs/module-server.ServerViewGroup.html

This file was deleted.

1,783 changes: 0 additions & 1,783 deletions docs/module-server.Switchboard.html

This file was deleted.

2,698 changes: 0 additions & 2,698 deletions docs/module-server.WorkSpace.html

This file was deleted.

226 changes: 0 additions & 226 deletions docs/module-server.html

This file was deleted.

771 changes: 0 additions & 771 deletions docs/module-shared.Circle.html

This file was deleted.

357 changes: 0 additions & 357 deletions docs/module-shared.Hitbox.html

This file was deleted.

778 changes: 0 additions & 778 deletions docs/module-shared.IdStamper.html

This file was deleted.

676 changes: 0 additions & 676 deletions docs/module-shared.Item.html

This file was deleted.

884 changes: 0 additions & 884 deletions docs/module-shared.Oval.html

This file was deleted.

2,600 changes: 0 additions & 2,600 deletions docs/module-shared.Point2D.html

This file was deleted.

862 changes: 0 additions & 862 deletions docs/module-shared.Polygon2D.html

This file was deleted.

885 changes: 0 additions & 885 deletions docs/module-shared.Rectangle.html

This file was deleted.

1,046 changes: 0 additions & 1,046 deletions docs/module-shared.RoundedLine.html

This file was deleted.

296 changes: 0 additions & 296 deletions docs/module-shared.View.html

This file was deleted.

448 changes: 0 additions & 448 deletions docs/module-shared.WamsElement.html

This file was deleted.

209 changes: 0 additions & 209 deletions docs/module-shared.WamsImage.html

This file was deleted.

597 changes: 0 additions & 597 deletions docs/module-shared.html

This file was deleted.

477 changes: 0 additions & 477 deletions docs/module-shared.utilities.html

This file was deleted.

112 changes: 0 additions & 112 deletions docs/predefined.js.html

This file was deleted.

155 changes: 0 additions & 155 deletions docs/predefined_actions.js.html

This file was deleted.

365 changes: 0 additions & 365 deletions docs/predefined_items.js.html

This file was deleted.

264 changes: 0 additions & 264 deletions docs/predefined_layouts.js.html

This file was deleted.

175 changes: 0 additions & 175 deletions docs/predefined_routing.js.html

This file was deleted.

120 changes: 0 additions & 120 deletions docs/predefined_utilities.js.html

This file was deleted.

39 changes: 0 additions & 39 deletions docs/scripts/collapse.js

This file was deleted.

28 changes: 0 additions & 28 deletions docs/scripts/commonNav.js

This file was deleted.

25 changes: 0 additions & 25 deletions docs/scripts/linenumber.js

This file was deleted.

12 changes: 0 additions & 12 deletions docs/scripts/nav.js

This file was deleted.

4 changes: 0 additions & 4 deletions docs/scripts/polyfill.js

This file was deleted.

Loading