Skip to content

Commit c8876df

Browse files
committed
Initialise website
1 parent 7552d9c commit c8876df

32 files changed

+28118
-0
lines changed

.github/workflows/gwen-website.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: gwen-website
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
push:
7+
branches: [master]
8+
9+
jobs:
10+
checks:
11+
if: github.event_name != 'push'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '12.x'
18+
- name: Build website
19+
run: |
20+
if [ -e yarn.lock ]; then
21+
yarn install --frozen-lockfile
22+
elif [ -e package-lock.json ]; then
23+
npm ci
24+
else
25+
npm i
26+
fi
27+
npm run build
28+
gh-release:
29+
if: github.event_name != 'pull_request'
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v1
33+
- uses: actions/setup-node@v1
34+
with:
35+
node-version: '12.x'
36+
- uses: webfactory/[email protected]
37+
with:
38+
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
39+
- name: Release website
40+
env:
41+
USE_SSH: true
42+
GIT_USER: git
43+
DEPLOYMENT_BRANCH: gh-pages
44+
run: |
45+
git config --global user.email "[email protected]"
46+
git config --global user.name "Branko Juric"
47+
if [ -e yarn.lock ]; then
48+
yarn install --frozen-lockfile
49+
elif [ -e package-lock.json ]; then
50+
npm ci
51+
else
52+
npm i
53+
fi
54+
npm run deploy

.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

README.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Gwen Website
2+
3+
This project uses [Docusaurus 2](https://docusaurus.io/) to build and publish the [Gwen website](https://gweninterpreter.org).
4+
5+
## Install
6+
7+
This command installs all dependencies locally.
8+
9+
```console
10+
yarn install
11+
```
12+
13+
## Start
14+
15+
This command starts a local server and opens the site in a browser window. Most changes are reflected live without having to restart.
16+
17+
```console
18+
yarn start
19+
```
20+
21+
## Build
22+
23+
This command builds the static website and outputs it to the `build` directory.
24+
25+
```console
26+
yarn build
27+
```
28+
29+
## Publish
30+
31+
Merging or pushing changes to the `master` branch will trigger the `website` workflow in GitHub Actions to build, verify and publish the site.
32+
- The generated website will be pushed to the `gh-pages` branch
33+
- The website will be served at https://gweninterpreter.org
34+

babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};

0 commit comments

Comments
 (0)