Skip to content

Commit c318e85

Browse files
authored
New website (#290)
Co-authored-by: Vishal Rana <[email protected]>
1 parent 6641d25 commit c318e85

File tree

150 files changed

+14607
-3808
lines changed

Some content is hidden

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

150 files changed

+14607
-3808
lines changed

.github/workflows/deploy.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
# Review gh actions docs if you want to further define triggers, paths, etc
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+
jobs:
11+
deploy:
12+
name: Deploy to GitHub Pages
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
cache: yarn
20+
21+
- name: Install dependencies
22+
run: yarn install --frozen-lockfile
23+
working-directory: website
24+
- name: Build website
25+
run: yarn build
26+
working-directory: website
27+
28+
# Popular action to deploy to GitHub Pages:
29+
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
30+
- name: Deploy to GitHub Pages
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
# Build output to publish to the `gh-pages` branch:
35+
publish_dir: ./website/build
36+
# The following lines assign commit authorship to the official
37+
# GH-Actions bot for deploys to `gh-pages` branch:
38+
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
39+
# The GH actions bot is used by default if you didn't specify the two fields.
40+
# You can swap them out with your own user credentials.
41+
user_name: github-actions[bot]
42+
user_email: 41898282+github-actions[bot]@users.noreply.github.com

.github/workflows/publish.yaml

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

.github/workflows/test-deploy.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
# Review gh actions docs if you want to further define triggers, paths, etc
8+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9+
10+
jobs:
11+
test-deploy:
12+
name: Test deployment
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
17+
with:
18+
node-version: 18
19+
cache: yarn
20+
21+
- name: Install dependencies
22+
run: yarn install --frozen-lockfile
23+
working-directory: website
24+
- name: Test build website
25+
run: yarn build
26+
working-directory: website

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66

77
### Running Website Locally
88

9-
- If you don't have hugo, get it [`hugo`](https://gohugo.io).
10-
- From terminal, go to website folder and run `hugo serve`.
9+
- Ensure that you have Node.js installed on your computer. If you don't have it, download and install it from the official Node.js website (https://nodejs.org).
10+
- Inside the "website" folder, install the required dependencies by running the following command `npm install`.
11+
- Run the website locally by running the following command `npm start`.
File renamed without changes.
File renamed without changes.

website/.gitignore

Lines changed: 20 additions & 0 deletions
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*

website/babel.config.js

Lines changed: 3 additions & 0 deletions
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+
};

website/config.toml

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

website/content/cookbook.md

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

0 commit comments

Comments
 (0)