Skip to content

Commit 1e4163d

Browse files
committed
astro test
1 parent 44e6fba commit 1e4163d

File tree

110 files changed

+4364
-86
lines changed

Some content is hidden

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

110 files changed

+4364
-86
lines changed

Diff for: .editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
; https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 2
9+
indent_style = space
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

Diff for: .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

Diff for: .github/workflows/static.yml

-43
This file was deleted.

Diff for: .gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# build output
2+
dist/
3+
.output/
4+
5+
# dependencies
6+
node_modules/
7+
8+
# logs
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
pnpm-debug.log*
13+
yarn.lock
14+
package-lock.json
15+
16+
17+
# environment variables
18+
.env
19+
.env.production
20+
21+
# macOS-specific files
22+
.DS_Store
23+
24+
# ignore .astro directory
25+
.astro

Diff for: .markdownlint.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"MD033": false,
3+
"MD013": false
4+
}

Diff for: .prettierrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": ["*.astro"],
5+
"options": {
6+
"parser": "astro"
7+
}
8+
}
9+
]
10+
}

Diff for: .vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["astro-build.astro-vscode"]
3+
}

Diff for: .vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files.associations": {
3+
"*.mdx": "markdown"
4+
}
5+
}

Diff for: 404.html

-5
This file was deleted.

Diff for: LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
The MIT License (MIT)
22

3-
Copyright (c) 2024 Devcontainer Community
3+
Copyright (c) 2023 - Present, Themefisher
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

Diff for: README.md

+102-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,102 @@
1-
# devcontainer-community.github.io
1+
<h1 align=center>Bookworm Light Astro</h1>
2+
<p align=center>Bookworm Light is a feature-rich, minimal, highly customizable, easy-to-use free Astro blog theme.</p>
3+
<h2 align="center"> <a target="_blank" href="https://bookworm-light-astro.vercel.app/" rel="nofollow">👀Demo</a> | <a target="_blank" href="https://pagespeed.web.dev/report?url=https%3A%2F%2Fbookworm-light-astro.vercel.app%2F&form_factor=desktop">Page Speed (100%)🚀</a>
4+
</h2>
5+
6+
<p align=center>
7+
<a href="https://github.com/withastro/astro/releases/tag/astro%405.1.7" alt="Contributors">
8+
<img src="https://img.shields.io/static/v1?label=ASTRO&message=5.1&color=000&logo=astro" />
9+
</a>
10+
11+
<a href="https://github.com/themefisher/bookworm-light-astro/blob/main/LICENSE">
12+
<img src="https://img.shields.io/github/license/themefisher/bookworm-light-astro" alt="license"></a>
13+
14+
<img src="https://img.shields.io/github/languages/code-size/themefisher/bookworm-light-astro" alt="code size">
15+
16+
<a href="https://github.com/themefisher/bookworm-light-astro/graphs/contributors">
17+
<img src="https://img.shields.io/github/contributors/themefisher/bigspring-light-astro" alt="contributors"></a>
18+
</p>
19+
20+
![bookworm-light](https://demo.gethugothemes.com/thumbnails/bookworm-light.png)
21+
22+
Bookworm Light is a minimal multi-author free Astro blog theme which is perfect for any kind of blog website. Whether you're interested in food, beauty, travel, photography, lifestyle, fitness, health, or other topics, this theme is a great fit. The theme is super fast and SEO friendly which makes it easier for your content to be discovered by search engines.
23+
24+
## 🔑Key Features
25+
26+
- 🎨 Highly Customizable (Color, Font, Menu, Social Links, SEO Meta Tags, etc.)
27+
- 👥 Multi-Author Support
28+
- 📚 Authors Page
29+
- 👤 Author Single Page
30+
- 🔍 Search Functionality with FuseJS
31+
- 🏷️ Tags and Categories Support
32+
- 📲 Post Social Share Option
33+
- 🔗 Similar Post Suggestions
34+
- ⚡ Fast by Default (95+ Google PageSpeed Score)
35+
- ⚙️ Netlify Settings Pre-configured
36+
- 📬 Contact Form Support
37+
- 🌅 Support OG Image
38+
- ✍️ Write and Update Content in Markdown / MDX
39+
- 📚 MDX Components Auto Import
40+
- 📝 Includes Draft Pages and Posts
41+
- 🚀 Built with Tailwind CSS Framework
42+
- 📱 Fully Responsive on Desktops, Tablets, and Smartphones
43+
- 🔍 SEO Friendly
44+
45+
<!-- installation -->
46+
47+
## 🔧Installation
48+
49+
After downloading the template, you have some prerequisites to install. Then you can run it on your localhost. You can view the package.json file to see which scripts are included.
50+
51+
### ⚙️Install prerequisites (once for a machine)
52+
53+
- **Node Installation:** [Install node js](https://nodejs.org/en/download/) [Recommended LTS version]
54+
55+
### 🖥️Local setup
56+
57+
After successfully installing those dependencies, open this template with any IDE [[VS Code](https://code.visualstudio.com/) recommended], and then open the internal terminal of IDM [vs code shortcut <code>ctrl/cmd+\`</code>]
58+
59+
- Install dependencies
60+
61+
```
62+
npm install
63+
```
64+
65+
- Run locally
66+
67+
```
68+
npm run dev
69+
```
70+
71+
After that, it will open up a preview of the template in your default browser, watch for changes to source files, and live-reload the browser when changes are saved.
72+
73+
## 🔨Production Build
74+
75+
After finishing all the customization, you can create a production build by running this command.
76+
77+
```
78+
npm run build
79+
```
80+
81+
<!-- reporting issue -->
82+
83+
## 🐞Reporting Issues
84+
85+
We use GitHub Issues as the official bug tracker for this Template. Please Search [existing issues](https://github.com/themefisher/bookworm-light-astro/issues). It’s possible someone has already reported the same problem.
86+
If your problem or idea has not been addressed yet, feel free to [open a new issue](https://github.com/themefisher/bookworm-light-astro/issues).
87+
88+
<!-- licence -->
89+
90+
## 📄License
91+
92+
Copyright (c) 2023 - Present, Designed & Developed by [Themefisher](https://themefisher.com)
93+
94+
**Code License:** Released under the [MIT](https://github.com/themefisher/bookworm-light-astro/blob/main/LICENSE) license.
95+
96+
**Image license:** The images are only for demonstration purposes. They have their license, we don't have permission to share those images.
97+
98+
## 👨‍💻Need Custom Development Services?
99+
100+
Besides developing beautifully designed and blazing-fast themes, we help businesses create fast, performance-focused, scalable & secure websites based on NextJs, Hugo, Astro, etc.
101+
102+
If you need a custom theme, theme customization, or complete website development services from scratch you can [Hire Us](https://themefisher.com/contact).

Diff for: astro.config.mjs

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
import mdx from "@astrojs/mdx";
2+
import react from "@astrojs/react";
3+
import sitemap from "@astrojs/sitemap";
4+
import tailwind from "@astrojs/tailwind";
5+
import AutoImport from "astro-auto-import";
6+
import { defineConfig } from "astro/config";
7+
import remarkCollapse from "remark-collapse";
8+
import remarkToc from "remark-toc";
9+
import config from "./src/config/config.json";
10+
11+
// https://astro.build/config
12+
export default defineConfig({
13+
site: config.site.base_url ? config.site.base_url : "http://devcontainer.community",
14+
base: config.site.base_path ? config.site.base_path : "/",
15+
trailingSlash: config.site.trailing_slash ? "always" : "never",
16+
integrations: [
17+
react(),
18+
sitemap(),
19+
tailwind({
20+
config: {
21+
applyBaseStyles: false,
22+
},
23+
}),
24+
AutoImport({
25+
imports: [
26+
"@/shortcodes/Button",
27+
"@/shortcodes/Accordion",
28+
"@/shortcodes/Notice",
29+
"@/shortcodes/Video",
30+
"@/shortcodes/Youtube",
31+
"@/shortcodes/Tabs",
32+
"@/shortcodes/Tab",
33+
],
34+
}),
35+
mdx(),
36+
],
37+
markdown: {
38+
remarkPlugins: [
39+
remarkToc,
40+
[
41+
remarkCollapse,
42+
{
43+
test: "Table of contents",
44+
},
45+
],
46+
],
47+
shikiConfig: {
48+
theme: "one-dark-pro",
49+
wrap: true,
50+
},
51+
extendDefaultPlugins: true,
52+
},
53+
});

Diff for: awesome/index.html

-5
This file was deleted.

Diff for: code-of-conduct/index.html

-5
This file was deleted.

Diff for: discussions/index.html

-5
This file was deleted.

Diff for: features/index.html

-5
This file was deleted.

Diff for: images/index.html

-5
This file was deleted.

Diff for: index.html

-5
This file was deleted.

Diff for: netlify.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[build]
2+
publish = "dist"
3+
command = "yarn build"
4+
5+
[[headers]]
6+
for = "/*" # This defines which paths this specific [[headers]] block will cover.
7+
8+
[headers.values]
9+
X-Frame-Options = "DENY"
10+
X-XSS-Protection = "1; mode=block"
11+
Referrer-Policy = "same-origin"
12+
Strict-Transport-Security = "max-age=31536000; includeSubDomains; preload"

0 commit comments

Comments
 (0)