Skip to content

Commit 0115b0d

Browse files
committed
rebuild docs using CLI tool
1 parent 7fba754 commit 0115b0d

37 files changed

+4875
-112
lines changed

.eslintignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ dist
66
node_modules
77
public
88
bin
9-
build
9+
build
10+
11+
# paternfly-docs
12+
**/generated/**/*.js

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ storybook-static
88
.idea
99
.env
1010
stats.html
11+
12+
.cache

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
"lint:module": "NODE_OPTIONS=--max-old-space-size=4096 yarn eslint packages/module",
2323
"lint:dev": "NODE_OPTIONS=--max-old-space-size=4096 yarn eslint packages/dev",
2424
"visual": "npx percy exec -- node snapshots.js",
25-
"test:a11y": "patternfly-a11y --config patternfly-a11y.config"
25+
"test:a11y": "patternfly-a11y --config patternfly-a11y.config",
26+
"docs:develop": "pf-docs-framework start",
27+
"docs:build": "pf-docs-framework build all --output public",
28+
"docs:serve": "pf-docs-framework serve public --port 5000",
29+
"docs:screenshots": "pf-docs-framework screenshots --urlPrefix http://localhost:5000"
2630
},
2731
"devDependencies": {
2832
"@patternfly/patternfly-a11y": "4.2.1",
@@ -108,4 +112,4 @@
108112
],
109113
"resolver": "./jest-resolver.js"
110114
}
111-
}
115+
}

packages/module/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/generated/**/*.js

packages/module/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Docs
2+
.cache
3+
**/generated/**/*.js
4+
public

packages/module/package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@
3232
"post-css": "yarn purge-css && yarn min-css && yarn min-css-standalone",
3333
"purge-css": "purgecss --config ./purgecss.config.js",
3434
"min-css": "cleancss dist/quickstarts.css -o dist/quickstarts.min.css",
35-
"min-css-standalone": "cleancss -o dist/quickstarts-standalone.min.css dist/patternfly-nested.css dist/quickstarts-standalone.css"
35+
"min-css-standalone": "cleancss -o dist/quickstarts-standalone.min.css dist/patternfly-nested.css dist/quickstarts-standalone.css",
36+
"docs:develop": "pf-docs-framework start",
37+
"docs:build": "pf-docs-framework build all --output public",
38+
"docs:serve": "pf-docs-framework serve public --port 5000",
39+
"docs:screenshots": "pf-docs-framework screenshots --urlPrefix http://localhost:5000"
3640
},
3741
"peerDependencies": {
3842
"@patternfly/react-core": ">=4.115.2",
@@ -86,6 +90,7 @@
8690
"rollup-plugin-typescript2": "^0.29.0",
8791
"rollup-plugin-visualizer": "^5.5.0",
8892
"sass": "^1.35.2",
89-
"tslib": "^2.0.3"
93+
"tslib": "^2.0.3",
94+
"@patternfly/documentation-framework": "1.0.2"
9095
}
9196
}
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
---
2+
# Sidenav top-level section
3+
# should be the same for all markdown files for each extension
4+
section: extensions
5+
# Sidenav secondary level section
6+
# should be the same for all markdown files for each extension
7+
id: Quick Starts
8+
# Tab
9+
source: Design-Guidelines
10+
---
11+
12+
A **quick start** is a set of step-by-step instructions and tasks presented in a side panel embedded in a product’s UI. Quick starts can help users get started with a product, and they often provide guidance around installation and setup.
13+
14+
Each task in a quick start has multiple steps, and each quick start has multiple tasks. The outcome of the quick start includes the artifacts or state needed to successfully use the product, specific features, or add-ons.
15+
16+
## Elements
17+
18+
### Card
19+
20+
Quick starts are usually surfaced within a [catalog](https://www.patternfly.org/v4/components/card/design-guidelines/#cards-in-catalog-views) as clickable cards.
21+
22+
<img src="./img/card-elements.png" alt="Elements of a card" width="370"/>
23+
24+
1. **Icon:** An icon associated with the quick start topic can be included on the card. If no specific icon exists, use the rocket icon.
25+
2. **Title:** The title briefly communicates what the quick start covers.
26+
3. **Labels:** [Filled labels](https://www.patternfly.org/v4/components/label) communicate the estimated completion time and status. If the quick start is presented in a mixed catalog of resources, a label can indicate the type of resource.
27+
4. **Description:** The description summarizes the quick start outcome in four lines or fewer.
28+
5. **Prerequisites (optional):** Prerequisites communicate user requirements prior to starting the quick start. They’re displayed in a popover, and they’re organized into a bulleted list. The total number of prerequisites is listed in parentheses on the quick start card.
29+
30+
<img src="./img/prerequisites.png" alt="Example of prerequisites" width="395"/>
31+
32+
### Catalog
33+
Multiple quick starts are often presented to users in a catalog.
34+
35+
<img src="./img/catalog-elements.png" alt="Quick start catalog" width="1680"/>
36+
37+
Catalogs with 14 or fewer quick starts should include a simple toolbar with the following elements:
38+
1. Keyword filter
39+
2. Status filter
40+
3. Item count
41+
42+
Catalogs with 15 or more quick starts should include filtering functionality presented as vertical filters on the left side of the page instead of a simple toolbar.
43+
44+
For quick starts in a mixed catalog of resources, we recommend including an action link on the card so that users can easily recognize how to interact with it:
45+
46+
* **Start:** Use if the quick start hasn't been started yet
47+
* **Continue:** Use if the quick start is in progress
48+
* **Restart:** Use if the quick start has already been completed
49+
50+
There should only be one action displayed on a card at a time.
51+
52+
<img src="./img/mixed-catalog.png" alt="Mixed resource catalog" width="1062"/>
53+
54+
### Side panel
55+
Quick starts use the [drawer component](https://www.patternfly.org/v4/components/drawer), which contains all the step-by-step instructions and tasks.
56+
57+
<img src="./img/side-panel-elements.png" alt="Side panel elements" width="449"/>
58+
59+
1. **Quick start title:** The quick start title that is shown on the card.
60+
2. **Duration:** The estimated amount of time the quick start will take to complete.
61+
3. **Close:** The close button allows the user to close the quick start at any time.
62+
4. **Button bar:** The button bar allows the user to advance between quick start tasks. For task screens, the buttons are **Next**, **Back**, and **Restart**. For the intro screen, the only button is the **Start** button. On the completion screen, the buttons are **Close**, **Back**, and **Restart**.
63+
64+
65+
66+
Everything is contained in the drawer and remains anchored to the right, allowing the user to follow the steps without blocking any parts of the UI. The drawer does not overlay the UI and instead pushes it to the left, including the masthead. This prevents any modals or side panels within the UI from covering the quick start instructions. The side panel is also resizable.
67+
68+
<img src="./img/side-panel.png" alt="Side panel" width="1680"/>
69+
70+
<img src="./img/side-panel-resized.png" alt="Resized side panel" width="1680"/>
71+
72+
#### Introduction screen
73+
The first screen of any quick start is the introductory screen, which includes most of the information from the quick start card.
74+
75+
<img src="./img/introduction-screen.png" alt="Introduction screen" width="449"/>
76+
77+
#### Tasks
78+
Tasks consist of 2-10 steps, which walk the user through the UI to complete the goal of the task.
79+
80+
<img src="./img/task.png" alt="Example task" width="449"/>
81+
82+
#### Check your work
83+
The check your work module is shown at the bottom of the side panel for each task and helps the user validate that they have successfully completed the task. You can choose to make the check your work module required or optional. Validation questions should be yes/no questions, allowing the user to select the radio button with the appropriate response.
84+
85+
<img src="./img/check-your-work.png" alt="Check your work module" width="431"/>
86+
87+
If a user selects **Yes**, the check your work module and associated task header turn green. The task header icon becomes a checkmark.
88+
89+
<img src="./img/task-yes.png" alt="Check your work module with Yes selected" width="449"/>
90+
91+
If a user selects **No**, the check your work module and associated task header turn red. The task header icon becomes an **X**. When possible, explain what a user must do to complete the task, or link to relevant documentation.
92+
93+
<img src="./img/task-no.png" alt="Check your work module with No selected" width="449"/>
94+
95+
## Content guidelines
96+
Here are some general guidelines to follow when authoring quick start content:
97+
* Clearly state the outcome at the beginning of the quick start and provide brief context to explain why the user is completing the tasks.
98+
* Avoid screen captures. They require regular maintenance and can potentially lead to issues around accessibility and page loading.
99+
* Keep content minimal to avoid a wall of text that can overwhelm users and prevent easy skimming.
100+
* (Optional) As needed, provide a carefully curated set of links at specific points in the quick start:
101+
* Provide links within a quick start task if the user is likely to need or want more conceptual or reference information.
102+
* Provide links at the end of quick starts if the user is likely to need or want additional technical information upon completion.
103+
* Provide links in the check your work module when a user answers **No** if more robust information can help the user understand what actions they must take to complete the task.
104+
105+
For more specific quick start content guidelines, refer to the [Red Hat OpenShift documentation](https://docs.openshift.com/container-platform/4.7/web_console/creating-quick-start-tutorials.html). While these guidelines are geared towards Red Hat OpenShift, they can apply to quick starts in any products.
106+
107+
## Quick starts in context
108+
109+
<img src="./img/qs-context.png" alt="A quick start in context of a UI" width="1680"/>
96.7 KB
Loading
96.7 KB
Loading
531 KB
Loading

0 commit comments

Comments
 (0)