Skip to content

Commit df6c2f8

Browse files
committed
move to astro
1 parent 7eb1272 commit df6c2f8

749 files changed

Lines changed: 26061 additions & 14720 deletions

File tree

Some content is hidden

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

‎.env.example‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DOCS_ORIGIN=http://localhost:4321
2+
DOCS_BRANCH=docs-new
3+
# Optional locally; deployment requires both. Never commit real credentials.
4+
HCTI_API_ID=
5+
HCTI_API_KEY=

‎.github/workflows/deploy.yml‎

Lines changed: 56 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,66 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6-
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7-
8-
# - uses: actions/cache@v2
9-
# with:
10-
# path: vendor/bundle
11-
# key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
12-
# restore-keys: |
13-
# ${{ runner.os }}-gems-
14-
15-
name: Deploy
1+
name: Build and preview docs
162

173
on:
18-
workflow_dispatch:
194
push:
20-
branches: [ main ]
5+
branches: [docs-new, main]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
219

10+
permissions:
11+
contents: read
2212

23-
jobs:
24-
Deploy:
13+
concurrency:
14+
group: docs-${{ github.ref }}
15+
cancel-in-progress: true
2516

17+
jobs:
18+
check:
2619
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: '24'
25+
cache: npm
26+
- run: npm ci
27+
- run: npm test
28+
- run: npm run build
29+
env:
30+
DOCS_ORIGIN: https://docs-new-docs.mike.workers.dev
31+
DOCS_BRANCH: ${{ github.head_ref || github.ref_name }}
32+
- run: npm run check:migration
2733

34+
preview:
35+
needs: check
36+
if: github.ref == 'refs/heads/docs-new' && github.event_name != 'pull_request'
37+
runs-on: ubuntu-latest
38+
environment:
39+
name: docs-preview
40+
url: https://docs-new-docs.mike.workers.dev
2841
steps:
29-
- uses: actions/checkout@v4
30-
- name: Set up Ruby
31-
uses: ruby/setup-ruby@v1
32-
with:
33-
ruby-version: 3.1
42+
- uses: actions/checkout@v4
43+
- uses: actions/setup-node@v4
44+
with:
45+
node-version: '24'
46+
cache: npm
47+
- run: npm ci
48+
- name: Build with signed HCTI Open Graph URLs
49+
run: npm run build
50+
env:
51+
DOCS_ORIGIN: https://docs-new-docs.mike.workers.dev
52+
DOCS_BRANCH: docs-new
53+
REQUIRE_OG_SIGNING: 'true'
54+
HCTI_API_ID: ${{ secrets.V2_HCTI_API_ID }}
55+
HCTI_API_KEY: ${{ secrets.V2_HCTI_API_KEY }}
56+
- run: npm run check:migration
57+
- name: Upload preview version (does not deploy to production)
58+
run: npx wrangler versions upload --preview-alias docs-new
59+
env:
60+
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
61+
- name: Verify preview routes and headers
62+
run: node scripts/check-preview.mjs https://docs-new-docs.mike.workers.dev
3463

35-
- name: Bundle install
36-
run: |
37-
bundle config path vendor/bundle
38-
bundle install --jobs 4 --retry 3
39-
- name: Build site
40-
env:
41-
HCTI_API_KEY: ${{ secrets.HCTI_API_KEY }}
42-
run: JEKYLL_ENV=production bundle exec jekyll build
43-
- name: Publish
44-
uses: cloudflare/wrangler-action@v3
45-
with:
46-
apiToken: ${{ secrets.CF_API_TOKEN }}
64+
# No production promotion during the migration. main's existing Jekyll
65+
# workflow stays in effect until this branch is merged. Add the production
66+
# deployment step only as part of the approved cutover.

‎.gitignore‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,16 @@ _site
33
.sass-cache
44
.jekyll-cache
55
.jekyll-metadata
6+
.ruby-lsp/
7+
.DS_Store
68
vendor
79
/.idea
10+
node_modules/
11+
.astro/
12+
.wrangler/
13+
dist/
14+
src/generated/
15+
migration-report.json
16+
.env
17+
.env.*
18+
!.env.example

‎.ruby-version‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎404.html‎

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

‎Gemfile‎

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

‎Gemfile.lock‎

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

0 commit comments

Comments
 (0)