Skip to content

Commit

Permalink
[Docs Site] Migrate to Starlight (#16096)
Browse files Browse the repository at this point in the history
* [Starlight] Add config and misc files

* [Starlight] Add .github changes

* [Starlight] Remove Hugo directories

* [Starlight] Remove Hugo VSCode snippets and components

* [Starlight] Add README

* [Starlight] Add public

* [Starlight] Add assets

* [Starlight] Add components

* [Starlight] Add utils

* [Starlight] Add schemas

* [Starlight] Add icons

* [Starlight] Add custom pages

* [Starlight] Add custom CSS

* [Starlight] Add env.d.ts

* [Starlight] Add Apps/Videos/Plans/Pages data files

* [Starlight] Add changelogs

* [Starlight] Add glossary

* [Starlight] Add partials

* [Starlight] Add compatibility dates

* [Starlight] Add learning paths

* [Starlight] Add notifications

* [Starlight] Add products

* [Starlight] Add Workers AI models

* [Starlight] Add content collections config

* [Starlight] Add docs

* [Starlight] Add Wrangler changelogs

* [Starlight] Temporarily remove ci.yml

* [Starlight] Filter Wrangler changelogs, remove redundant functions

* [Starlight] MD in AnchorHeading & CompatibilityDates fix
  • Loading branch information
KianNH authored Aug 13, 2024
1 parent 4c3c819 commit abb2df9
Show file tree
Hide file tree
Showing 12,086 changed files with 462,939 additions and 482,563 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
255 changes: 126 additions & 129 deletions .github/CODEOWNERS

Large diffs are not rendered by default.

63 changes: 0 additions & 63 deletions .github/workflows/ci.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on: [push, workflow_dispatch]

jobs:
publish:
runs-on: ubuntu-22.04
permissions:
contents: read
name: Publish to Cloudflare Pages
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: npm
- run: npm ci
- uses: actions/cache/restore@v4
with:
path: |
node_modules/.astro/_astro
node_modules/.astro/assets
key: static
- run: npx astro build
env:
NODE_OPTIONS: --max-old-space-size=4096
- run: npx wrangler pages deploy --project-name cloudflare-docs dist
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
- uses: actions/cache/save@v4
with:
path: |
node_modules/.astro/_astro
node_modules/.astro/assets
key: static

34 changes: 25 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
node_modules
*.lock
*.log
*.backup

/dist
/public
/assets/jsconfig.json
/resources/_gen/images
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/

.wrangler
/assets/secrets
228 changes: 0 additions & 228 deletions .vscode/devdocs.code-snippets

This file was deleted.

15 changes: 0 additions & 15 deletions Makefile

This file was deleted.

Loading

0 comments on commit abb2df9

Please sign in to comment.