typedoc-github-theme 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 KillerJulian
3
+ Copyright (c) 2024 Julian Wowra (development@julianwowra.de)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -6,22 +6,22 @@ This [TypeDoc](https://github.com/TypeStrong/typedoc) theme is designed to provi
6
6
 
7
7
  ## Example
8
8
 
9
- [![Example](./example.png)](https://killerjulian.github.io/typedoc-github-theme/)
9
+ [![Example](./example.png)](https://julianwowra.github.io/typedoc-github-theme/)
10
10
 
11
11
  ## Usage
12
12
 
13
13
  **Install the package with your favourite package manager:**
14
14
 
15
15
  ```text
16
- npm install typedoc-github-theme
16
+ npm install typedoc-github-theme --save-dev
17
17
  ```
18
18
 
19
19
  ```text
20
- pnpm install typedoc-github-theme
20
+ pnpm add typedoc-github-theme --save-dev
21
21
  ```
22
22
 
23
23
  ```text
24
- yarn add typedoc-github-theme
24
+ yarn add typedoc-github-theme --dev
25
25
  ```
26
26
 
27
27
  **Use the theme when generating your documentation:**
@@ -38,10 +38,10 @@ npx typedoc src --plugin typedoc-github-theme
38
38
 
39
39
  ## Author
40
40
 
41
- 👤 **KillerJulian <info@killerjulian.de>**
41
+ 👤 **Julian Wowra <development@julianwowra.de>**
42
42
 
43
- - Github: [@KillerJulian](https://github.com/KillerJulian)
43
+ - Github: [@JulianWowra](https://github.com/JulianWowra)
44
44
 
45
45
  ## 🤝 Contributing
46
46
 
47
- Contributions, issues and feature requests are welcome!<br />Feel free to check the [issues page](https://github.com/KillerJulian/typedoc-github-theme/issues). You can also take a look at the [contributing guide](https://github.com/KillerJulian/typedoc-github-theme/blob/master/CONTRIBUTING.md).
47
+ Contributions, issues and feature requests are welcome!<br />Feel free to check the [issues page](https://github.com/JulianWowra/typedoc-github-theme/issues). You can also take a look at the [contributing guide](https://github.com/JulianWowra/typedoc-github-theme/blob/main/CONTRIBUTING.md).
@@ -26,6 +26,6 @@ export class GitHubTheme extends DefaultTheme {
26
26
  });
27
27
  }
28
28
  getRenderContext(pageEvent) {
29
- return new GitHubThemeContext(this, pageEvent, this.application.options);
29
+ return new GitHubThemeContext(this.router, this, pageEvent, this.application.options);
30
30
  }
31
31
  }
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ export function load(app) {
6
6
  app.renderer.defineTheme('typedoc-github-theme', GitHubTheme);
7
7
  app.on('bootstrapEnd', () => {
8
8
  if (app.options.isSet('theme') && app.options.getValue('theme') !== 'typedoc-github-theme') {
9
- return app.logger.warn(`The theme'typedoc-github-theme' is not used because another theme (${app.options.getValue('theme')}) was specified!`);
9
+ return app.logger.warn(`The theme 'typedoc-github-theme' is not used because another theme (${app.options.getValue('theme')}) was specified!`);
10
10
  }
11
11
  app.options.setValue('theme', 'typedoc-github-theme');
12
12
  });
@@ -14,7 +14,7 @@ function generatorDisplay(context) {
14
14
  'Generated using ',
15
15
  JSX.createElement("a", { href: "https://typedoc.org/", target: "_blank" }, "TypeDoc"),
16
16
  ' with ',
17
- JSX.createElement("a", { href: "https://github.com/KillerJulian/typedoc-github-theme", target: "_blank" }, "typedoc-github-theme")));
17
+ JSX.createElement("a", { href: "https://github.com/JulianWowra/typedoc-github-theme", target: "_blank" }, "typedoc-github-theme")));
18
18
  }
19
19
  function customFooterDisplay(context) {
20
20
  const customFooterHtml = context.options.getValue('customFooterHtml');
package/package.json CHANGED
@@ -1,27 +1,31 @@
1
1
  {
2
2
  "name": "typedoc-github-theme",
3
3
  "description": "Elegant and seamless look and feel for your TypeScript documentation on GitHub Pages",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "type": "module",
8
- "repository": "https://github.com/KillerJulian/typedoc-github-theme",
9
- "homepage": "https://killerjulian.github.io/typedoc-github-theme/",
10
- "author": "KillerJulian <info@killerjulian.de>",
8
+ "repository": "https://github.com/JulianWowra/typedoc-github-theme",
9
+ "homepage": "https://julianwowra.github.io/typedoc-github-theme/",
10
+ "author": "Julian Wowra <development@julianwowra.de>",
11
11
  "license": "MIT",
12
- "packageManager": "pnpm@9.14.3",
12
+ "publishConfig": {
13
+ "provenance": true
14
+ },
15
+ "packageManager": "pnpm@10.7.1",
13
16
  "dependencies": {},
14
17
  "peerDependencies": {
15
- "typedoc": "^0.27.1"
18
+ "typedoc": "~0.28.0"
16
19
  },
17
20
  "devDependencies": {
18
- "@types/node": "^18.19.67",
19
- "eslint": "9.15.0",
20
- "eslint-config-prettier": "9.1.0",
21
- "prettier": "3.4.1",
22
- "typedoc": "~0.27.1",
23
- "typescript": "5.7.2",
24
- "typescript-eslint": "8.16.0"
21
+ "@eslint/js": "9.24.0",
22
+ "@types/node": "^18.19.86",
23
+ "eslint": "9.24.0",
24
+ "eslint-config-prettier": "10.1.1",
25
+ "prettier": "3.5.3",
26
+ "typedoc": "~0.28.1",
27
+ "typescript": "5.8.3",
28
+ "typescript-eslint": "8.29.0"
25
29
  },
26
30
  "scripts": {
27
31
  "build": "pnpm build:lib && pnpm build:docs",
@@ -7,8 +7,9 @@
7
7
  --light-color-background: #ffffff;
8
8
  --light-color-background-secondary: #f6f8fa;
9
9
  --light-color-background-navbar: #f6f8fa;
10
+ --light-color-background-overlay: #c8d1da66;
10
11
 
11
- --light-color-accent: #eff2f5;
12
+ --light-color-accent: #d1d9e0;
12
13
 
13
14
  --light-color-text: #1f2328;
14
15
  --light-color-text-aside: #59636e;
@@ -28,8 +29,9 @@
28
29
  --dark-color-background: #0d1117;
29
30
  --dark-color-background-secondary: #151b23;
30
31
  --dark-color-background-navbar: #010409;
32
+ --dark-color-background-overlay: #21283066;
31
33
 
32
- --dark-color-accent: #262c36;
34
+ --dark-color-accent: #383e48;
33
35
 
34
36
  --dark-color-text: #f0f6fc;
35
37
  --dark-color-text-aside: #9198a1;
@@ -47,6 +49,7 @@
47
49
 
48
50
  /* Link colors */
49
51
  --color-warning-text: var(--color-text);
52
+ --color-contrast-text: var(--color-text);
50
53
  --color-icon-background: var(--color-background);
51
54
  --color-focus-outline: var(--color-accent);
52
55
  }
@@ -54,6 +57,7 @@
54
57
  @media (prefers-color-scheme: light) {
55
58
  :root {
56
59
  --color-background-navbar: var(--light-color-background-navbar);
60
+ --color-background-overlay: var(--light-color-background-overlay);
57
61
  --color-warning-border: var(--light-color-warning-border);
58
62
  }
59
63
  }
@@ -61,17 +65,20 @@
61
65
  @media (prefers-color-scheme: dark) {
62
66
  :root {
63
67
  --color-background-navbar: var(--dark-color-background-navbar);
68
+ --color-background-overlay: var(--dark-color-background-overlay);
64
69
  --color-warning-border: var(--dark-color-warning-border);
65
70
  }
66
71
  }
67
72
 
68
73
  :root[data-theme='light'] {
69
74
  --color-background-navbar: var(--light-color-background-navbar);
75
+ --color-background-overlay: var(--light-color-background-overlay);
70
76
  --color-warning-border: var(--light-color-warning-border);
71
77
  }
72
78
 
73
79
  :root[data-theme='dark'] {
74
80
  --color-background-navbar: var(--dark-color-background-navbar);
81
+ --color-background-overlay: var(--dark-color-background-overlay);
75
82
  --color-warning-border: var(--dark-color-warning-border);
76
83
  }
77
84
 
@@ -80,8 +87,8 @@
80
87
  */
81
88
 
82
89
  :root {
83
- --font-family-text: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
84
- 'Segoe UI Emoji';
90
+ --font-family-text:
91
+ -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
85
92
  --font-family-code: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
86
93
  }
87
94
 
@@ -89,20 +96,6 @@ body {
89
96
  font-family: var(--font-family-text);
90
97
  }
91
98
 
92
- /*
93
- * Headlines
94
- */
95
-
96
- h1,
97
- h2,
98
- h3,
99
- h4,
100
- h5,
101
- h6 {
102
- margin-top: 1em;
103
- margin-bottom: 0.5em;
104
- }
105
-
106
99
  /*
107
100
  * Links
108
101
  */
@@ -285,38 +278,47 @@ code.tsd-tag {
285
278
  border-bottom-color: var(--color-accent);
286
279
  }
287
280
 
288
- #tsd-search.has-focus {
289
- background-color: var(--color-background-navbar);
281
+ .tsd-toolbar-contents a.title:hover {
282
+ color: var(--color-text);
290
283
  }
291
284
 
292
- #tsd-search .results,
293
- #tsd-search .results li,
294
- #tsd-search .results li:nth-child(2n) {
295
- background-color: var(--color-background-navbar);
285
+ /*
286
+ * Search
287
+ */
288
+
289
+ #tsd-search-trigger {
290
+ width: unset;
291
+ border: unset;
292
+ background-color: unset;
293
+ transition: opacity 0.15s ease-in-out;
296
294
  }
297
295
 
298
- #tsd-search .results li {
299
- margin-bottom: 0px;
296
+ #tsd-search-trigger:hover {
297
+ opacity: 1;
300
298
  }
301
299
 
302
- #tsd-search .results li a {
303
- color: var(--color-text);
300
+ #tsd-search-input,
301
+ #tsd-search-input:focus-visible {
302
+ background-color: transparent;
303
+ border: 1px solid var(--color-focus-outline);
304
304
  }
305
305
 
306
- #tsd-search .results li:hover:not(.no-results) {
307
- background-color: var(--color-accent);
306
+ #tsd-search-status:not(:empty) {
307
+ min-height: unset;
308
+ padding-top: 1.5rem;
309
+ padding-bottom: 0.5rem;
308
310
  }
309
311
 
310
- #tsd-search .results {
311
- border-style: solid;
312
- border-width: 1px;
313
- border-color: var(--color-accent);
314
- border-radius: 0px 0px 6px 6px;
315
- overflow: hidden;
312
+ #tsd-search-results > li:is(:hover, [aria-selected='true']) {
313
+ background-color: color-mix(in srgb, var(--color-text-aside), #0000 88%);
314
+ }
315
+
316
+ #tsd-search-results > li > a:hover {
317
+ text-decoration: unset;
316
318
  }
317
319
 
318
- #tsd-search .results .no-results {
319
- padding: calc(4px + 0.25rem);
320
+ #tsd-overlay {
321
+ background-color: var(--color-background-overlay);
320
322
  }
321
323
 
322
324
  /*
@@ -422,9 +424,11 @@ footer p {
422
424
  }
423
425
 
424
426
  /*
425
- * Fix collapse arrow position
427
+ * Fix collapse arrows position
426
428
  */
427
429
 
428
430
  .tsd-accordion-summary svg {
429
431
  transition: transform 0.1s ease-in-out;
432
+ margin-top: auto;
433
+ margin-bottom: auto;
430
434
  }