Bring this repo back to life - #627
Open
OisinKyne wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for obol-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Comment on lines
+9
to
+28
| name: Build and typecheck | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-node@v4 | ||
| - name: Checkout | ||
| uses: actions/checkout@v5 | ||
|
|
||
| - name: Setup Node | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| node-version: "22" | ||
| cache: yarn | ||
| - name: Test build | ||
| run: | | ||
| yarn install --frozen-lockfile | ||
| yarn build No newline at end of file | ||
|
|
||
| - name: Install dependencies | ||
| run: yarn install --frozen-lockfile | ||
|
|
||
| - name: Typecheck | ||
| run: yarn typecheck | ||
|
|
||
| - name: Build site |
| let t = seg.text; | ||
|
|
||
| // drop HTML comments (invalid in MDX, invisible in CommonMark anyway) | ||
| t = t.replace(/<!--[\s\S]*?-->/g, ''); |
| ? resolveAssetRef(src, ctx.docDir) ?? src | ||
| : src; | ||
| const cap = (caption ?? '').trim(); | ||
| let md = `![${alt.replace(/([\[\]])/g, '\\$1')}](${encodeUrlForMd(url)})`; |
| const url = src.includes('.gitbook/assets/') | ||
| ? resolveAssetRef(src, ctx.docDir) ?? src | ||
| : src; | ||
| return `![${alt.replace(/([\[\]])/g, '\\$1')}](${encodeUrlForMd(url)})`; |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
We can save >$1500 per year by using a github pages docusaurus site vs gitbook, with AI, maintaining it should be pretty straightforward. This PR ports the current live docs, and we can consider swapping over.