Skip to content

Commit 880528c

Browse files
authored
Merge pull request #224 from HarperDB/docs-in-hdb
Replatform on docusaurus
2 parents 0fe82e7 + ba295ed commit 880528c

File tree

1,754 files changed

+129561
-4991
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,754 files changed

+129561
-4991
lines changed

.gitbook.yaml

Lines changed: 0 additions & 119 deletions
This file was deleted.

.github/workflows/deploy.yaml

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: Deploy Docusaurus to GitHub Pages
2+
3+
on:
4+
# Trigger the workflow on pull requests and pushes to specific branches
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
- docs-in-hdb
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
14+
# However, do NOT cancel in-progress runs as we want to allow these deployments to complete.
15+
# This shouldn't be necessary for most cases, but it can help avoid conflicts if multiple pushes happen in quick succession.
16+
concurrency:
17+
group: "pages"
18+
cancel-in-progress: false
19+
20+
jobs:
21+
build:
22+
name: Build Docusaurus
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: '22'
32+
cache: 'npm'
33+
cache-dependency-path: 'package-lock.json'
34+
35+
- name: Debug - Show directory structure
36+
run: |
37+
echo "Current directory: $(pwd)"
38+
echo "Repository root contents:"
39+
ls -la
40+
echo "Site directory contents:"
41+
ls -la site/ || echo "Site directory not found"
42+
echo "Looking for package.json files:"
43+
find . -name "package.json" -type f
44+
45+
- name: Install root dependencies
46+
run: |
47+
echo "Installing root dependencies from $(pwd)"
48+
npm ci || (echo "Root npm ci failed, uploading logs" && exit 1)
49+
50+
- name: Install site dependencies
51+
run: |
52+
echo "Installing site dependencies..."
53+
npm run site:install || (echo "Site install failed" && exit 1)
54+
55+
- name: Build Docusaurus site
56+
env:
57+
DOCUSAURUS_ROUTE_BASE_PATH: ${{ vars.DOCUSAURUS_ROUTE_BASE_PATH }}
58+
DOCUSAURUS_BASE_URL: ${{ vars.DOCUSAURUS_BASE_URL }}
59+
DOCUSAURUS_URL: ${{ vars.DOCUSAURUS_URL }}
60+
IMAGES_PATH: ${{ vars.IMAGES_PATH }}
61+
run: |
62+
echo "Building Docusaurus site..."
63+
echo "Using DOCUSAURUS_ROUTE_BASE_PATH: $DOCUSAURUS_ROUTE_BASE_PATH"
64+
echo "Using DOCUSAURUS_BASE_URL: $DOCUSAURUS_BASE_URL"
65+
echo "Using DOCUSAURUS_URL: $DOCUSAURUS_URL"
66+
echo "Using IMAGES_PATH: $IMAGES_PATH"
67+
npm run site:build || (echo "Site build failed" && exit 1)
68+
69+
- name: Upload npm logs on failure
70+
if: failure()
71+
uses: actions/upload-artifact@v4
72+
with:
73+
name: npm-logs
74+
path: |
75+
~/.npm/_logs/
76+
77+
- name: Upload Build Artifact
78+
uses: actions/upload-pages-artifact@v3
79+
with:
80+
path: site/build
81+
82+
deploy:
83+
needs: build
84+
name: Deploy to GitHub Pages
85+
runs-on: ubuntu-latest
86+
# Only deploy on push to specific branches, not on PRs
87+
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/docs-in-hdb')
88+
89+
permissions:
90+
pages: write
91+
id-token: write
92+
93+
environment:
94+
name: github-pages
95+
url: ${{ steps.deployment.outputs.page_url }}
96+
97+
98+
steps:
99+
- name: Deploy to GitHub Pages
100+
id: deployment
101+
uses: actions/deploy-pages@v4

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Keep this file minimized
2+
site/static/js/reo.js

docs/README.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)