📜 Docusaurus config for gh-pages (#6386)

* docusaurus config for gh-pages

* [autofix.ci] apply automated fixes

* workflow

* deploy:docs

* using github actions bot as name

* release notes

* adding jekyll to excludes

* nojeklyll

* setup first then deploy

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Michael Clark
2025-12-13 15:05:45 +00:00
committed by GitHub
parent fb5a86dec1
commit 87cfcd35f7
6 changed files with 43 additions and 0 deletions

View File

@@ -72,5 +72,6 @@ ignore$
(?:^|/)yarn\.lock$ (?:^|/)yarn\.lock$
(?:^|/)(?i)docusaurus.config.js (?:^|/)(?i)docusaurus.config.js
(?:^|/)(?i)README.md (?:^|/)(?i)README.md
(?:^|/)(?i).nojekyll
^\static/ ^\static/
\.tsx$ \.tsx$

30
.github/workflows/docs-release.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Release Docs to Github Pages
# Release docs on every push to master
on:
push:
branches:
- master
paths:
- "packages/docs/**"
- ".github/workflows/docs-spelling.yml"
- ".github/actions/docs-spelling/**"
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy Docs
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Set up environment
uses: ./.github/actions/setup
- name: Docusaurus Deploy
run: |
GIT_USER=MikesGlitch \
GIT_PASS=${{ secrets.DOCS_GITHUB_PAGES_DEPLOY }} \
GIT_USER_NAME=github-actions[bot] \
GIT_USER_EMAIL=github-actions[bot]@users.noreply.github.com \
yarn deploy:docs

View File

@@ -40,6 +40,7 @@
"build:plugins-service": "yarn workspace plugins-service build", "build:plugins-service": "yarn workspace plugins-service build",
"build:api": "yarn workspace @actual-app/api build", "build:api": "yarn workspace @actual-app/api build",
"build:docs": "yarn workspace docs build", "build:docs": "yarn workspace docs build",
"deploy:docs": "yarn workspace docs deploy",
"generate:i18n": "yarn workspace @actual-app/web generate:i18n", "generate:i18n": "yarn workspace @actual-app/web generate:i18n",
"generate:release-notes": "ts-node ./bin/release-note-generator.ts", "generate:release-notes": "ts-node ./bin/release-note-generator.ts",
"test": "lage test --continue", "test": "lage test --continue",

View File

@@ -17,6 +17,10 @@ module.exports = {
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
favicon: 'img/favicon.ico', favicon: 'img/favicon.ico',
projectName: 'actualbudget.github.io',
organizationName: 'actualbudget',
deploymentBranch: 'main',
// Even if you don't use internalization, you can use this field to set useful // Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want // metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans". // to replace "en" with "zh-Hans".

0
packages/docs/static/.nojekyll vendored Normal file
View File

View File

@@ -0,0 +1,7 @@
---
category: Maintenance
authors: [MikesGlitch]
---
Workflow and config added for docs site move to Github Pages