Skip to content

Commit

Permalink
chore: work on doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Xstoudi committed Mar 20, 2024
1 parent 81b73c4 commit 97ba858
Show file tree
Hide file tree
Showing 27 changed files with 44 additions and 9,860 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
name: Deploy to GitHub Pages
name: Deploy Adonis Auditing site to 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
branches: [main]
workflow_dispatch:

permissions:
contents: write
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: false

jobs:
deploy:
name: Deploy to GitHub Pages
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
steps:
- uses: actions/checkout@v4
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
- name: Setup Node
uses: actions/setup-node@v4
with:
version: 8
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: pnpm
cache-dependency-path: ./docs/pnpm-lock.yaml

- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build website
run: pnpm run build
run: pnpm install
- name: Build with VitePress
run: pnpm docs:build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/.vitepress/dist

# Popular action to deploy to GitHub Pages:
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: Deploy
steps:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# Build output to publish to the `gh-pages` branch:
publish_dir: ./docs/build
# The following lines assign commit authorship to the official
# GH-Actions bot for deploys to `gh-pages` branch:
# https://github.com/actions/checkout/issues/13#issuecomment-724415212
# The GH actions bot is used by default if you didn't specify the two fields.
# You can swap them out with your own user credentials.
user_name: Xstoudi
user_email: [email protected]
id: deployment
uses: actions/deploy-pages@v4
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ dist
yarn.lock
shrinkwrap.yaml
package-lock.json
docs/.vitepress/dist
docs/.vitepress/cache
20 changes: 0 additions & 20 deletions docs-docusaurus/.gitignore

This file was deleted.

41 changes: 0 additions & 41 deletions docs-docusaurus/README.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs-docusaurus/babel.config.js

This file was deleted.

4 changes: 0 additions & 4 deletions docs-docusaurus/docs/configuration/_category_.json

This file was deleted.

4 changes: 0 additions & 4 deletions docs-docusaurus/docs/essentials/_category_.json

This file was deleted.

116 changes: 0 additions & 116 deletions docs-docusaurus/docusaurus.config.ts

This file was deleted.

48 changes: 0 additions & 48 deletions docs-docusaurus/package.json

This file was deleted.

Loading

0 comments on commit 97ba858

Please sign in to comment.