就这样吧

This commit is contained in:
lutinglt
2025-02-19 08:36:57 +08:00
parent 49812f0ee0
commit 6a17010a5f
2 changed files with 6 additions and 19 deletions

View File

@@ -3,20 +3,12 @@
import * as sass from "npm:sass";
import * as yaml from "npm:js-yaml";
interface Asset {
name: string;
css: string;
}
interface Theme {
version: string;
theme: string;
description: string;
assets: Asset[];
}
interface Gitea {
gitea: Theme;
version: string;
}
interface ThemeInfo {
gitea: Gitea;
}
async function buildTheme(themePath: string) {
@@ -29,7 +21,7 @@ async function buildTheme(themePath: string) {
await Deno.writeTextFile(outputFile, result.css);
const fileContent = await Deno.readTextFile(themePath);
const data: Gitea = yaml.load(fileContent);
const data: ThemeInfo = yaml.load(fileContent);
console.log(data.gitea.version);
} catch (error) {
let e = error;

View File

@@ -1,7 +1,2 @@
gitea:
version: 1.23.3
theme: github
description: GitHub dark theme for Gitea
assets:
- name: dark
css: dist/theme-github.css