From 8f11bdc43ee8eb6a855adc2b86637479a5a78ab2 Mon Sep 17 00:00:00 2001 From: Alix von Schirp Date: Wed, 12 Mar 2025 00:52:08 +0100 Subject: [PATCH] ci(docs): Added theme to docs generator --- package.json | 5 +++-- pnpm-lock.yaml | 13 +++++++++++++ typedoc.config.mjs | 9 ++++----- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index f526a5e..8581dae 100644 --- a/package.json +++ b/package.json @@ -24,11 +24,11 @@ }, "main": "dist/index.js", "scripts": { - "build": "tsc && typedoc", + "build": "tsc", "lint": "eslint --cache .", "typecheck": "tsc --noEmit", "format:check": "prettier --check .", - "check": "pnpm lint && pnpm typecheck && pnpm format:check", + "check": "pnpm lint && pnpm typecheck", "prepare": "husky", "docs:generate": "typedoc" }, @@ -49,6 +49,7 @@ "typedoc-plugin-inline-sources": "^1.2.1", "typedoc-plugin-mdn-links": "^5.0.1", "typedoc-plugin-zod": "^1.4.0", + "typedoc-github-theme": "^0.2.1", "typescript": "^5.5.3", "typescript-eslint": "^8.26.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 84bdd2c..2a86ea1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: dependencies: + typedoc-github-theme: + specifier: ^0.2.1 + version: 0.2.1(typedoc@0.27.9(typescript@5.8.2)) zod: specifier: ^3.24.2 version: 3.24.2 @@ -750,6 +753,12 @@ packages: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} + typedoc-github-theme@0.2.1: + resolution: {integrity: sha512-pOgsS9CVAOO3JxQ1V0ocDkrPCULpoWg1OzRmn/mOlyG+vEYwUAp5DAoKrGECdNIomycxcisc8ovcMX0nHDgWTA==} + engines: {node: '>=18.0.0'} + peerDependencies: + typedoc: ^0.27.6 + typedoc-plugin-coverage@3.4.1: resolution: {integrity: sha512-V23DAwinAMpGMGcL1R1s8Snr26hrjfIdwGf+4jR/65ZdmeAN+yRX0onfx5JlembTQhR6AePQ/parfQNS0AZ64A==} engines: {node: '>= 18'} @@ -1525,6 +1534,10 @@ snapshots: dependencies: prelude-ls: 1.2.1 + typedoc-github-theme@0.2.1(typedoc@0.27.9(typescript@5.8.2)): + dependencies: + typedoc: 0.27.9(typescript@5.8.2) + typedoc-plugin-coverage@3.4.1(typedoc@0.27.9(typescript@5.8.2)): dependencies: typedoc: 0.27.9(typescript@5.8.2) diff --git a/typedoc.config.mjs b/typedoc.config.mjs index 0946e38..ee5cac6 100644 --- a/typedoc.config.mjs +++ b/typedoc.config.mjs @@ -19,12 +19,11 @@ const config = { "typedoc-plugin-zod", "typedoc-plugin-include-example", "@shipgirl/typedoc-plugin-versions", + "typedoc-github-theme", ], - footerTypedocVersion: true, - footerLastModified: true, - coverageLabel: "Docs Coverage", - coverageOutputType: "all", - coverageSvgWidth: 130, + customFooterHtml: '

Made with ❤ by Alix von Schirp @ CISLabs OSS GitHub | Issues | License Generated using TypeDoc with typedoc-github-theme

', + coverageOutputType: "json", + hideGenerator: true, }; export default config;