Skip to content

Commit 4e8fc8b

Browse files
authored
Update v1.2.0 (#19)
Features - Add build workflow Changes - Bump version to `1.2.0` - Remove docs submodule - Remove scripts - Remove unused files - Remove unused scripts from package.json - Update website end title and description - Update dependencies - Update button component - Update README Fixes - Fix wrong /try-it title - Fix wrong images path
1 parent 1c36446 commit 4e8fc8b

File tree

14 files changed

+816
-888
lines changed

14 files changed

+816
-888
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
# Only build after new tag.
4+
on:
5+
workflow_dispatch:
6+
push:
7+
tags:
8+
- "*"
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Setup Node with yarn caching
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: "18"
22+
cache: yarn
23+
24+
- name: Install dependencies
25+
run: yarn install
26+
27+
- name: Build Astro
28+
run: yarn build
29+
30+
- name: Deploy
31+
uses: peaceiris/actions-gh-pages@v3
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
publish_dir: ./build
35+
publish_branch: release
36+
enable_jekyll: false
37+
user_name: "github-actions[bot]"
38+
user_email: "github-actions[bot]@users.noreply.github.com"

.gitmodules

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

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# HawAPI - Website
22

3-
This repository contains the source code required to build the [HawAPI](https://hawapi.theproject.id) website and documentation.
3+
This repository contains the source code required to build the [HawAPI](https://hawapi.theproject.id) website.
44

55
## Topics
66

@@ -16,7 +16,6 @@ This repository contains the source code required to build the [HawAPI](https://
1616
- Text editor or IDE (VsCode, Subline, Noteped++)
1717
- Npm/Yarn
1818
- [Astro](https://astro.build/) for [website](https://github.com/HawAPI/website) generation
19-
- [Retype](https://retype.com/) for [docs](https://github.com/HawAPI/website) generation
2019

2120
## Dependencies
2221

@@ -58,22 +57,19 @@ yarn dev
5857
Open the browser and go to:
5958

6059
```
61-
http://localhost:3000
60+
http://localhost:4321
6261
```
6362

6463
## Scripts
6564

6665
All scripts are run from the root of the project, from a terminal:
6766

68-
| Command | Action |
69-
| :---------------- | :------------------------------------------------- |
70-
| `yarn` | Installs dependencies |
71-
| `yarn dev` | Starts local dev server at `localhost:3000` |
72-
| `yarn dev-docs` | Starts local dev (docs) server at `localhost:5005` |
73-
| `yarn build` | Build production site to `./build/` |
74-
| `yarn build-docs` | Build production site (docs) to `./docs/build/` |
75-
| `yarn build-all` | Build all production site to `./build/` |
76-
| `yarn clean` | Remove `./build/` |
67+
| Command | Action |
68+
| :----------- | :------------------------------------------ |
69+
| `yarn` | Installs dependencies |
70+
| `yarn dev` | Starts local dev server at `localhost:4321` |
71+
| `yarn build` | Build production site to `./build/` |
72+
| `yarn clean` | Remove `./build/` |
7773

7874
## Contributing
7975

docs

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,24 @@
11
{
22
"name": "@hawapi/root",
3-
"version": "1.0.0",
3+
"version": "1.2.0",
44
"private": true,
55
"scripts": {
66
"dev": "astro dev",
7-
"dev:docs": "cd docs/ && retype watch",
8-
"build": "yarn clean && astro build",
9-
"build:adapt": "./scripts/adapt-website.sh",
10-
"build:docs": "cd docs/ && yarn build",
11-
"build:all": "yarn build && yarn build:docs && ./scripts/setup-docs.sh && yarn build:adapt",
7+
"build": "astro build",
128
"clean": "rm -rf ./build"
139
},
1410
"devDependencies": {
15-
"@astrojs/sitemap": "^1.3.3",
16-
"@typescript-eslint/eslint-plugin": "^5.59.9",
17-
"@typescript-eslint/parser": "^5.59.9",
18-
"astro": "^2.5.7",
11+
"@astrojs/sitemap": "^3.0.0",
12+
"@typescript-eslint/eslint-plugin": "^6.7.2",
13+
"@typescript-eslint/parser": "^6.7.2",
14+
"astro": "^3.1.1",
1915
"astro-compress": "^2.0.12",
2016
"astro-icon": "^0.8.1",
21-
"eslint": "^8.42.0",
22-
"eslint-config-prettier": "^8.8.0",
23-
"eslint-plugin-astro": "^0.27.1",
24-
"prettier": "^2.8.8",
25-
"prettier-plugin-astro": "^0.10.0",
17+
"eslint": "^8.49.0",
18+
"eslint-config-prettier": "^9.0.0",
19+
"eslint-plugin-astro": "^0.29.0",
20+
"prettier": "^3.0.3",
21+
"prettier-plugin-astro": "^0.12.0",
2622
"svgo": "2.8.0"
2723
}
2824
}

public/data/colors.json

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

public/data/sdks.json

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

scripts/adapt-website.sh

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

scripts/setup-docs.sh

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

src/components/core/Button.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface Props {
88
const { name, id, classes } = Astro.props as Props;
99
---
1010

11-
<button class:list={['button', classes]} id={id} value="cancel">
11+
<button class:list={['button', classes]} id={id}>
1212
{name}
1313
</button>
1414

0 commit comments

Comments
 (0)