Add path prefix to website

This commit is contained in:
Daniel Lautzenheiser 2022-09-30 11:53:25 -04:00
parent 44a48d9d11
commit bfd99ad8f3
3 changed files with 1 additions and 17 deletions

View File

@ -1,16 +0,0 @@
name: Website Publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: enriikke/gatsby-gh-pages-action@v2
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
working-dir: website

View File

@ -4,7 +4,7 @@
"description": "Simple CMS documentation website built with Gatsby", "description": "Simple CMS documentation website built with Gatsby",
"scripts": { "scripts": {
"start": "gatsby develop", "start": "gatsby develop",
"build": "gatsby build && rm -rf dist && mv public dist", "build": "gatsby build --prefix-paths && rm -rf dist && mv public dist",
"lint": "markdownlint 'content/docs/**/*.md'", "lint": "markdownlint 'content/docs/**/*.md'",
"reset": "rm -rf .cache" "reset": "rm -rf .cache"
}, },