Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
novaknole committed Dec 11, 2024
1 parent fbc8914 commit 80a28d0
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 191 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/on_push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install deps
run: yarn
- name: Optimize SVG images
run: yarn optimize-svg
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
2 changes: 1 addition & 1 deletion .github/workflows/publish-on-fleek.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
cache: 'yarn'

- name: Install and build
run: yarn && yarn optimize-svg && yarn build
run: yarn install --frozen-lockfile && yarn build

- name: Activate Fleek
run: mv fleek_${{ inputs.source_branch }}.json .fleek.json
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ ui/node_modules
ui/theme/dist

# Generated files
.docusaurus
.cache-loader
/static/optimized-svg

Expand Down
14 changes: 2 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

Aragon's Developer Portal holds all documentation developers need to kickstart their journey building with the Aragon OSx stack. You can find it in production [here](https://devs.aragon.org).

This website is built using [Docusaurus 3](https://docusaurus.io/), a static website generator for technical documentations.
This website is built using [Antora](https://antora.org/), a static multi-repo website generator for technical documentations.

### Installation

Expand All @@ -38,17 +38,7 @@ This command starts a local development server and opens up a browser window. Mo
$ yarn build
```

This command generates static content into the `build` directory and can be served using any static contents hosting service.

Notice: you may need to run `yarn optimize-svg` before `yarn build` or `yarn start` to correctly build this website.

### Serve All Optimized Assets

```bash
$ yarn serve:all-optimized
```

This command runs all the necessary commands to serve the website from scratch. It installs all the needed libraries, and then builds and serves the website, locally, with all optimized assets.
This command generates static content into the `build/site` directory and can be served using any static contents hosting service.

### Deployment

Expand Down
167 changes: 0 additions & 167 deletions docusaurus.config.js

This file was deleted.

4 changes: 2 additions & 2 deletions fleek_master.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"build": {
"baseDir": "",
"publicDir": "build/",
"command": "yarn && yarn optimize-svg && yarn build",
"publicDir": "build/site/",
"command": "yarn install --frozen-lockfile && yarn build",
"rootDir": ""
}
}
4 changes: 2 additions & 2 deletions fleek_staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"build": {
"baseDir": "",
"publicDir": "build/",
"command": "yarn && yarn optimize-svg && yarn build",
"publicDir": "build/site/",
"command": "yarn install --frozen-lockfile && yarn build",
"rootDir": ""
}
}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"build": "bash scripts/build.sh --fetch playbook.yml",
"build:no-fetch": "bash scripts/build.sh playbook.yml",
"build:local": "bash scripts/build.sh playbook-local-only.yml",
"serve:all-optimized": "yarn && yarn optimize-svg && yarn build && yarn serve",
"optimize-svg": "svgo -rf ./static/img -o ./static/optimized-svg",
"build:theme": "yarn --cwd ui build",
"serve": "yarn build && live-server build/site",
"watch:local": "fgbg 'nodemon -e yml,adoc,css,scss,js -w components -w ui --ignore ui/theme/dist -x sh scripts/watch-local-build.sh' 'live-server build/site'",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"extends": "@docusaurus/tsconfig",
"compilerOptions": {
"jsx": "react",
"baseUrl": ".",
Expand Down

0 comments on commit 80a28d0

Please sign in to comment.