Skip to content

Commit

Permalink
Merge pull request #35 from ShaunLawrie/update-docs-site
Browse files Browse the repository at this point in the history
Update docs site
  • Loading branch information
ShaunLawrie authored Mar 14, 2024
2 parents 3a2afa9 + 24198ac commit 0c40403
Show file tree
Hide file tree
Showing 192 changed files with 6,806 additions and 1,760 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**/*.cast merge=ours linguist-generated=true
16 changes: 16 additions & 0 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,22 @@ jobs:
# Create a gh release for it
gh release create "v$newVersion-$newPrereleaseTag" --target prerelease --generate-notes --prerelease
# Publish prerelease docs
Install-Module HelpOut -Scope CurrentUser -Force
& .\PwshSpectreConsole.Docs\UpdateDocs.ps1 -NonInteractive
git config --global user.name 'Shaun Lawrie (via GitHub Actions)'
git config --global user.email '[email protected]'
git add PwshSpectreConsole.Docs/src/content || true
git commit -m "[skip ci] Update docs" || true
git push || true
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
workingDirectory: "./PwshSpectreConsole.Docs/dist"
command: pages deploy . --project-name pwshspectreconsole --commit-dirty=true --branch=prerelease
- name: Upload Snapshots
if: failure()
uses: actions/upload-artifact@v4
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"powershell.codeFormatting.preset": "OTBS",
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnType": false
"editor.formatOnType": false,
"editor.tabSize": 4
}
112 changes: 0 additions & 112 deletions PwshSpectreConsole.Docs/UpdateDocs.ps1

This file was deleted.

5 changes: 3 additions & 2 deletions PwshSpectreConsole.Docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export default defineConfig({
starlight({
title: "PwshSpectreConsole",
editLink: {
baseUrl: "https://github.com/ShaunLawrie/PwshSpectreConsole/edit/main/PwshSpectreConsole.Docs/",
baseUrl:
"https://github.com/ShaunLawrie/PwshSpectreConsole/edit/main/PwshSpectreConsole.Docs/",
},
favicon: "/favicon.png",
customCss: ["./src/tailwind.css"],
Expand Down Expand Up @@ -46,5 +47,5 @@ export default defineConfig({
tailwind({
applyBaseStyles: false,
}),
],
]
});
Loading

0 comments on commit 0c40403

Please sign in to comment.