Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
wfnuser committed Jun 24, 2024
1 parent d9b2164 commit d839a0c
Show file tree
Hide file tree
Showing 8 changed files with 3,436 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy

on:
push:
branches:
- main # 或您用于开发的分支

jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install and Build
run: |
npm install
npx vitepress build docs
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # 部署到 gh-pages 分支
folder: docs/.vitepress/dist # 要部署的文件夹
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
_site/
_draft/
.jekyll-cache/

node_modules
dist
cache
17 changes: 17 additions & 0 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = {
title: "YouBet",
themeConfig: {
sidebar: {
"/": [
{
text: "Introduction",
link: "/",
},
{
text: "Quick Start",
items: [{ text: "Hello, World!", link: "/quickstart/hello-world" }],
},
],
},
},
};
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Index
1 change: 1 addition & 0 deletions docs/quickstart/hello-world.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Hello, world!
Loading

0 comments on commit d839a0c

Please sign in to comment.