Skip to content

Commit 6f637a2

Browse files
committed
Port website from Hugo to Astro (#368)
1 parent d7ed70a commit 6f637a2

File tree

494 files changed

+10702
-4025
lines changed

Some content is hidden

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

494 files changed

+10702
-4025
lines changed

.devcontainer/devcontainer.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/build-deploy.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ jobs:
1212
- uses: actions/setup-node@v3
1313
with:
1414
node-version: "20"
15-
- name: Hugo setup
16-
uses: peaceiris/[email protected]
17-
with:
18-
hugo-version: 0.134.2
19-
extended: true
2015
- name: NPM install
2116
run: npm ci
2217
- name: Build
@@ -27,5 +22,5 @@ jobs:
2722
uses: peaceiris/actions-gh-pages@v3
2823
with:
2924
github_token: ${{ secrets.GITHUB_TOKEN }}
30-
publish_dir: ./public
25+
publish_dir: ./dist
3126
cname: maplibre.org

.github/workflows/build.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ jobs:
1212
- uses: actions/setup-node@v3
1313
with:
1414
node-version: "20"
15-
- name: Hugo setup
16-
uses: peaceiris/[email protected]
17-
with:
18-
hugo-version: 0.134.2
19-
extended: true
2015
- name: NPM install
2116
run: npm ci
2217
- name: Build

.gitignore

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
# Generated files by hugo
2-
.DS_Store
3-
/public/
4-
/resources/_gen/
5-
/assets/jsconfig.json
6-
hugo_stats.json
1+
# build output
2+
dist/
73

8-
# Executable may be added to repository
9-
hugo.exe
10-
hugo.darwin
11-
hugo.linux
4+
# generated types
5+
.astro/
126

13-
# Temporary lock file while building
14-
/.hugo_build.lock
7+
# dependencies
8+
node_modules/
159

16-
node_modules
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
1715

18-
static/files
16+
# environment variables
17+
.env
18+
.env.production
1919

20-
public
20+
# macOS-specific files
21+
.DS_Store
2122

22-
.hugo
23+
# jetbrains setting folder
24+
.idea/

.prettierignore

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
# Generated files by hugo
22
/public/
3-
/resources/_gen/
4-
/assets/jsconfig.json
5-
hugo_stats.json
6-
7-
# Temporary lock file while building
8-
/.hugo_build.lock
9-
3+
/dist/
4+
/.astro
105
node_modules
11-
12-
static/files
13-
14-
public
15-
16-
render-heading.html
17-
layouts/_default/_markup/render-link.html

.prettierrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.prettierrc.mjs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import("prettier").Config} */
2+
export default {
3+
plugins: ["prettier-plugin-astro"],
4+
overrides: [
5+
{
6+
files: "*.astro",
7+
options: {
8+
parser: "astro",
9+
},
10+
},
11+
],
12+
};

.vscode/extensions.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode", "unifiedjs.vscode-mdx"],
3+
"unwantedRecommendations": []
4+
}

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"command": "./node_modules/.bin/astro dev",
6+
"name": "Development server",
7+
"request": "launch",
8+
"type": "node-terminal"
9+
}
10+
]
11+
}

.vscode/tasks.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)