Skip to content

Commit

Permalink
docs: add sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonraimondi committed Apr 9, 2024
1 parent 06478be commit 88d440b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,22 @@ jobs:
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- run: pnpm install --frozen-lockfile
- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
TARGET_REPO: jasonraimondi/ts-oauth2-server
TARGET_BRANCH: gh-pages
BUILD_SCRIPT: npm install -g pnpm && pnpm install --frozen-lockfile && pnpm docs:build
BUILD_DIR: docs/.vitepress/dist/
- run: pnpm docs:build
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1
with:
path: 'docs/.vitepress/dist/'

deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v2
3 changes: 3 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export default defineConfig({
},
],
],
sitemap: {
hostname: 'https://tsoauth2server.com'
},
themeConfig: {
siteTitle: "@jmondi/oauth2-server",
search: {
Expand Down

0 comments on commit 88d440b

Please sign in to comment.