-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: migrate docs generator to vitepress (#403)
* chore(vitepress): add basic files * chore(vitepress): add dev deps & scripts for use * chore(vitepress config): change to ts for type checks * chore(vitepress config): remove js file * chore(vitepress theme): add custom theme css * chore(vitepress docs): add simple home page * chore(gitignore): ignore doc dist * chore(favicon): add icon to head * feat(doc-features): add features spotlight * chore(doc footer): made with ❤️ * chore(structure): move md files into `./src` * chore(config): re-organise * chore: custom dev port * feat: documentation pages * refactor: modified config * feat: social links * style: formatted code * feat: removed code groups temporarily * fix: fixed bundlephobia svg * docs: general documentation remake * docs: more rewritting Co-authored-by: arthurfiorette <arthur.fiorette@gmail.com>
- Loading branch information
1 parent
11cbe81
commit de91d05
Showing
103 changed files
with
1,914 additions
and
13,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ package-lock.json | |
.yarn/* | ||
!.yarn/releases | ||
!.yarn/plugins | ||
|
||
benchmark/index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Deploy docs | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Publish as version:' | ||
required: true | ||
latest: | ||
description: 'Override latest version:' | ||
required: true | ||
|
||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Setup node and restore cached dependencies | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
registry-url: 'https://registry.npmjs.org/' | ||
cache: 'yarn' | ||
|
||
- name: Install packages | ||
run: yarn install --prefer-offline | ||
|
||
- name: Build | ||
run: npm run docs:build | ||
|
||
- name: Deploy to ${{ github.event.inputs.version }} | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: ./docs/.vitepress/dist | ||
branch: gh-pages | ||
target-folder: ${{ github.event.inputs.version }} | ||
clean: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Deploy docs for ${{ github.event.inputs.version }}" | ||
|
||
- name: Deploy to latest | ||
if: ${{ github.event.inputs.latest == 'true' }} | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: ./docs/.vitepress/dist | ||
target-folder: docs # To use the docs folder of github pages | ||
clean: true | ||
branch: gh-pages | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Deploy docs for latest" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,9 @@ node_modules | |
/dist | ||
/dev | ||
|
||
# Documentation output | ||
docs/.vitepress/dist | ||
|
||
# Random | ||
/ignore | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.vitepress/dist |
Oops, something went wrong.