Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d1fd013

Browse files
committedJul 16, 2023
ci: setup documentation deployment
1 parent d9092c9 commit d1fd013

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
 

‎.github/workflows/docs.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Docs
2+
3+
on:
4+
workflow_dispatch: {}
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
docs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 16
20+
cache: yarn
21+
22+
- name: Install dependencies
23+
run: yarn install --frozen-lockfile
24+
25+
- name: Build docs
26+
run: npm run docs:build
27+
28+
# https://github.com/crazy-max/ghaction-github-pages
29+
- name: Deploy to GitHub Pages
30+
uses: crazy-max/ghaction-github-pages@v3
31+
with:
32+
target_branch: gh-pages
33+
build_dir: docs/.vitepress/dist
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

‎docs/.vitepress/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { description, version } from "../../package.json";
55
// https://vitepress.dev/reference/site-config
66
export default defineConfig({
77
title: "eslint-plugin-vuejs-a11y",
8+
base: "/eslint-plugin-vuejs-accessibility/",
89
description,
910
themeConfig: {
1011
// https://vitepress.dev/reference/default-theme-config

0 commit comments

Comments
 (0)
Please sign in to comment.