-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add docusaurus docs * feat: add nextra docs * chore: update pnpm files * chore: add autoprefixer to catalog * fix: improve * fix: add built in serve for nextra export * chore: remove docusaurus * chore: do slightly clearner install of pnpm lock * chore: do slightly clearner install of pnpm lock * chore: move over some other readmes * chore: update layout slightly * chore: disable eslint for builds * feat: setup gh-actions deploy * fix: deploy under subpath * fix: add pr number on preview builds * fix: better ignore for doc build * fix: actually install deps * fix: better filter * chore: meaningless docs change * chore: better filter * fix: try more permissions * fix: even more permissions * fix: even broader permissions and give up on turbo for now * fix: add fetch depth 0 * fix: add utility to get correct path * fix: better path * fix: replace url comments with actual code * fix: test if normal deploy works * fix: better conditions * fix better permissions * fix: on merge main * fix: also run thing on close * fix: add needs * fix: use correct action keyword * fix: checkout first * fix: add back reopened label * fix: correct link for main * fix: smaller permissions
- Loading branch information
Showing
39 changed files
with
4,131 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: Build Docs | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
preview: | ||
type: boolean | ||
required: true | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
with: | ||
# necessary in order to show latest updates in docs | ||
fetch-depth: 0 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22.13.1 | ||
|
||
- uses: pnpm/action-setup@v4 | ||
name: Install pnpm | ||
with: | ||
run_install: false | ||
|
||
- name: Get pnpm store directory | ||
id: get-store-path | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_OUTPUT | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.get-store-path.outputs.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
# - name: Cache turbo | ||
# uses: actions/cache@v4 | ||
# with: | ||
# path: .turbo | ||
# key: ${{ runner.os }}-turbo-${{ github.sha }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-turbo- | ||
|
||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile --prefer-offline | ||
|
||
- name: set pr number if preview | ||
id: set-pr-number | ||
if: inputs.preview == true | ||
run: | | ||
echo "PR_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_OUTPUT | ||
- name: Build docs | ||
env: | ||
PR_NUMBER: ${{ steps.set-pr-number.outputs.PR_NUMBER }} | ||
run: pnpm --filter docs build | ||
|
||
- name: Deploy docs main 🚀 | ||
if: inputs.preview == false | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs/out | ||
branch: gh-pages | ||
clean-exclude: pr-preview | ||
force: false | ||
|
||
- name: Deploy docs preview | ||
if: inputs.preview == true | ||
uses: rossjrw/pr-preview-action@v1 | ||
with: | ||
source-dir: docs/out | ||
action: deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.* | ||
.yarn/* | ||
!.yarn/patches | ||
!.yarn/plugins | ||
!.yarn/releases | ||
!.yarn/versions | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
.pnpm-debug.log* | ||
|
||
# env files (can opt-in for committing if needed) | ||
.env* | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
_pagefind/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# PubPub Development Documentation | ||
|
||
This is the development documentation for PubPub, mostly intended for internal use. | ||
|
||
For documentation on how to use PubPub, see <https://help.knowledgefutures.org>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import type { MetaRecord} from 'nextra' | ||
|
||
const meta: MetaRecord = { | ||
infrastructure: "🏗️ Infrastructure", | ||
}; | ||
|
||
export default meta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.