mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
Fix: lang unspecified code blocks (#8461)
This commit is contained in:
parent
0a2567c288
commit
435b105498
27 changed files with 43 additions and 38 deletions
5
.changeset/poor-pears-wash.md
Normal file
5
.changeset/poor-pears-wash.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
'astro': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix lang unspecified code blocks (markdownlint MD040)
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
The easiest way to check out one of these examples on your machine is by running this command in an empty directory:
|
The easiest way to check out one of these examples on your machine is by running this command in an empty directory:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template [EXAMPLE_NAME]
|
npm create astro@latest -- --template [EXAMPLE_NAME]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -10,12 +10,12 @@ npm create astro@latest -- --template [EXAMPLE_NAME]
|
||||||
|
|
||||||
Visit [awesome-astro](https://github.com/one-aalam/awesome-astro) for a full list of community examples. You can use `npm create astro@latest` to check out any community examples:
|
Visit [awesome-astro](https://github.com/one-aalam/awesome-astro) for a full list of community examples. You can use `npm create astro@latest` to check out any community examples:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]
|
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]
|
||||||
```
|
```
|
||||||
|
|
||||||
Paths to examples nested inside of a repo are also supported:
|
Paths to examples nested inside of a repo are also supported:
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example
|
npm create astro@latest -- --template [GITHUB_USER]/[REPO_NAME]/path/to/example
|
||||||
```
|
```
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Starter Kit: Basics
|
# Astro Starter Kit: Basics
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template basics
|
npm create astro@latest -- --template basics
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ npm create astro@latest -- --template basics
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
/
|
/
|
||||||
├── public/
|
├── public/
|
||||||
│ └── favicon.svg
|
│ └── favicon.svg
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Starter Kit: Blog
|
# Astro Starter Kit: Blog
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template blog
|
npm create astro@latest -- --template blog
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ Features:
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
├── public/
|
├── public/
|
||||||
├── src/
|
├── src/
|
||||||
│ ├── components/
|
│ ├── components/
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
This is a template for an Astro component library. Use this template for writing components to use in multiple projects or publish to NPM.
|
This is a template for an Astro component library. Use this template for writing components to use in multiple projects or publish to NPM.
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template component
|
npm create astro@latest -- --template component
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ npm create astro@latest -- --template component
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
/
|
/
|
||||||
├── index.ts
|
├── index.ts
|
||||||
├── src
|
├── src
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/deno)
|
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/deno)
|
||||||
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/deno/devcontainer.json)
|
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/deno/devcontainer.json)
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template deno
|
npm create astro@latest -- --template deno
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ npm create astro@latest -- --template deno
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
/
|
/
|
||||||
├── public/
|
├── public/
|
||||||
│ └── favicon.svg
|
│ └── favicon.svg
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro + AlpineJS Example
|
# Astro + AlpineJS Example
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template framework-alpine
|
npm create astro@latest -- --template framework-alpine
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro + Lit Example
|
# Astro + Lit Example
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template framework-lit
|
npm create astro@latest -- --template framework-lit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Kitchen Sink: Microfrontends with Astro
|
# Kitchen Sink: Microfrontends with Astro
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template framework-multiple
|
npm create astro@latest -- --template framework-multiple
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro + Preact Example
|
# Astro + Preact Example
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template framework-preact
|
npm create astro@latest -- --template framework-preact
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro + React Example
|
# Astro + React Example
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template framework-react
|
npm create astro@latest -- --template framework-react
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro + Solid.js Example
|
# Astro + Solid.js Example
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template framework-solid
|
npm create astro@latest -- --template framework-solid
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro + Svelte Example
|
# Astro + Svelte Example
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template framework-svelte
|
npm create astro@latest -- --template framework-svelte
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro + Vue Example
|
# Astro + Vue Example
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template framework-vue
|
npm create astro@latest -- --template framework-vue
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Starter Kit: Hackernews
|
# Astro Starter Kit: Hackernews
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template hackernews
|
npm create astro@latest -- --template hackernews
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ npm create astro@latest -- --template hackernews
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
/
|
/
|
||||||
├── public/
|
├── public/
|
||||||
│ └── favicon.svg
|
│ └── favicon.svg
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
This is a template for an Astro integration. Use this template for writing integrations to use in multiple projects or publish to NPM.
|
This is a template for an Astro integration. Use this template for writing integrations to use in multiple projects or publish to NPM.
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template integration
|
npm create astro@latest -- --template integration
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ npm create astro@latest -- --template integration
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
/
|
/
|
||||||
├── index.ts
|
├── index.ts
|
||||||
├── tsconfig.json
|
├── tsconfig.json
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Starter Kit: Minimal
|
# Astro Starter Kit: Minimal
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template minimal
|
npm create astro@latest -- --template minimal
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ npm create astro@latest -- --template minimal
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
/
|
/
|
||||||
├── public/
|
├── public/
|
||||||
├── src/
|
├── src/
|
||||||
|
|
|
@ -4,7 +4,7 @@ Documentation for "Non-HTML Pages":
|
||||||
|
|
||||||
https://docs.astro.build/en/core-concepts/endpoints/#static-file-endpoints
|
https://docs.astro.build/en/core-concepts/endpoints/#static-file-endpoints
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template non-html-pages
|
npm create astro@latest -- --template non-html-pages
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ npm create astro@latest -- --template non-html-pages
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
/
|
/
|
||||||
├── public/
|
├── public/
|
||||||
├── src/
|
├── src/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Starter Kit: Portfolio
|
# Astro Starter Kit: Portfolio
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template portfolio
|
npm create astro@latest -- --template portfolio
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
This starter showcases the experimental Markdoc integration.
|
This starter showcases the experimental Markdoc integration.
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template with-markdoc
|
npm create astro@latest -- --template with-markdoc
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ npm create astro@latest -- --template with-markdoc
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
/
|
/
|
||||||
├── public/
|
├── public/
|
||||||
├── src/
|
├── src/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Example: Markdown with Plugins
|
# Astro Example: Markdown with Plugins
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template with-markdown-plugins
|
npm create astro@latest -- --template with-markdown-plugins
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Example: Markdown with Shiki
|
# Astro Example: Markdown with Shiki
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template with-markdown-shiki
|
npm create astro@latest -- --template with-markdown-shiki
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Example: MDX
|
# Astro Example: MDX
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template with-mdx
|
npm create astro@latest -- --template with-mdx
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Example: Nanostores
|
# Astro Example: Nanostores
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template with-nanostores
|
npm create astro@latest -- --template with-nanostores
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro with Tailwind
|
# Astro with Tailwind
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template with-tailwindcss
|
npm create astro@latest -- --template with-tailwindcss
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro Starter Kit: Vite PWA
|
# Astro Starter Kit: Vite PWA
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template with-vite-plugin-pwa
|
npm create astro@latest -- --template with-vite-plugin-pwa
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ npm create astro@latest -- --template with-vite-plugin-pwa
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
Inside of your Astro project, you'll see the following folders and files:
|
||||||
|
|
||||||
```
|
```text
|
||||||
/
|
/
|
||||||
├── public/
|
├── public/
|
||||||
├── src/
|
├── src/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Astro + [Vitest](https://vitest.dev/) Example
|
# Astro + [Vitest](https://vitest.dev/) Example
|
||||||
|
|
||||||
```
|
```sh
|
||||||
npm create astro@latest -- --template with-vitest
|
npm create astro@latest -- --template with-vitest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue