Skip to content

Commit 0af049a

Browse files
committed
Setup starlight
1 parent c7d0539 commit 0af049a

File tree

5 files changed

+69
-27
lines changed

5 files changed

+69
-27
lines changed

.github/workflows/deploy.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
6+
push:
7+
branches: [ main ]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
10+
11+
# Allow this job to clone the repo and create a page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v3
25+
# with:
26+
# path: . # The root location of your Astro project inside the repository. (optional)
27+
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28+
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29+
30+
deploy:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: github-pages
35+
url: ${{ steps.deployment.outputs.page_url }}
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

astro.config.mjs

+30-26
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
// @ts-check
2-
import { defineConfig } from 'astro/config';
3-
import starlight from '@astrojs/starlight';
4-
import tailwind from '@astrojs/tailwind';
2+
import { defineConfig } from "astro/config";
3+
import starlight from "@astrojs/starlight";
4+
import tailwind from "@astrojs/tailwind";
55

66
// https://astro.build/config
77
export default defineConfig({
8-
integrations: [
9-
starlight({
10-
title: 'Docs with Tailwind',
11-
social: {
12-
github: 'https://github.com/withastro/starlight',
13-
},
14-
sidebar: [
15-
{
16-
label: 'Guides',
17-
items: [
18-
// Each item here is one entry in the navigation menu.
19-
{ label: 'Example Guide', slug: 'guides/example' },
20-
],
21-
},
22-
{
23-
label: 'Reference',
24-
autogenerate: { directory: 'reference' },
25-
},
26-
],
27-
customCss: ['./src/tailwind.css'],
28-
}),
29-
tailwind({ applyBaseStyles: false }),
30-
],
8+
site: "https://pixeval.github.io",
9+
integrations: [
10+
starlight({
11+
title: "Pixeval",
12+
logo: {
13+
src: "./src/assets/logo.png",
14+
},
15+
social: {
16+
github: "https://github.com/Pixeval/Pixeval",
17+
},
18+
sidebar: [
19+
{
20+
label: "Guides",
21+
items: [
22+
// Each item here is one entry in the navigation menu.
23+
{ label: "Example Guide", slug: "guides/example" },
24+
],
25+
},
26+
{
27+
label: "Reference",
28+
autogenerate: { directory: "reference" },
29+
},
30+
],
31+
customCss: ["./src/tailwind.css"],
32+
}),
33+
tailwind({ applyBaseStyles: false }),
34+
],
3135
});

public/favicon.ico

15 KB
Binary file not shown.

public/favicon.svg

-1
This file was deleted.

src/assets/logo.png

1.91 KB
Loading

0 commit comments

Comments
 (0)