Skip to content

Commit 2382b5a

Browse files
authored
Merge pull request #18 from opencomponents/new-website
New website using docusaurus
2 parents b7b06b2 + 7fb0b71 commit 2382b5a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+11977
-772
lines changed

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
# Allows you to run this workflow manually from the Actions tab
10+
workflow_dispatch:
11+
12+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
13+
jobs:
14+
publish:
15+
runs-on: ubuntu-latest
16+
steps:
17+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
18+
- name: Check out repo
19+
uses: actions/checkout@v2
20+
# Node is required for npm
21+
- name: Set up Node
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: "14"
25+
# Install and build Docusaurus website
26+
- name: Build Docusaurus website
27+
run: |
28+
cd website
29+
npm install
30+
npm run build
31+
- name: Deploy to GitHub Pages
32+
if: success()
33+
uses: crazy-max/ghaction-github-pages@v2
34+
with:
35+
target_branch: gh-pages
36+
build_dir: website/build
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/manual.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.gitignore

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

README.md

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
1-
# opencomponents.github.io
1+
# Website
22

3-
[opencomponents.github.io
4-
](https://opencomponents.github.io/)
3+
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
54

5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

assets/analytics.js

Lines changed: 0 additions & 74 deletions
This file was deleted.

assets/client.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

assets/css

Lines changed: 0 additions & 168 deletions
This file was deleted.

0 commit comments

Comments
 (0)