diff --git a/build.ts b/build.ts index 4ca388d..b76b4a4 100755 --- a/build.ts +++ b/build.ts @@ -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; diff --git a/theme.yml b/theme.yml index 6080ecf..68a91df 100644 --- a/theme.yml +++ b/theme.yml @@ -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