Skip to content

Commit 328a20c

Browse files
committed
chore: remake website with Astro
1 parent 4f36572 commit 328a20c

56 files changed

Lines changed: 4548 additions & 716 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/page.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build and Deploy Page to VPS
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- ".gitignore"
9+
- "src/**"
10+
- "package*.json"
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
18+
steps:
19+
- uses: actions/checkout@v6
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v6
23+
with:
24+
node-version: 'latest'
25+
cache: 'npm'
26+
27+
- name: Install Node.js Dependencies
28+
run: npm install
29+
30+
- name: Build Astro website
31+
run: npm run build
32+
33+
# Deploy to VPS over SSH
34+
- name: Deploy Book to VPS
35+
uses: https://github.com/appleboy/scp-action@v1
36+
with:
37+
host: ${{ secrets.VPS_IP }}
38+
username: actions
39+
key: ${{ secrets.VPS_PRIV_KEY }}
40+
port: 22
41+
source: "dist"
42+
target: "/home/actions/kitlang.dev"
43+
strip_components: 1
44+
rm: true

.gitignore

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1-
_site
2-
.sass-cache
3-
Gemfile.lock
4-
*.gem
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
5+
6+
# dependencies
7+
node_modules/
8+
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/

.rubocop.yml

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

.travis.yml

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

.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"],
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+
}

CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

Gemfile

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

README.md

Lines changed: 29 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,43 @@
1-
# The Minimal theme
1+
# Astro Starter Kit: Minimal
22

3-
[![Build Status](https://travis-ci.org/pages-themes/minimal.svg?branch=master)](https://travis-ci.org/pages-themes/minimal) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-minimal.svg)](https://badge.fury.io/rb/jekyll-theme-minimal)
4-
5-
*Minimal is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/minimal), or even [use it today](#usage).*
6-
7-
![Thumbnail of minimal](thumbnail.png)
8-
9-
## Usage
10-
11-
To use the Minimal theme:
12-
13-
1. Add the following to your site's `_config.yml`:
14-
15-
```yml
16-
theme: jekyll-theme-minimal
17-
```
18-
19-
2. Optionally, if you'd like to preview your site on your computer, add the following to your site's `Gemfile`:
20-
21-
```ruby
22-
gem "github-pages", group: :jekyll_plugins
23-
```
24-
25-
26-
27-
## Customizing
28-
29-
### Configuration variables
30-
31-
Minimal will respect the following variables, if set in your site's `_config.yml`:
32-
33-
```yml
34-
title: [The title of your site]
35-
description: [A short description of your site's purpose]
36-
```
37-
38-
Additionally, you may choose to set the following optional variables:
39-
40-
```yml
41-
logo: [Location of the logo]
42-
show_downloads: ["true" or "false" to indicate whether to provide a download URL]
43-
google_analytics: [Your Google Analytics tracking ID]
3+
```sh
4+
pnpm create astro@latest -- --template minimal
445
```
456

46-
### Stylesheet
47-
48-
If you'd like to add your own custom styles:
7+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
498
50-
1. Create a file called `/assets/css/style.scss` in your site
51-
2. Add the following content to the top of the file, exactly as shown:
52-
```scss
53-
---
54-
---
9+
## 🚀 Project Structure
5510

56-
@import "{{ site.theme }}";
57-
```
58-
3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
11+
Inside of your Astro project, you'll see the following folders and files:
5912

60-
### Layouts
61-
62-
If you'd like to change the theme's HTML layout:
63-
64-
1. [Copy the original template](https://github.com/pages-themes/minimal/blob/master/_layouts/default.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*)
65-
2. Create a file called `/_layouts/default.html` in your site
66-
3. Paste the default layout content copied in the first step
67-
4. Customize the layout as you'd like
68-
69-
## Roadmap
70-
71-
See the [open issues](https://github.com/pages-themes/minimal/issues) for a list of proposed features (and known issues).
72-
73-
## Project philosophy
13+
```text
14+
/
15+
├── public/
16+
├── src/
17+
│ └── pages/
18+
│ └── index.astro
19+
└── package.json
20+
```
7421

75-
The Minimal theme is intended to make it quick and easy for GitHub Pages users to create their first (or 100th) website. The theme should meet the vast majority of users' needs out of the box, erring on the side of simplicity rather than flexibility, and provide users the opportunity to opt-in to additional complexity if they have specific needs or wish to further customize their experience (such as adding custom CSS or modifying the default layout). It should also look great, but that goes without saying.
22+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
7623

77-
## Contributing
24+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
7825

79-
Interested in contributing to Minimal? We'd love your help. Minimal is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](docs/CONTRIBUTING.md) for instructions on how to contribute.
26+
Any static assets, like images, can be placed in the `public/` directory.
8027

81-
### Previewing the theme locally
28+
## 🧞 Commands
8229

83-
If you'd like to preview the theme locally (for example, in the process of proposing a change):
30+
All commands are run from the root of the project, from a terminal:
8431

85-
1. Clone down the theme's repository (`git clone https://github.com/pages-themes/minimal`)
86-
2. `cd` into the theme's directory
87-
3. Run `script/bootstrap` to install the necessary dependencies
88-
4. Run `bundle exec jekyll serve` to start the preview server
89-
5. Visit [`localhost:4000`](http://localhost:4000) in your browser to preview the theme
32+
| Command | Action |
33+
| :------------------------ | :----------------------------------------------- |
34+
| `pnpm install` | Installs dependencies |
35+
| `pnpm dev` | Starts local dev server at `localhost:4321` |
36+
| `pnpm build` | Build your production site to `./dist/` |
37+
| `pnpm preview` | Preview your build locally, before deploying |
38+
| `pnpm astro ...` | Run CLI commands like `astro add`, `astro check` |
39+
| `pnpm astro -- --help` | Get help using the Astro CLI |
9040

91-
### Running tests
41+
## 👀 Want to learn more?
9242

93-
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap` one before the test script will work.
43+
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

_config.yml

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

0 commit comments

Comments
 (0)