Skip to content

Commit

Permalink
chore: replatform docs site to Astro + Starlight (#7012)
Browse files Browse the repository at this point in the history
* chore: replatform docs site to Astro + Starlight

I tried to resist the temptation to fix other tech debt here (untyped JS, etc.).

* feat: add better OG image

* fix: replace dark logo with well-sized image

* feat: add more social links

* feat: link to forums cli tag

* feat: change Changelog link to Release notes
  • Loading branch information
serhalp authored Jan 23, 2025
1 parent c8bfd74 commit 2476843
Show file tree
Hide file tree
Showing 57 changed files with 10,010 additions and 24,731 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/docsearch.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ vendor
/.netlify

# site
test-site
site/dist
site-cra
site/.astro/
site/src/**/*.md

# tests
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/api.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI api command
sidebar:
label: api
---

# `api`
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/blobs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI blobs command
sidebar:
label: blobs
description: Manage objects in Netlify Blobs
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/build.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI build command
sidebar:
label: build
---

# `build`
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/completion.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI completion command
sidebar:
label: completion
description: Shell completion script for netlify CLI
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/deploy.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI deploy command
sidebar:
label: deploy
---

# `deploy`
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/dev.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI dev command
sidebar:
label: dev
description: Run netlify dev locally
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/env.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI env command
sidebar:
label: env
description: Control environment variables for the current site
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/functions.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI functions command
sidebar:
label: functions
description: Run netlify dev locally
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/init.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI init command
sidebar:
label: init
description: Initialize a new site locally
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/integration.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI integration command
sidebar:
label: integration
description: Create, develop, and deploy integrations.
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/link.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI link command
sidebar:
label: link
description: Link an existing site to a local site directory
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/login.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI login command
sidebar:
label: login
description: Login to your Netlify account
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/logout.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI logout command
sidebar:
label: logout
description: Login to your Netlify account
hidden: true
---
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/logs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI logs command
sidebar:
label: logs
---

# `logs`
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/open.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI open command
sidebar:
label: open
---

# `open`
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/recipes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI recipes command
sidebar:
label: recipes
---

# `recipes`
Expand Down
2 changes: 2 additions & 0 deletions docs/commands/serve.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI serve command
sidebar:
label: serve
description: (Beta) Build the site for production and serve locally. This does not watch the code for changes, so if you need to rebuild your site then you must exit and run `serve` again.
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/sites.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI sites command
sidebar:
label: sites
description: Manage Netlify sites via the command line
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/status.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI status command
sidebar:
label: status
description: Get the current context of the netlify CLI
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/switch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI switch command
sidebar:
label: switch
description: Switch your active Netlify account
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/unlink.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI unlink command
sidebar:
label: unlink
description: Link an existing site to a local site directory
---

Expand Down
2 changes: 2 additions & 0 deletions docs/commands/watch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
title: Netlify CLI watch command
sidebar:
label: watch
description: Watch for site deploy to finish
---

Expand Down
2 changes: 0 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: Netlify CLI command reference
description: All Netlify CLI commands
---

# Netlify CLI command reference

To get a list of commands, run

```
Expand Down
5 changes: 0 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
# This is the directory is publishing to netlify's CDN
publish = "site/dist"

[build.environment]
# cannot use node 18, as we use x0 which uses webpack 4
NODE_VERSION = "16"
AWS_LAMBDA_JS_RUNTIME = "nodejs16.x"

[functions]
# Sets a custom directory for Netlify Functions
directory = "functions"
Expand Down
Loading

1 comment on commit 2476843

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,173
  • Package size: 316 MB
  • Number of ts-expect-error directives: 804

Please sign in to comment.