Skip to content

Commit

Permalink
feat: introducing Astro, sunsetting Gatsby.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpou committed Feb 11, 2024
1 parent 57d5efb commit bb33a90
Show file tree
Hide file tree
Showing 526 changed files with 8,226 additions and 25,417 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.js

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_dir: ./dist
25 changes: 19 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/
public
.gatsby-context.js

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


# environment variables
.env
.env.production

# macOS-specific files
.DS_Store
.intermediate-representation/
.cache/
.yalc
.vscode
29 changes: 16 additions & 13 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
{
arrowParens: 'avoid',
endOfLine: 'lf',
printWidth: 80,
proseWrap: 'always',
semi: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'es5',
overrides: [{
files: ['*.md', '*.mdx'],
options: {
printWidth: 100
"arrowParens": "avoid",
"endOfLine": "lf",
"printWidth": 80,
"proseWrap": "always",
"semi": false,
"singleQuote": true,
"useTabs": false,

"plugins": ["prettier-plugin-astro"],
"overrides": [
{
"files": ["*.md", "*.mdx"],
"options": {
"printWidth": 100
}
}
}]
]
}
11 changes: 11 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"version": "0.2.0",
"configurations": [
{
"command": "./node_modules/.bin/astro dev",
"name": "Development server",
"request": "launch",
"type": "node-terminal"
}
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.documentSelectors": ["**/*.astro"],
"tailwindCSS.classAttributes": ["class", "class:list", "className", "ngClass"]
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2020 Maxence Poutord
Copyright (c) 2014-2024 Maxence Poutord

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# maxpou.fr

My website built with Gatsby.
My website built with Astro.

If you find a typo, pull requests are welcome. Thank you ♥

Expand Down Expand Up @@ -34,9 +34,8 @@ Previously: [gatsby-starter-morning-dew](https://github.com/maxpou/gatsby-starte

## Inspirations

- [jekyll-theme-hpstr](https://mmistakes.github.io/jekyll-theme-hpstr/) ~ this blog started with a
fork from this project.
- https://www.lengstorf.com/blog ~ structure/code
- https://loige.co ~ structure/code/design
- [jekyll-theme-hpstr](https://mmistakes.github.io/jekyll-theme-hpstr/) ~ this blog started 10y ago
with a fork from this project.
- [Astro template blog](https://github.com/withastro/astro/tree/latest/examples/blog) ~ code
- https://loige.co ~ code
- https://ghost.org/blog ~ design
- https://mxb.dev ~ code (webmentions)
24 changes: 24 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import preact from '@astrojs/preact'
import tailwind from '@astrojs/tailwind'

import { SITE_URL } from './src/consts'
import { getLegacyPostRedirections } from './src/utils/301'

// https://astro.build/config
export default defineConfig({
site: SITE_URL,
markdown: {
syntaxHighlight: 'prism',
shikiConfig: {
theme: 'one-dark-pro',
},
},
redirects: {
'/blog/pages/1': '/blog',
...getLegacyPostRedirections(),
},
integrations: [mdx(), sitemap(), tailwind(), preact()],
})
133 changes: 0 additions & 133 deletions content/_drafts/2020-code-review/code-review.md

This file was deleted.

Binary file removed content/_drafts/2020-code-review/cover.jpeg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
49 changes: 0 additions & 49 deletions content/_drafts/2022-05-08-git-log-next-level/index.mdx

This file was deleted.

40 changes: 0 additions & 40 deletions content/_drafts/JS-snippets/index.mdx

This file was deleted.

Loading

0 comments on commit bb33a90

Please sign in to comment.