Skip to content

Commit 15c8e81

Browse files
authored
Merge pull request #39 from ansidev/release/2.0.0
Release v2.0.0
2 parents f9fbdf5 + b9b53e1 commit 15c8e81

Some content is hidden

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

51 files changed

+2745
-248
lines changed

.changes/v2.0.0.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## v2.0.0 (2023-02-26)
2+
3+
### Features
4+
5+
- TailwindCSS for UI.
6+
- Multiple themes.
7+
- SEO.
8+
- Analytics: Google Analytics, Swetrix Analytics, Counter Analytics.
9+
- Sitemap.
10+
- RSS.
11+
- Posts by tags, difficulty.
12+
13+
Full Changelog: [v2.0.0](https://github.com/ansidev/astro-basic-template/commits/v2.0.0)

.github/workflows/deploy_to_netlify.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172
steps:
173173
- name: Delete the PR branch after merged into develop
174174
env:
175-
GH_TOKEN: ${{ github.token }}
175+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
176176
GIT_REF_PATH: /repos/${{ github.repository }}/git/refs/heads/${{ github.head_ref }}
177177
run: |
178178
STATUS_CODE=$(gh api -i -H "Accept: application/vnd.github+json" $GIT_REF_PATH | head -1)

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ pnpm-debug.log*
2525

2626
# VSCode Workspace
2727
astro-basic-template.code-workspace
28+
29+
# Astro directories
30+
.astro

.taskfiles/task_site.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ tasks:
2323
clean:
2424
desc: Clean the build output
2525
cmds:
26-
- rm -r {{.OUTPUT_DIR}}
26+
- rm -r ./{{.OUTPUT_DIR}}
2727
silent: true
2828
ignore_error: true

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org).
6+
7+
## v2.0.0 (2023-02-26)
8+
9+
### Features
10+
11+
- TailwindCSS for UI.
12+
- Multiple themes.
13+
- SEO.
14+
- Analytics: Google Analytics, Swetrix Analytics, Counter Analytics.
15+
- Sitemap.
16+
- RSS.
17+
- Posts by tags, difficulty.
18+
19+
Full Changelog: [v2.0.0](https://github.com/ansidev/astro-basic-template/commits/v2.0.0)

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# LeetCode Blog
22

33
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
4+
[![Netlify Status](https://api.netlify.com/api/v1/badges/278e1add-72b0-4ffe-b932-03b27a72c8b5/deploy-status)](https://app.netlify.com/sites/leetcode-blog/deploys)
45

56
Solutions for LeetCode problems - Written by [ansidev](https://github.com/ansidev).
67

astro.config.mjs

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import partytown from '@astrojs/partytown'
2+
import sitemap from '@astrojs/sitemap'
3+
import tailwind from '@astrojs/tailwind'
14
import { defineConfig } from 'astro/config'
25
import compress from 'astro-compress'
36
import purgecss from 'astro-purgecss'
@@ -17,6 +20,13 @@ if (baseURL.length === 0) {
1720
export default defineConfig({
1821
site: baseURL,
1922
integrations: [
23+
tailwind(),
24+
partytown({
25+
config: {
26+
forward: ['dataLayer.push'],
27+
},
28+
}),
29+
sitemap(),
2030
purgecss(),
2131
compress(),
2232
]

package.json

+18-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "leetcode-blog",
33
"description": "Solutions for LeetCode problems - Written by ansidev",
44
"type": "module",
5-
"version": "1.0.1",
5+
"version": "2.0.0",
66
"license": "MIT",
77
"scripts": {
88
"dev": "astro dev",
@@ -15,14 +15,23 @@
1515
"lint": "eslint --ext .cjs,.mjs,.ts,.astro --ignore-path .gitignore ."
1616
},
1717
"dependencies": {
18-
"astro": "^2.0.14",
19-
"astro-compress": "^1.1.33",
20-
"astro-purgecss": "^2.0.0"
18+
"@astrojs/partytown": "^1.0.3",
19+
"@astrojs/rss": "^2.1.1",
20+
"@astrojs/sitemap": "^1.1.0",
21+
"@astrojs/tailwind": "^3.0.1",
22+
"astro": "^2.0.15",
23+
"astro-compress": "^1.1.34",
24+
"astro-purgecss": "^2.0.0",
25+
"tailwindcss": "^3.2.7"
2126
},
2227
"devDependencies": {
2328
"@commitlint/cli": "^17.4.4",
2429
"@commitlint/config-conventional": "^17.4.4",
25-
"@types/node": "^18.14.0",
30+
"@iconify-json/bi": "^1.1.15",
31+
"@tailwindcss/typography": "^0.5.9",
32+
"@types/lodash.get": "^4.4.7",
33+
"@types/lodash.kebabcase": "^4.1.7",
34+
"@types/node": "^18.14.1",
2635
"@typescript-eslint/eslint-plugin": "^5.53.0",
2736
"@typescript-eslint/parser": "^5.53.0",
2837
"commitizen": "^4.3.0",
@@ -31,6 +40,10 @@
3140
"eslint-plugin-astro": "^0.23.0",
3241
"eslint-plugin-simple-import-sort": "^10.0.0",
3342
"husky": "^8.0.3",
43+
"lodash.get": "^4.4.2",
44+
"lodash.kebabcase": "^4.1.1",
45+
"sass": "^1.58.3",
46+
"tailwindcss-themer": "^3.0.1",
3447
"typescript": "^4.9.5"
3548
}
3649
}

0 commit comments

Comments
 (0)