Skip to content

Commit

Permalink
Merge pull request #28 from aiselp/main
Browse files Browse the repository at this point in the history
更换Docusaurus构建文档
  • Loading branch information
kkevsekk1 authored Jul 7, 2024
2 parents 2c072d7 + 7e56269 commit 346253f
Show file tree
Hide file tree
Showing 138 changed files with 30,529 additions and 7,837 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci
- name: Build website
run: npm run build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy to GitHub Pages
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
26 changes: 26 additions & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Test deployment

on:
pull_request:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm ci
- name: Test build website
run: npm run build
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dependencies
/node_modules

# Production
/build

# Generated files
.docusaurus
.cache-loader

# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
1 change: 0 additions & 1 deletion CNAME

This file was deleted.

201 changes: 0 additions & 201 deletions LICENSE

This file was deleted.

10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

地址 : http://doc.autoxjs.com/


使用 [Docsify](https://github.com/docsifyjs/docsify/) 构建

使用 [Docusaurus](https://docusaurus.io/) 构建

## 本地开发

- fork 本项目
- clone 自己的仓库到本地
- 使用 vscode 打开
- 安装 `npm i docsify-cli -g`
- 运行 `docsify serve .` (后面有个 点)
- 浏览器访问 `http://localhost:3000`
- 安装 `npm ci`
- 运行 `npm start`
- 浏览器访问 `http://localhost:3000`
50 changes: 0 additions & 50 deletions _sidebar.md

This file was deleted.

Loading

0 comments on commit 346253f

Please sign in to comment.