@patternfly/quickstarts 2.2.4 → 2.3.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.
@@ -21,14 +21,14 @@ Quick starts are usually surfaced within a [catalog](https://www.patternfly.org/
21
21
  2. **Title:** The title briefly communicates what the quick start covers.
22
22
  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.
23
23
  4. **Description:** The description summarizes the quick start outcome in four lines or fewer.
24
- 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.
24
+ 5. **Prerequisites (optional):** Prerequisites communicate user requirements before 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.
25
25
 
26
26
  <img src="./img/prerequisites.png" alt="Example of prerequisites" width="395"/>
27
27
 
28
28
  ### Catalog
29
29
  Multiple quick starts are often presented to users in a catalog.
30
30
 
31
- <img src="./img/catalog-elements.png" alt="Quick start catalog" width="1680"/>
31
+ <img src="./img/catalog-elements.png" alt="quick start catalog" width="1680"/>
32
32
 
33
33
  Catalogs with 14 or fewer quick starts should include a simple toolbar with the following elements:
34
34
  1. Keyword filter
@@ -76,7 +76,7 @@ Tasks consist of 2-10 steps, which walk the user through the UI to complete the
76
76
  <img src="./img/task.png" alt="Example task" width="449"/>
77
77
 
78
78
  #### Check your work
79
- 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.
79
+ 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 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.
80
80
 
81
81
  <img src="./img/check-your-work.png" alt="Check your work module" width="431"/>
82
82
 
@@ -98,7 +98,7 @@ Here are some general guidelines to follow when authoring quick start content:
98
98
  * Provide links at the end of quick starts if the user is likely to need or want additional technical information upon completion.
99
99
  * 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.
100
100
 
101
- 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.
101
+ 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 toward Red Hat OpenShift, they can apply to quick starts in any product.
102
102
 
103
103
  ## Quick starts in context
104
104
 
@@ -9,15 +9,15 @@ id: Quick Starts
9
9
  source: about
10
10
  ---
11
11
  # About
12
- The **@patternfly/quickstarts** extension is made up of two parts: `Quick starts` and `In App Documentation` product documentation tools.
12
+ The **@patternfly/quickstarts** extension is made up of two parts: `Quick starts` and `in-app documentation` product documentation tools.
13
13
 
14
14
  ## Full live demo application
15
- A live demo of **Quick starts and In App Documentation** can be found [here](https://quickstarts.netlify.app/), or view the [demo code](https://github.com/patternfly/patternfly-quickstarts/tree/main/packages/dev).
15
+ A live demo of **quick starts and in-app Documentation** can be found [here](https://quickstarts.netlify.app/), or view the [demo code](https://github.com/patternfly/patternfly-quickstarts/tree/main/packages/dev).
16
16
 
17
17
  A few key concepts are outlined below.
18
18
 
19
19
  ## Quick starts
20
- 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.
20
+ 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 guide installation and setup.
21
21
 
22
22
  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.
23
23
 
@@ -46,16 +46,16 @@ const { setActiveQuickStart } = React.useContext<QuickStartContextValues>(
46
46
  ```
47
47
 
48
48
  #### Quick start catalog
49
- By providing a set of quick starts to the `QuickStartContainer`, a full page catalog view will be generated. Clicking on a catalog card will open its respective `Quick start` in the side panel.
49
+ By providing a set of quick starts to the `QuickStartContainer`, a full-page catalog view will be generated. Clicking on a catalog card will open its respective `quick start` in the side panel.
50
50
 
51
51
  <img src="./img/catalog.png" alt="Quick start catalog" width="1680"/>
52
52
 
53
53
  ## In-app documentation
54
- In App Documentation is used to provide definitions for a set of topics relevant to your product. A single unit of In App Documentation can be called a `HelpTopic`, which is also the name used in code. `HelpTopic`'s essential sections are a **content** section that contains a definition of the term or topic, and an optional list of **links** to provide the user with other relevant information.
54
+ In-app documentation is used to provide definitions for a set of topics relevant to your product. A single unit of in-app documentation can be called a `HelpTopic`, which is also the name used in code. `HelpTopic`'s essential sections are a **content** section that contains a definition of the term or topic, and an optional list of **links** to provide the user with other relevant information.
55
55
 
56
- `HelpTopics` are displayed in a side panel just like `Quick starts`:
56
+ `HelpTopics` are displayed in a side panel just like `quick starts`:
57
57
 
58
- <img src="./img/help-topic.png" alt="Quick start catalog" width="449"/>
58
+ <img src="./img/help-topic.png" alt="quick start catalog" width="449"/>
59
59
 
60
60
  ### Help Topic format
61
61
 
@@ -74,4 +74,4 @@ Open the side panel by calling `setActiveHelpTopicByName` (available from `HelpT
74
74
  const { setActiveHelpTopicByName } = React.useContext<HelpTopicContextValues>(HelpTopicContext);
75
75
  ```
76
76
 
77
- Close it by calling `setActiveHelpTopicByName` with an empty string. There is no prebuilt `HelpTopic` catalog. simply attach a handler with `setActiveHelpTopicByName` to the appropriate DOM element. See the [basic example](/extensions/quick-starts/In-App-Documentation), or [live demo code](https://github.com/patternfly/patternfly-quickstarts/tree/main/packages/dev) for more details.
77
+ Close it by calling `setActiveHelpTopicByName` with an empty string. There is no prebuilt `HelpTopic` catalog. simply attach a handler with `setActiveHelpTopicByName` to the appropriate DOM element. See the [basic example](/extensions/quick-starts/In-App-Documentation) or [live demo code](https://github.com/patternfly/patternfly-quickstarts/tree/main/packages/dev) for more details.
@@ -14718,7 +14718,7 @@ const useInlineCopyClipboardShowdownExtension = () => {
14718
14718
  const { getResource } = React.useContext(QuickStartContext);
14719
14719
  return React.useMemo(() => ({
14720
14720
  type: 'lang',
14721
- regex: /`([^`](.*?)[^`])`{{copy}}/g,
14721
+ regex: /```[\n]\s*((((?!```).)*?\n)+)\s*```{{copy}}/g,
14722
14722
  replace: (text, group, subGroup, groupType, groupId) => {
14723
14723
  if (!group || !subGroup || !groupType || !groupId) {
14724
14724
  return text;
@@ -14818,7 +14818,7 @@ const useAdmonitionShowdownExtension = () => {
14818
14818
  // const { getResource } = React.useContext<QuickStartContextValues>(QuickStartContext);
14819
14819
  return React.useMemo(() => ({
14820
14820
  type: 'lang',
14821
- regex: /\[([\d\w\s-()$!]+)]{{(admonition) ([\w-]+)}}/g,
14821
+ regex: /\[(.+)]{{(admonition) ([\w-]+)}}/g,
14822
14822
  replace: (text, content, admonitionLabel, admonitionType, groupId) => {
14823
14823
  if (!content || !admonitionLabel || !admonitionType || !groupId) {
14824
14824
  return text;
@@ -20448,7 +20448,7 @@ const HelpTopicPanelContent = (_a) => {
20448
20448
  const paddingContainer = (children) => React.createElement("div", { style: { padding: '24px' } }, children);
20449
20449
  const panelBodyItems = (React.createElement(React.Fragment, null,
20450
20450
  paddingContainer(React.createElement(QuickStartMarkdownView, { content: activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.content })),
20451
- ((_b = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _b === void 0 ? void 0 : _b.length) && React.createElement(Divider, null),
20451
+ !!((_b = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _b === void 0 ? void 0 : _b.length) && React.createElement(Divider, null),
20452
20452
  paddingContainer(React.createElement(Stack, { hasGutter: true }, (_c = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _c === void 0 ? void 0 : _c.map(({ href, text, newTab, isExternal }, index) => {
20453
20453
  return (React.createElement(StackItem, { key: index },
20454
20454
  React.createElement(Button$1, { component: "a", href: href, target: newTab ? '_blank' : '', rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: isExternal ? React.createElement(ExternalLinkAltIcon, null) : null, iconPosition: "right", style: { fontSize: 'inherit' } }, text || href)));