@patternfly/documentation-framework 1.0.3-rc1 → 1.0.5

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,14 @@
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.0.5 (2022-07-06)
7
+
8
+ **Note:** Version bump only for package @patternfly/documentation-framework
9
+
10
+
11
+
12
+
13
+
6
14
  # 0.12.0 (2022-07-05)
7
15
 
8
16
 
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Red Hat, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,43 @@
1
1
  # @patternfly/documentation-framework
2
2
 
3
+ ## The PatternFly documentation framework lets you develop component examples in markdown format, so that they can be added to [patternfly.org](https://www.patternfly.org/v4/).
4
+
3
5
  ## Install
4
6
 
5
7
  We publish this theme [on npm.](https://www.npmjs.com/package/@patternfly/documentation-framework) Install it as a devDependency with your package manager.
6
8
 
7
- `npm i --save-dev @patternfly/documentation-framework`
9
+ 1. @patternfly/documentation-framework
10
+
11
+ `npm i --save-dev @patternfly/documentation-framework`
12
+
13
+ or
14
+
15
+ `yarn add -D @patternfly/documentation-framework`
16
+
17
+ 2. Provide or install the following either as dependencies if you want to use them in your own project, or as devDependencies:
18
+ ```
19
+ "@patternfly/patternfly": "^4.185.1",
20
+ "@patternfly/react-core": "^4.202.16",
21
+ "@patternfly/react-table": "^4.71.16",
22
+ "@patternfly/react-code-editor": "^4.43.16",
23
+ ```
24
+ `yarn add -D @patternfly/patternfly @patternfly/react-core @patternfly/react-table @patternfly/react-code-editor`
8
25
 
9
- `yarn add -D @patternfly/documentation-framework`
26
+ ### Resolutions
27
+
28
+ This should not be needed, but if you encounter errors installing the above devDependencies, try adding one or more of these resolutions to your package.json file:
29
+ ```
30
+ "resolutions": {
31
+ "@types/react": "^16.8.0",
32
+ "@types/react-dom": "^16.8.0",
33
+ "react": "16.8.0",
34
+ "react-dom": "16.8.0",
35
+ "chromedriver": "102.0.0",
36
+ "node-sass": "7.0.1",
37
+ "puppeteer": "14.3.0",
38
+ "sharp": "0.30.6"
39
+ }
40
+ ```
10
41
 
11
42
  ## First time setup
12
43
 
@@ -89,4 +120,10 @@ You can generate screenshots against development or production builds.
89
120
 
90
121
  Terminal 2:
91
122
 
92
- `yarn docs:screenshots` or `npx pf-docs-framework screenshots --urlPrefix http://localhost:5000`
123
+ `yarn docs:screenshots` or `npx pf-docs-framework screenshots --urlPrefix http://localhost:5000`
124
+
125
+ ### Publish docs to patternfly.org
126
+
127
+ 1. Include the `patternfly-docs/content` and `patternfly-docs/generated` folders as part of your npm published module
128
+
129
+ 2. Create a PR at [patternfly-org](https://github.com/patternfly/patternfly-org) to bundle in the package's examples so that they're part of the patternfly.org documentation.
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.0.3-rc1",
4
+ "version": "1.0.5",
5
5
  "author": "Red Hat",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -28,9 +28,12 @@
28
28
  "copy-webpack-plugin": "6.1.0",
29
29
  "css-loader": "4.3.0",
30
30
  "detab": "2.0.3",
31
+ "express": "4.18.1",
31
32
  "file-loader": "6.1.0",
32
33
  "file-saver": "1.3.8",
33
34
  "fs-extra": "9.0.1",
35
+ "glob": "8.0.3",
36
+ "handlebars": "4.7.7",
34
37
  "hast-to-hyperscript": "9.0.0",
35
38
  "hast-util-to-text": "2.0.0",
36
39
  "html-formatter": "0.1.9",
@@ -43,6 +46,7 @@
43
46
  "monaco-editor": "0.21.3",
44
47
  "monaco-editor-webpack-plugin": "2.1.0",
45
48
  "null-loader": "4.0.0",
49
+ "parse-entities": "2.0.0",
46
50
  "postcss": "7.0.32",
47
51
  "postcss-loader": "4.2.0",
48
52
  "puppeteer": "14.3.0",
@@ -70,18 +74,15 @@
70
74
  "webpack-bundle-analyzer": "3.8.0",
71
75
  "webpack-cli": "3.3.12",
72
76
  "webpack-dev-server": "3.11.0",
73
- "webpack-merge": "5.8.0",
74
- "parse-entities": "2.0.0",
75
- "glob": "8.0.3",
76
- "express": "4.18.1",
77
- "handlebars": "4.7.7"
77
+ "webpack-merge": "5.8.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "react": "^16.8.0 || ^17.0.0",
81
- "react-dom": "^16.8.0 || ^17.0.0",
82
80
  "@patternfly/patternfly": ">=4.185.1",
83
- "@patternfly/react-core": ">=4.202.16",
84
81
  "@patternfly/react-code-editor": ">=4.43.16",
85
- "@patternfly/react-table": ">=4.71.16"
86
- }
82
+ "@patternfly/react-core": ">=4.202.16",
83
+ "@patternfly/react-table": ">=4.71.16",
84
+ "react": "^16.8.0 || ^17.0.0",
85
+ "react-dom": "^16.8.0 || ^17.0.0"
86
+ },
87
+ "gitHead": "9380bcb7a683ec4758f5ac144f214f26a63c0d0f"
87
88
  }