@brillout/docpress 0.16.46 → 0.16.47

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/ExternalLinks.tsx CHANGED
@@ -46,10 +46,11 @@ function ExternalLinks(props: { style?: React.CSSProperties }) {
46
46
 
47
47
  function ChangelogButton() {
48
48
  const pageContext = usePageContext()
49
- const { version, github } = pageContext.globalContext.config.docpress
49
+ const { version, github, changelog } = pageContext.globalContext.config.docpress
50
+ const changeLogUrl = typeof changelog === 'string' ? changelog : `${github}/blob/main/CHANGELOG.md`
50
51
  return (
51
52
  <a
52
- href={`${github}/blob/main/CHANGELOG.md`}
53
+ href={changeLogUrl}
53
54
  className="colorize-on-hover"
54
55
  style={{
55
56
  display: 'flex',
@@ -29,7 +29,7 @@ type Config = {
29
29
  twitter?: string;
30
30
  bluesky?: string;
31
31
  linkedin?: string;
32
- changelog?: boolean;
32
+ changelog?: boolean | string;
33
33
  headings: HeadingDefinition[];
34
34
  headingsDetached: HeadingDetachedDefinition[];
35
35
  categories?: Category[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.16.46",
3
+ "version": "0.16.47",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
@@ -66,10 +66,7 @@
66
66
  "vike": "^0.4.255",
67
67
  "vite": "^8.0.8"
68
68
  },
69
- "repository": {
70
- "type": "git",
71
- "url": "https://github.com/brillout/docpress"
72
- },
69
+ "repository": "https://github.com/brillout/docpress",
73
70
  "license": "MIT",
74
71
  "publishConfig": {
75
72
  "access": "public"
package/types/Config.ts CHANGED
@@ -35,7 +35,7 @@ type Config = {
35
35
  twitter?: string
36
36
  bluesky?: string
37
37
  linkedin?: string
38
- changelog?: boolean
38
+ changelog?: boolean | string
39
39
 
40
40
  headings: HeadingDefinition[]
41
41
  headingsDetached: HeadingDetachedDefinition[]