Skip to content

Commit b064e5b

Browse files
committed
add next-js-app-router article
0 parents  commit b064e5b

File tree

261 files changed

+35420
-0
lines changed

Some content is hidden

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

261 files changed

+35420
-0
lines changed

.github/workflows/scheduleMerge.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Merge Schedule
2+
on:
3+
pull_request:
4+
types:
5+
- opened
6+
- edited
7+
schedule:
8+
- cron: 0 7 * * *
9+
jobs:
10+
merge_schedule:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: gr2m/merge-schedule-action@v1
14+
with:
15+
time_zone: "America/Chicago"
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# build output
2+
dist
3+
4+
# dependencies
5+
node_modules/
6+
.snowpack/
7+
8+
# logs
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
13+
# environment variables
14+
.env
15+
.env.production
16+
17+
# macOS-specific files
18+
.DS_Store
19+
20+
21+
22+
.vscode
23+
# Local Netlify folder
24+
.netlify

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node v17.9.0

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/pages/2023-06/markdown-crash-course/index.mdx

README.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Astro Starter Kit: Blog
2+
3+
```
4+
npm init astro -- --template blog
5+
```
6+
7+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/blog)
8+
9+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
10+
11+
Features:
12+
13+
- ✅ SEO-friendly setup with canonical URLs and OpenGraph data
14+
- ✅ Full Markdown support
15+
- ✅ RSS 2.0 generation
16+
- ✅ Sitemap.xml generation
17+
18+
## 🚀 Project Structure
19+
20+
Inside of your Astro project, you'll see the following folders and files:
21+
22+
```
23+
/
24+
├── public/
25+
│ ├── robots.txt
26+
│ └── favicon.ico
27+
├── src/
28+
│ ├── components/
29+
│ │ └── Tour.astro
30+
│ └── pages/
31+
│ └── index.astro
32+
└── package.json
33+
```
34+
35+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
36+
37+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
38+
39+
Any static assets, like images, can be placed in the `public/` directory.
40+
41+
## 🧞 Commands
42+
43+
All commands are run from the root of the project, from a terminal:
44+
45+
| Command | Action |
46+
|:---------------- |:-------------------------------------------- |
47+
| `npm install` | Installs dependencies |
48+
| `npm run dev` | Starts local dev server at `localhost:3000` |
49+
| `npm run build` | Build your production site to `./dist/` |
50+
| `npm run preview` | Preview your build locally, before deploying |
51+
52+
## 👀 Want to learn more?
53+
54+
Feel free to check [our documentation](https://github.com/withastro/astro) or jump into our [Discord server](https://astro.build/chat).

astro.config.mjs

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// Full Astro Configuration API Documentation:
2+
// https://docs.astro.build/reference/configuration-reference
3+
// @type-check enabled!
4+
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
5+
// helpful tooltips, and warnings if your exported object is invalid.
6+
// You can disable this by removing "@ts-check" and `@type` comments below.
7+
import youtubeEmbed from "./src/plugins/youtubeEmbed.mjs"
8+
import responsiveImages from "./src/plugins/responsiveImages.mjs"
9+
import myRemarkShiki from "./src/plugins/myRemarkShiki.mjs"
10+
import { defineConfig } from "astro/config"
11+
import sitemap from "@astrojs/sitemap"
12+
import mdx from "@astrojs/mdx"
13+
import react from "@astrojs/react" // @ts-check
14+
15+
// https://astro.build/config
16+
export default defineConfig(
17+
/** @type {import('astro').AstroUserConfig} */
18+
{
19+
integrations: [react(), sitemap(), mdx()],
20+
site: "https://blog.webdevsimplified.com",
21+
markdown: {
22+
syntaxHighlight: false,
23+
// TODO: Add official Shiki integration when line highlighting is supported
24+
remarkPlugins: [myRemarkShiki, youtubeEmbed, responsiveImages],
25+
},
26+
}
27+
)
28+
29+
// TODO: Check to see if my plugins can be replaced with official integrations.
30+
// TODO: Implement experimental assets integration
31+
// TODO: Move over to the content folder
32+
// TODO: Add TS Support
33+
// TODO: Add analytic conversion tracking (for things like newsletter signups)
34+
// TODO: Optimize/Shrink Images

jsconfig.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"paths": {
5+
"@layouts/*": [
6+
"src/layouts/*"
7+
],
8+
"@blogComponents/*": [
9+
"src/blogComponents/*"
10+
]
11+
},
12+
"jsx": "react-jsx",
13+
"jsxImportSource": "react"
14+
}
15+
}

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
command = "npm run build"
3+
publish = "dist"

0 commit comments

Comments
 (0)