Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 47 additions & 0 deletions .github/workflows/docusaurus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Build and deploy the Docusaurus documentation site.
name: "Deploy site to pages (docusaurus)"

on:
pull_request:
push:
branches-ignore:
- asf-site
- gh-pages

jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "20"

- name: Install dependencies
run: npm install

- name: Build Site
env:
KAPA_WEBSITE_ID: ${{ vars.KAPA_WEBSITE_ID || secrets.KAPA_WEBSITE_ID }}
run: npm run build

- name: Deploy Site
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Refer: https://github.com/marketplace/actions/github-pages-action
publish_dir: ./build
publish_branch: asf-site
keep_files: true # A simple way to keep ".asf.yaml" file
commit_message: ${{ github.event.head_commit.message }}
58 changes: 0 additions & 58 deletions .github/workflows/hugo.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,22 @@
public/
build/
.docusaurus/
artifacts/
resources/
node_modules/
package-lock.json
.hugo_build.lock
nohup.out
*.log

# Generated by scripts/prepare-docs-versions.mjs before Docusaurus build/start.
versioned_docs/
versioned_sidebars/
versions.json
docs-cn_versioned_docs/
docs-cn_versioned_sidebars/
docs-cn_versions.json

# Default ignored files
/shelf/
/workspace.xml
Expand Down
Loading
Loading