@patternfly/documentation-framework 1.3.12 → 1.4.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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 1.4.0 (2023-01-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * **docs:** add frontmatter option to fix extensions view source link ([#3351](https://github.com/patternfly/patternfly-org/issues/3351)) ([a3bce76](https://github.com/patternfly/patternfly-org/commit/a3bce76d9cb499217647e702236c5d1fa9c3fafa))
12
+
13
+
14
+
15
+
16
+
17
+ ## 1.3.13 (2023-01-18)
18
+
19
+ **Note:** Version bump only for package @patternfly/documentation-framework
20
+
21
+
22
+
23
+
24
+
6
25
  ## 1.3.12 (2023-01-17)
7
26
 
8
27
  **Note:** Version bump only for package @patternfly/documentation-framework
@@ -47,11 +47,11 @@ const HeaderTools = ({
47
47
  const [searchValue, setSearchValue] = React.useState('');
48
48
  const [isSearchExpanded, setIsSearchExpanded] = React.useState(false);
49
49
 
50
- const getDropdownItem = version => (
50
+ const getDropdownItem = (version, isLatest = false) => (
51
51
  <DropdownItem
52
52
  key={version.name}
53
53
  component={
54
- <a href={version.latest ? '/v4' : `/${version.name}`}>
54
+ <a href={isLatest ? '/' : `/${version.name}`}>
55
55
  {`Release ${version.name}`}
56
56
  </a>
57
57
  }
@@ -129,13 +129,13 @@ const HeaderTools = ({
129
129
  )}
130
130
  dropdownItems={[
131
131
  <DropdownGroup key="latest" label="Latest">
132
- {getDropdownItem(latestVersion)}
132
+ {getDropdownItem(latestVersion, true)}
133
133
  </DropdownGroup>,
134
134
  <DropdownGroup key="Previous" label="Previous releases">
135
135
  {Object.values(versions.Releases)
136
136
  .filter(version => !version.hidden && !version.latest)
137
137
  .slice(0,3)
138
- .map(getDropdownItem)}
138
+ .map(version => getDropdownItem(version))}
139
139
  </DropdownGroup>,
140
140
  <Divider key="divider" className="ws-switcher-divider"/>,
141
141
  <DropdownItem
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly/documentation-framework",
3
3
  "description": "A framework to build documentation for PatternFly.",
4
- "version": "1.3.12",
4
+ "version": "1.4.0",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -84,5 +84,5 @@
84
84
  "react": "^16.8.0 || ^17.0.0",
85
85
  "react-dom": "^16.8.0 || ^17.0.0"
86
86
  },
87
- "gitHead": "9dd43356d9eb2e5122747a44aeb1e16894265dc3"
87
+ "gitHead": "9caa5f2ee5a753012de79747f21a3ca87f0af387"
88
88
  }
@@ -83,7 +83,7 @@ function toReactComponent(mdFilePath, source, buildMode) {
83
83
  subsection: frontmatter.subsection || '',
84
84
  source,
85
85
  slug,
86
- sourceLink: `https://github.com/patternfly/${
86
+ sourceLink: frontmatter.sourceLink || `https://github.com/patternfly/${
87
87
  sourceRepo}/blob/main/${
88
88
  normalizedPath}`,
89
89
  hideTOC: frontmatter.hideTOC || false