mirror of
https://github.com/halo-dev/theme-earth.git
synced 2025-08-29 09:29:55 +00:00
Compare commits
6 Commits
f63da9da9a
...
42d172f27d
Author | SHA1 | Date | |
---|---|---|---|
![]() |
42d172f27d | ||
![]() |
c45ec68ce7 | ||
![]() |
ff3ca768d8 | ||
![]() |
11b5d817bd | ||
![]() |
04ae86464d | ||
![]() |
4776b49724 |
18
.github/workflows/cd.yaml
vendored
Normal file
18
.github/workflows/cd.yaml
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
name: CD
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
jobs:
|
||||
cd:
|
||||
uses: halo-sigs/reusable-workflows/.github/workflows/theme-cd.yaml@v3
|
||||
secrets:
|
||||
halo-pat: ${{ secrets.HALO_PAT }}
|
||||
permissions:
|
||||
contents: write
|
||||
with:
|
||||
app-id: app-KgWqR
|
||||
pnpm-version: 10
|
||||
node-version: 20
|
14
Makefile
14
Makefile
@@ -1,14 +0,0 @@
|
||||
build: clean
|
||||
echo "Building theme"
|
||||
pnpm install
|
||||
pnpm build
|
||||
echo "Theme built successfully!"
|
||||
echo "Collect theme dist"
|
||||
mkdir dist
|
||||
cp -r templates dist
|
||||
cp -r i18n dist
|
||||
cp theme.yaml settings.yaml README.md dist
|
||||
|
||||
clean:
|
||||
echo "Clean dist folder"
|
||||
rm -rf dist
|
@@ -5,11 +5,13 @@
|
||||
"description": "Default theme for Halo 2.0",
|
||||
"scripts": {
|
||||
"dev": "vite build --watch",
|
||||
"build": "tsc && vite build",
|
||||
"build-only": "tsc && vite build",
|
||||
"build": "pnpm run build-only && pnpm package",
|
||||
"lint": "eslint ./src --ext .js,.cjs,.mjs,.ts,.cts,.mts --ignore-path .gitignore",
|
||||
"prettier": "prettier --write \"./src/**/*.{js,ts,css,json,ml,yaml,html}\" \"./templates/**/*.html\"",
|
||||
"release": "release-it",
|
||||
"prepare": "husky"
|
||||
"prepare": "husky",
|
||||
"package": "npx @halo-dev/theme-package-cli"
|
||||
},
|
||||
"keywords": [
|
||||
"halo",
|
||||
@@ -71,5 +73,6 @@
|
||||
"alpinejs": "^3.14.3",
|
||||
"pupa": "^3.1.0",
|
||||
"tocbot": "^4.32.2"
|
||||
}
|
||||
},
|
||||
"packageManager": "pnpm@10.6.3+sha512.bb45e34d50a9a76e858a95837301bfb6bd6d35aea2c5d52094fa497a467c43f5c440103ce2511e9e0a2f89c3d6071baac3358fc68ac6fb75e2ceb3d2736065e6"
|
||||
}
|
||||
|
@@ -50,6 +50,7 @@ export function generateToc() {
|
||||
collapseDepth: 6,
|
||||
headingsOffset: 100,
|
||||
scrollSmooth: false,
|
||||
tocScrollOffset: 50,
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -29,7 +29,13 @@
|
||||
|
||||
<script th:inline="javascript">
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.getElementById("pagination").addEventListener("change", (event) => {
|
||||
const paginationSelect = document.getElementById("pagination");
|
||||
|
||||
if (!paginationSelect) {
|
||||
return;
|
||||
}
|
||||
|
||||
paginationSelect.addEventListener("change", (event) => {
|
||||
const selectedPage = event.target.value;
|
||||
window.location.href = `[(${context})]page/${selectedPage}`;
|
||||
});
|
||||
|
@@ -18,7 +18,7 @@ spec:
|
||||
issues: https://github.com/halo-dev/theme-earth/issues
|
||||
settingName: "theme-earth-setting"
|
||||
configMapName: "theme-earth-configMap"
|
||||
version: 1.12.3
|
||||
version: 1.12.4
|
||||
requires: ">=2.20.0"
|
||||
license:
|
||||
- name: "GPL-3.0"
|
||||
|
Reference in New Issue
Block a user