@brillout/docpress 0.15.12 → 0.15.13

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
@@ -13,7 +13,7 @@ import '@docsearch/css'
13
13
 
14
14
  function ExternalLinks(props: { style?: React.CSSProperties }) {
15
15
  const pageContext = usePageContext()
16
- const { github, discord, bluesky, linkedin, i18n, twitter } = pageContext.globalContext.config.docpress
16
+ const { github, discord, bluesky, linkedin, i18n, twitter, changelog } = pageContext.globalContext.config.docpress
17
17
  const iconI18n = !i18n ? null : (
18
18
  <LinkIcon
19
19
  className="decolorize-4"
@@ -39,7 +39,7 @@ function ExternalLinks(props: { style?: React.CSSProperties }) {
39
39
  <LinkIcon className="decolorize-6" icon={iconLinkedin} href={`https://www.linkedin.com/company/${linkedin}`} />
40
40
  )}
41
41
  <LinkIcon className="decolorize-4" icon={iconGithub} href={github} />
42
- <ChangelogButton />
42
+ {changelog !== false && <ChangelogButton />}
43
43
  </div>
44
44
  )
45
45
  }
@@ -14,6 +14,7 @@ type Config = {
14
14
  twitter?: string;
15
15
  bluesky?: string;
16
16
  linkedin?: string;
17
+ changelog?: boolean;
17
18
  headings: HeadingDefinition[];
18
19
  headingsDetached: HeadingDetachedDefinition[];
19
20
  categories?: Category[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.15.12",
3
+ "version": "0.15.13",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
package/types/Config.ts CHANGED
@@ -17,6 +17,7 @@ type Config = {
17
17
  twitter?: string
18
18
  bluesky?: string
19
19
  linkedin?: string
20
+ changelog?: boolean
20
21
 
21
22
  headings: HeadingDefinition[]
22
23
  headingsDetached: HeadingDetachedDefinition[]