Skip to content

Commit d84369d

Browse files
authored
πŸš€ New website using Astro
Quit template for fully homemade website with more flexibility
2 parents d13cb10 + e775fbd commit d84369d

88 files changed

Lines changed: 8534 additions & 959 deletions

Some content is hidden

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

β€Ž.github/workflows/deploy.ymlβ€Ž

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Runs on pushes targeting the default branch
5+
push:
6+
branches: [ main ]
7+
schedule:
8+
# Runs at 10am on the 1st and 15th of each month
9+
- cron: '0 10 1,15 * *'
10+
11+
# Allows you to manually trigger the workflow from the Actions tab
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
20+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
21+
concurrency:
22+
group: "pages"
23+
cancel-in-progress: false
24+
25+
jobs:
26+
build:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout your repository using git
30+
uses: actions/checkout@v6
31+
- name: Install, build, and upload your site
32+
uses: withastro/action@v5
33+
34+
deploy:
35+
needs: build
36+
runs-on: ubuntu-latest
37+
environment:
38+
name: github-pages
39+
url: ${{ steps.deployment.outputs.page_url }}
40+
steps:
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

β€Ž.github/workflows/hugo.yamlβ€Ž

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

β€Ž.gitignoreβ€Ž

Lines changed: 20 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,26 @@
1-
### HUGO
2-
# Generated files by hugo
3-
/public/
4-
/resources/_gen/
5-
/assets/jsconfig.json
6-
hugo_stats.json
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
75

8-
# Executable may be added to repository
9-
hugo.exe
10-
hugo.darwin
11-
hugo.linux
6+
# dependencies
7+
node_modules/
128

13-
# Temporary lock file while building
14-
/.hugo_build.lock
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
1514

16-
### GOLANG
17-
# If you prefer the allow list template instead of the deny list, see community template:
18-
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
19-
#
20-
# Binaries for programs and plugins
21-
*.exe
22-
*.exe~
23-
*.dll
24-
*.so
25-
*.dylib
15+
# environment variables
16+
.env
17+
.env.production
2618

27-
# Test binary, built with `go test -c`
28-
*.test
19+
# macOS-specific files
20+
.DS_Store
2921

30-
# Output of the go coverage tool, specifically when used with LiteIDE
31-
*.out
22+
# jetbrains setting folder
23+
.idea/
3224

33-
# Dependency directories (remove the comment below to include it)
34-
# vendor/
35-
36-
# Go workspace file
37-
go.work
25+
# vscode setting folder
26+
.vscode/

β€Ž.gitmodulesβ€Ž

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

β€ŽLICENSEβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Anatole
3+
Copyright (c) 2024-2026 Anatole
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

β€ŽREADME.mdβ€Ž

Lines changed: 13 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,31 @@
11
# [okaneeee.github.io](https://okaneeee.github.io)
22

3-
[![Deploy Site to GH-Pages](https://github.com/Okaneeee/okaneeee.github.io/actions/workflows/hugo.yaml/badge.svg)](https://github.com/Okaneeee/okaneeee.github.io/actions/workflows/hugo.yaml)
3+
[![Deploy Site to GH-Pages](TODO: add badge)](TODO: add link to deploy action)
44

55
Hi,
66
Welcome to the source code of my personal website ✌️.
77

88
## Development
99

10-
You can edit files in repository directly from github and send PRs if you find typos. If you want to go further, you can install [hugo](https://gohugo.io/), [fork this repo](https://github.com/Okaneeee/okaneeee.github.io/fork) and do whatever you want :tada:.
10+
You can edit files in repository directly from github and send PRs if you find typos. If you want to go further, you can install [Astro](https://astro.build), [fork this repo](https://github.com/Okaneeee/okaneeee.github.io/fork) and do whatever you want πŸŽ‰!
1111

12-
## Running this website locally
12+
## 🧞 Commands
1313

14-
- Create a new page:
14+
All commands are run from the root of the project, from a terminal:
1515

16-
```bash
17-
hugo new content /path/to/page.md
18-
```
16+
| Command | Action |
17+
| :------------------------ | :----------------------------------------------- |
18+
| `npm install` | Installs dependencies |
19+
| `npm run dev` | Starts local dev server at `localhost:4321` |
20+
| `npm run build` | Build your production site to `./dist/` |
21+
| `npm run preview` | Preview your build locally, before deploying |
22+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
23+
| `npm run astro -- --help` | Get help using the Astro CLI |
1924

20-
- Build a site to the `./public/` directory:
21-
22-
```bash
23-
hugo
24-
```
25-
26-
- Build a site including pages that are marked as a "draft":
27-
28-
```bash
29-
hugo --buildDrafts
30-
```
31-
32-
- Build a site to a given directory:
33-
34-
```bash
35-
hugo --destination path/to/destination
36-
```
37-
38-
- Build a site, start up a webserver to serve it, and automatically reload when pages are edited:
39-
```bash
40-
hugo server
41-
```
4225

4326
## Contributing
4427

45-
Found a typo? a broken link? Open [an issue](https://github.com/Okaneeee/okaneeee.github.io/issues) or send me a [pull-request](https://github.com/Okaneeee/okaneeee.github.io/pulls)! :rocket:
46-
47-
## Credits
48-
49-
Huge thanks to [GabLeRoux](https://github.com/GabLeRoux/) for the help and the discovery of Hugo. πŸ’–
50-
51-
README template from [GabLeRoux's website](https://github.com/GabLeRoux/gableroux.com).
28+
Found a typo? a broken link? Open [an issue](https://github.com/Okaneeee/okaneeee.github.io/issues) or send me a [pull-request](https://github.com/Okaneeee/okaneeee.github.io/pulls)! πŸš€
5229

5330
## License
5431

β€Žarchetypes/default.mdβ€Ž

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

β€Žastro.config.mjsβ€Ž

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// @ts-check
2+
import { defineConfig } from 'astro/config';
3+
4+
import tailwindcss from '@tailwindcss/vite';
5+
6+
import mdx from '@astrojs/mdx';
7+
8+
// https://astro.build/config
9+
export default defineConfig({
10+
site: 'https://okaneeee.github.io',
11+
12+
vite: {
13+
plugins: [tailwindcss()]
14+
},
15+
16+
integrations: [mdx()]
17+
});

β€Žcontent/games/gene-legacy.mdβ€Ž

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

0 commit comments

Comments
Β (0)