@patternfly/quickstarts 2.2.3 → 2.3.1

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.
Files changed (198) hide show
  1. package/README.md +4 -4
  2. package/dist/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.d.ts +1 -1
  3. package/dist/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.d.ts +1 -1
  4. package/dist/HelpTopicDrawer.d.ts +8 -2
  5. package/dist/QuickStartDrawer.d.ts +21 -2
  6. package/dist/controller/QuickStartTaskHeader.d.ts +1 -1
  7. package/dist/index.es.js +14 -13
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/index.js +14 -13
  10. package/dist/index.js.map +1 -1
  11. package/dist/patternfly-docs/quick-starts/design-guidelines/design-guidelines.md +105 -0
  12. package/dist/patternfly-docs/quick-starts/design-guidelines/img/card-elements copy.png +0 -0
  13. package/dist/patternfly-docs/quick-starts/design-guidelines/img/card-elements.png +0 -0
  14. package/dist/patternfly-docs/quick-starts/design-guidelines/img/catalog-elements.png +0 -0
  15. package/dist/patternfly-docs/quick-starts/design-guidelines/img/check-your-work.png +0 -0
  16. package/dist/patternfly-docs/quick-starts/design-guidelines/img/introduction-screen.png +0 -0
  17. package/dist/patternfly-docs/quick-starts/design-guidelines/img/mixed-catalog.png +0 -0
  18. package/dist/patternfly-docs/quick-starts/design-guidelines/img/prerequisites.png +0 -0
  19. package/dist/patternfly-docs/quick-starts/design-guidelines/img/qs-context.png +0 -0
  20. package/dist/patternfly-docs/quick-starts/design-guidelines/img/side-panel-elements.png +0 -0
  21. package/dist/patternfly-docs/quick-starts/design-guidelines/img/side-panel-resized.png +0 -0
  22. package/dist/patternfly-docs/quick-starts/design-guidelines/img/side-panel.png +0 -0
  23. package/dist/patternfly-docs/quick-starts/design-guidelines/img/task-no.png +0 -0
  24. package/dist/patternfly-docs/quick-starts/design-guidelines/img/task-yes.png +0 -0
  25. package/dist/patternfly-docs/quick-starts/design-guidelines/img/task.png +0 -0
  26. package/dist/patternfly-docs/quick-starts/examples/Basic.jsx +73 -0
  27. package/dist/patternfly-docs/quick-starts/examples/HelpTopic.jsx +53 -0
  28. package/dist/patternfly-docs/quick-starts/examples/about.md +77 -0
  29. package/dist/patternfly-docs/quick-starts/examples/basic.md +27 -0
  30. package/dist/patternfly-docs/quick-starts/examples/example-data/example-help-topics.js +173 -0
  31. package/dist/patternfly-docs/quick-starts/examples/example-data/example-quickstarts.js +215 -0
  32. package/dist/patternfly-docs/quick-starts/examples/example-data/index.js +15 -0
  33. package/dist/patternfly-docs/quick-starts/examples/help-topics.md +25 -0
  34. package/dist/patternfly-docs/quick-starts/examples/img/catalog.png +0 -0
  35. package/dist/patternfly-docs/quick-starts/examples/img/help-topic.png +0 -0
  36. package/dist/patternfly-docs/quick-starts/examples/img/side-panel.png +0 -0
  37. package/dist/quickstarts-base.css +24 -24
  38. package/dist/quickstarts-full.es.js +14 -13
  39. package/dist/quickstarts-full.es.js.map +1 -1
  40. package/dist/quickstarts.css +24 -24
  41. package/dist/quickstarts.min.css +1 -1
  42. package/package.json +11 -4
  43. package/src/ConsoleInternal/components/_icon-and-text.scss +14 -0
  44. package/src/ConsoleInternal/components/_markdown-view.scss +19 -0
  45. package/src/ConsoleInternal/components/catalog/_catalog.scss +390 -0
  46. package/src/ConsoleInternal/components/markdown-view.tsx +305 -0
  47. package/src/ConsoleInternal/components/utils/_status-box.scss +58 -0
  48. package/src/ConsoleInternal/components/utils/camel-case-wrap.tsx +33 -0
  49. package/src/ConsoleInternal/components/utils/index.tsx +3 -0
  50. package/src/ConsoleInternal/components/utils/router.ts +47 -0
  51. package/src/ConsoleInternal/components/utils/status-box.tsx +94 -0
  52. package/src/ConsoleInternal/module/k8s/types.ts +53 -0
  53. package/src/ConsoleShared/index.ts +1 -0
  54. package/src/ConsoleShared/src/components/index.ts +7 -0
  55. package/src/ConsoleShared/src/components/layout/PageLayout.scss +29 -0
  56. package/src/ConsoleShared/src/components/markdown-extensions/MarkdownCopyClipboard.tsx +93 -0
  57. package/src/ConsoleShared/src/components/markdown-extensions/__tests__/MarkdownCopyClipboard.spec.tsx +25 -0
  58. package/src/ConsoleShared/src/components/markdown-extensions/__tests__/test-data.ts +5 -0
  59. package/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx +66 -0
  60. package/src/ConsoleShared/src/components/markdown-extensions/code-extension.tsx +25 -0
  61. package/src/ConsoleShared/src/components/markdown-extensions/const.ts +3 -0
  62. package/src/ConsoleShared/src/components/markdown-extensions/index.ts +5 -0
  63. package/src/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.tsx +39 -0
  64. package/src/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.tsx +44 -0
  65. package/src/ConsoleShared/src/components/markdown-extensions/showdown-extension.scss +52 -0
  66. package/src/ConsoleShared/src/components/markdown-extensions/utils.ts +3 -0
  67. package/src/ConsoleShared/src/components/markdown-highlight-extension/MarkdownHighlightExtension.tsx +64 -0
  68. package/src/ConsoleShared/src/components/markdown-highlight-extension/highlight-consts.ts +9 -0
  69. package/src/ConsoleShared/src/components/markdown-highlight-extension/index.ts +1 -0
  70. package/src/ConsoleShared/src/components/modal/Modal.scss +3 -0
  71. package/src/ConsoleShared/src/components/modal/Modal.tsx +19 -0
  72. package/src/ConsoleShared/src/components/modal/index.ts +1 -0
  73. package/src/ConsoleShared/src/components/popper/Portal.tsx +23 -0
  74. package/src/ConsoleShared/src/components/popper/SimplePopper.tsx +90 -0
  75. package/src/ConsoleShared/src/components/popper/index.ts +2 -0
  76. package/src/ConsoleShared/src/components/spotlight/InteractiveSpotlight.tsx +58 -0
  77. package/src/ConsoleShared/src/components/spotlight/Spotlight.tsx +35 -0
  78. package/src/ConsoleShared/src/components/spotlight/StaticSpotlight.tsx +32 -0
  79. package/src/ConsoleShared/src/components/spotlight/index.ts +1 -0
  80. package/src/ConsoleShared/src/components/spotlight/spotlight.scss +63 -0
  81. package/src/ConsoleShared/src/components/status/GenericStatus.tsx +33 -0
  82. package/src/ConsoleShared/src/components/status/NotStartedIcon.tsx +27 -0
  83. package/src/ConsoleShared/src/components/status/PopoverStatus.tsx +42 -0
  84. package/src/ConsoleShared/src/components/status/Status.tsx +38 -0
  85. package/src/ConsoleShared/src/components/status/StatusIconAndText.tsx +42 -0
  86. package/src/ConsoleShared/src/components/status/icons.tsx +77 -0
  87. package/src/ConsoleShared/src/components/status/index.tsx +1 -0
  88. package/src/ConsoleShared/src/components/status/statuses.tsx +36 -0
  89. package/src/ConsoleShared/src/components/status/types.ts +7 -0
  90. package/src/ConsoleShared/src/components/utils/FallbackImg.tsx +20 -0
  91. package/src/ConsoleShared/src/components/utils/index.ts +1 -0
  92. package/src/ConsoleShared/src/constants/index.ts +1 -0
  93. package/src/ConsoleShared/src/constants/ui.ts +1 -0
  94. package/src/ConsoleShared/src/hooks/index.ts +6 -0
  95. package/src/ConsoleShared/src/hooks/scroll.ts +52 -0
  96. package/src/ConsoleShared/src/hooks/useBoundingClientRect.ts +18 -0
  97. package/src/ConsoleShared/src/hooks/useEventListener.ts +14 -0
  98. package/src/ConsoleShared/src/hooks/useForceRender.ts +6 -0
  99. package/src/ConsoleShared/src/hooks/useResizeObserver.ts +20 -0
  100. package/src/ConsoleShared/src/hooks/useScrollShadows.ts +45 -0
  101. package/src/ConsoleShared/src/index.ts +4 -0
  102. package/src/ConsoleShared/src/utils/index.ts +1 -0
  103. package/src/ConsoleShared/src/utils/useCombineRefs.ts +17 -0
  104. package/src/HelpTopicDrawer.tsx +124 -0
  105. package/src/HelpTopicPanelContent.tsx +152 -0
  106. package/src/QuickStartCatalogPage.tsx +190 -0
  107. package/src/QuickStartCloseModal.tsx +47 -0
  108. package/src/QuickStartController.tsx +113 -0
  109. package/src/QuickStartDrawer.scss +11 -0
  110. package/src/QuickStartDrawer.tsx +265 -0
  111. package/src/QuickStartMarkdownView.tsx +75 -0
  112. package/src/QuickStartPanelContent.scss +46 -0
  113. package/src/QuickStartPanelContent.tsx +153 -0
  114. package/src/__tests__/quick-start-utils.spec.tsx +16 -0
  115. package/src/catalog/Catalog/QuickStartCatalogHeader.tsx +18 -0
  116. package/src/catalog/Catalog/QuickStartCatalogSection.tsx +9 -0
  117. package/src/catalog/Catalog/QuickStartCatalogToolbar.tsx +12 -0
  118. package/src/catalog/Catalog/index.ts +3 -0
  119. package/src/catalog/QuickStartCatalog.scss +8 -0
  120. package/src/catalog/QuickStartCatalog.tsx +42 -0
  121. package/src/catalog/QuickStartTile.scss +11 -0
  122. package/src/catalog/QuickStartTile.tsx +105 -0
  123. package/src/catalog/QuickStartTileDescription.scss +29 -0
  124. package/src/catalog/QuickStartTileDescription.tsx +79 -0
  125. package/src/catalog/QuickStartTileFooter.tsx +101 -0
  126. package/src/catalog/QuickStartTileFooterExternal.tsx +40 -0
  127. package/src/catalog/QuickStartTileHeader.scss +12 -0
  128. package/src/catalog/QuickStartTileHeader.tsx +77 -0
  129. package/src/catalog/Toolbar/QuickStartCatalogFilter.scss +25 -0
  130. package/src/catalog/Toolbar/QuickStartCatalogFilter.tsx +34 -0
  131. package/src/catalog/Toolbar/QuickStartCatalogFilterItems.tsx +199 -0
  132. package/src/catalog/__tests__/QuickStartCatalog.spec.tsx +35 -0
  133. package/src/catalog/__tests__/QuickStartTile.spec.tsx +38 -0
  134. package/src/catalog/__tests__/QuickStartTileDescription.spec.tsx +44 -0
  135. package/src/catalog/index.ts +9 -0
  136. package/src/controller/QuickStartConclusion.tsx +63 -0
  137. package/src/controller/QuickStartContent.scss +12 -0
  138. package/src/controller/QuickStartContent.tsx +72 -0
  139. package/src/controller/QuickStartFooter.scss +13 -0
  140. package/src/controller/QuickStartFooter.tsx +128 -0
  141. package/src/controller/QuickStartIntroduction.scss +35 -0
  142. package/src/controller/QuickStartIntroduction.tsx +66 -0
  143. package/src/controller/QuickStartTaskHeader.scss +58 -0
  144. package/src/controller/QuickStartTaskHeader.tsx +116 -0
  145. package/src/controller/QuickStartTaskHeaderList.scss +17 -0
  146. package/src/controller/QuickStartTaskHeaderList.tsx +35 -0
  147. package/src/controller/QuickStartTaskReview.scss +30 -0
  148. package/src/controller/QuickStartTaskReview.tsx +81 -0
  149. package/src/controller/QuickStartTasks.scss +89 -0
  150. package/src/controller/QuickStartTasks.tsx +75 -0
  151. package/src/controller/__tests__/QuickStartConclusion.spec.tsx +95 -0
  152. package/src/controller/__tests__/QuickStartContent.spec.tsx +52 -0
  153. package/src/controller/__tests__/QuickStartFooter.spec.tsx +148 -0
  154. package/src/controller/__tests__/QuickStartTaskHeader.spec.tsx +56 -0
  155. package/src/controller/__tests__/QuickStartTaskReview.spec.tsx +45 -0
  156. package/src/controller/__tests__/QuickStartTasks.spec.tsx +81 -0
  157. package/src/data/mocks/json/explore-pipeline-quickstart.ts +66 -0
  158. package/src/data/mocks/json/explore-serverless-quickstart.ts +90 -0
  159. package/src/data/mocks/json/monitor-sampleapp-quickstart.ts +77 -0
  160. package/src/data/mocks/json/tour-icons.ts +3 -0
  161. package/src/data/mocks/yamls/add-healthchecks-quickstart.yaml +67 -0
  162. package/src/data/mocks/yamls/explore-pipeline-quickstart.yaml +57 -0
  163. package/src/data/mocks/yamls/explore-serverless-quickstart.yaml +83 -0
  164. package/src/data/mocks/yamls/install-associate-pipeline-quickstart.yaml +74 -0
  165. package/src/data/mocks/yamls/monitor-sampleapp-quickstart.yaml +66 -0
  166. package/src/data/mocks/yamls/sample-application-quickstart.yaml +97 -0
  167. package/src/data/mocks/yamls/serverless-application-quickstart.yaml +141 -0
  168. package/src/data/quick-start-test-data.ts +10 -0
  169. package/src/data/test-utils.ts +11 -0
  170. package/src/declaration.d.ts +2 -0
  171. package/src/index.ts +17 -0
  172. package/src/locales/en/quickstart.json +46 -0
  173. package/src/styles/_base.scss +54 -0
  174. package/src/styles/_dark-custom-override.scss +62 -0
  175. package/src/styles/legacy-bootstrap/README.md +21 -0
  176. package/src/styles/legacy-bootstrap/_code.scss +44 -0
  177. package/src/styles/legacy-bootstrap/_tables.scss +38 -0
  178. package/src/styles/legacy-bootstrap/_type.scss +90 -0
  179. package/src/styles/legacy-bootstrap/_variables.scss +48 -0
  180. package/src/styles/legacy-bootstrap.scss +5 -0
  181. package/src/styles/patternfly-global-entry.ts +1 -0
  182. package/src/styles/patternfly-global.scss +28 -0
  183. package/src/styles/patternfly-nested-entry.ts +1 -0
  184. package/src/styles/patternfly-nested.scss +18 -0
  185. package/src/styles/quickstarts-standalone-entry.ts +1 -0
  186. package/src/styles/quickstarts-standalone.scss +7 -0
  187. package/src/styles/style.scss +12 -0
  188. package/src/styles/vendor-entry.ts +1 -0
  189. package/src/styles/vendor.scss +7 -0
  190. package/src/utils/PluralResolver.ts +356 -0
  191. package/src/utils/asciidoc-procedure-parser.ts +132 -0
  192. package/src/utils/const.ts +10 -0
  193. package/src/utils/help-topic-context.tsx +74 -0
  194. package/src/utils/help-topic-types.ts +16 -0
  195. package/src/utils/quick-start-context.tsx +477 -0
  196. package/src/utils/quick-start-types.ts +72 -0
  197. package/src/utils/quick-start-utils.ts +92 -0
  198. package/src/utils/useLocalStorage.ts +38 -0
@@ -0,0 +1,215 @@
1
+ export const explorePipelinesQuickStart = {
2
+ apiVersion: 'console.openshift.io/v1',
3
+ kind: 'QuickStarts',
4
+ metadata: {
5
+ name: 'explore-pipelines',
6
+ },
7
+ spec: {
8
+ version: 4.7,
9
+ displayName: `Installing the Pipelines Operator`,
10
+ durationMinutes: 10,
11
+ // icon: pipelineIcon,
12
+ description: `Install the OpenShift® Pipelines Operator to build Pipelines using Tekton.`,
13
+ introduction: `OpenShift® Pipelines is a cloud-native, continuous integration and continuous delivery (CI/CD) solution based on Kubernetes resources. It uses Tekton building blocks to automate deployments across multiple Kubernetes distributions by abstracting away the underlying implementation details.
14
+ * OpenShift Pipelines is a serverless CI/CD system that runs pipelines with all the required dependencies in isolated containers.
15
+ * They are designed for decentralized teams that work on a microservice-based architecture.
16
+ * They are defined using standard Custom Resource Definitions making them extensible and easy to integrate with the existing Kubernetes tools. This enables you to scale on-demand.
17
+ * You can use OpenShift Pipelines to build images with Kubernetes tools such as Source-to-Image (S2I), Buildah, Buildpacks, and Kaniko that are portable across any Kubernetes platform.
18
+ * You can use the Developer perspective to create and manage pipelines and view logs in your namespaces.
19
+ To start using Pipelines, install the OpenShift® Pipelines Operator on your cluster.`,
20
+ tasks: [
21
+ {
22
+ title: `Installing the OpenShift Pipelines Operator`,
23
+ description: `### To install the OpenShift Pipelines Operator:
24
+ 1. From the **Administrator** perspective in the console navigation panel, click **Operators > OperatorHub**.
25
+ 2. In the **Filter by keyword** field, type \`OpenShift Pipelines Operator\`.
26
+ 3. If the tile has an Installed label, the Operator is already installed. Proceed to the next quick start to create a Pipeline.
27
+ 4. Click the **tile** to open the Operator details.
28
+ 5. At the top of the OpenShift Pipelines Operator panel that opens, click **Install**.
29
+ 6. Fill out the Operator subscription form by selecting the channel that matches your OpenShift cluster, and then click **Install**.
30
+ 7. On the **Installed Operators** page, wait for the OpenShift Pipelines Operator's status to change from **Installing** to **Succeeded**. `,
31
+ review: {
32
+ instructions: `#### To verify that the OpenShift Pipelines Operator is installed:
33
+ 1. From the **Operators** section of the navigation, go to the **Installed Operators** page.
34
+ 2. Verify that the **OpenShift Pipelines Operator** appears in the list of Operators.
35
+ In the status column, is the status of the OpenShift Pipelines Operator **Succeeded**?`,
36
+ failedTaskHelp: `This task isn’t verified yet. Try the task again, or [read more](https://docs.openshift.com/container-platform/4.6/pipelines/installing-pipelines.html#op-installing-pipelines-operator-in-web-console_installing-pipelines) about this topic.`,
37
+ },
38
+ summary: {
39
+ success: `You have installed the Pipelines Operator!`,
40
+ failed: `Try the steps again.`,
41
+ },
42
+ },
43
+ ],
44
+ conclusion: `You successfully installed the OpenShift Pipelines Operator! If you want to learn how to deploy an application and associate a Pipeline with it, take the Creating a Pipeline quick start.`,
45
+ nextQuickStart: [`install-app-and-associate-pipeline`],
46
+ accessReviewResources: [
47
+ {
48
+ group: 'operators.coreos.com',
49
+ resource: 'operatorgroups',
50
+ verb: 'list',
51
+ },
52
+ {
53
+ group: 'packages.operators.coreos.com',
54
+ resource: 'packagemanifests',
55
+ verb: 'list',
56
+ },
57
+ ],
58
+ },
59
+ };
60
+
61
+ export const exploreServerlessQuickStart = {
62
+ apiVersion: 'console.openshift.io/v1',
63
+ kind: 'ConsoleQuickStarts',
64
+ metadata: {
65
+ name: 'explore-serverless',
66
+ },
67
+ spec: {
68
+ version: 4.7,
69
+ displayName: `Setting up Serverless`,
70
+ durationMinutes: 10,
71
+ description: `Install the OpenShift Serverless Operator to deploy stateless, event-trigger-based applications.`,
72
+ introduction: `Red Hat® OpenShift® Serverless lets you run stateless, serverless workloads on a single multi-cloud container platform.
73
+ Serverless reduces the need to manage infrastructure or perform back-end development. Scaling is automated, and applications can run on any cloud, hybrid, or on-premises environment. Choosing Serverless means simplicity, portability, and efficiency.
74
+ Adding OpenShift Serverless to your OpenShift Container Platform cluster is quick and easy. This quick start walks you through the process.`,
75
+ tasks: [
76
+ {
77
+ title: `Install the OpenShift Serverless Operator`,
78
+ description: `### To install the Serverless Operator:
79
+ 1. From the **Administrator** perspective, go to the **OperatorHub** from the **Operators** section of the navigation.
80
+ 2. In the **Filter by keyword** field, type \`Serverless\`.
81
+ 3. If the tile has an **Installed** label on it, the Operator is already installed. Proceed to task two.
82
+ 4. Click the **OpenShift Serverless Operator** tile.
83
+ 5. At the top of the OpenShift Serverless Operator panel, click **Install**.
84
+ 6. Verify that the **OpenShift Serverless Operator Update Channel** is set to the latest version, then click **Install**.
85
+ 7. Wait for the OpenShift Serverless Operator's status to change from **Installing operator** to **Operator installed - Ready for use**.
86
+ `,
87
+
88
+ review: {
89
+ instructions: `#### To verify that the OpenShift Serverless Operator is installed:
90
+ In the Status column of the **Installed Operators** page, is the OpenShift Serverless Operator’s status **Succeeded?**`,
91
+ failedTaskHelp: `This task is incomplete. Try the task again, or [read more](https://docs.openshift.com/container-platform/4.6/serverless/installing_serverless/installing-openshift-serverless.html) about this topic.`,
92
+ },
93
+
94
+ summary: {
95
+ success: `You just installed the OpenShift Serverless Operator! Next, we'll install the required Knative Eventing and Knative Serving Custom Resource components for this Operator to run.`,
96
+ failed: `This task is incomplete. Try the task again, or read more about this topic.`,
97
+ },
98
+ },
99
+ {
100
+ title: `Create the Knative Serving and Knative Eventing APIs`,
101
+ description: `Now let’s install the Knative application programming interfaces (APIs) needed to deploy applications and container workloads.
102
+ **To create the Knative Serving and Knative Eventing APIs:**
103
+ 1. Go to the **Installed Operators** page.
104
+ 2. Click **OpenShift Serverless Operator**.
105
+ 3. If it does not already exist, create a project called “knative-serving” under the Project list at the top of the page. If it does exist, select the project from the list.
106
+ 4. Click the Knative Serving link under Provided APIs or, from Knative Serving tile, click **Create Instance**.
107
+ 5. Click **Create** to create the custom resource.
108
+ 6. If it does not already exist, create a project called “knative-eventing” under the Project list at the top of the page. If it does exist, select the project from the list.
109
+ 7. Click the Knative Eventing link under Provided APIs or, from Knative Eventing tile, click **Create Instance**.
110
+ 8. Click **Create** to create the custom resource.
111
+ `,
112
+ review: {
113
+ instructions: `#### To verify that the Knative Serving and Knative Eventing APIs were installed successfully:
114
+ Go to the **All Instances** tab of the OpenShift Serverless Operator.
115
+ Are the Knative Serving and Knative Eventing resources in the list of instances?
116
+ `,
117
+ failedTaskHelp: `This task isn’t verified yet. Try the task again, or [read more](https://docs.openshift.com/container-platform/4.6/serverless/installing_serverless/installing-knative-serving.html#serverless-create-serving-project-web-console_installing-knative-serving) about this topic.`,
118
+ },
119
+ summary: {
120
+ success: `You just created instances of the Knative Service and Knative Eventing resources.`,
121
+ failed: `Check your work to make sure that the Knative Service and Knative Eventing resources were created.`,
122
+ },
123
+ },
124
+ ],
125
+ conclusion: `Your Serverless Operator is ready! If you want to learn how to deploy a serverless application, take the **Exploring Serverless applications** quick start.`,
126
+ nextQuickStart: [`serverless-application`],
127
+ accessReviewResources: [
128
+ {
129
+ group: 'operators.coreos.com',
130
+ resource: 'operatorgroups',
131
+ verb: 'list',
132
+ },
133
+ {
134
+ group: 'packages.operators.coreos.com',
135
+ resource: 'packagemanifests',
136
+ verb: 'list',
137
+ },
138
+ ],
139
+ },
140
+ };
141
+
142
+ export const monitorSampleAppQuickStart = {
143
+ apiVersion: 'console.openshift.io/v1',
144
+ kind: 'QuickStarts',
145
+ metadata: {
146
+ name: 'monitor-sampleapp',
147
+ },
148
+ spec: {
149
+ version: 4.7,
150
+ displayName: 'Monitoring your sample application',
151
+ durationMinutes: 10,
152
+ description: `Now that you’ve created a sample application and added health checks, let’s monitor your application.`,
153
+ prerequisites: [`You completed the "Getting started with a sample" quick start.`],
154
+ introduction: `### This quick start shows you how to monitor your sample application.
155
+ You should have previously created the **sample-app** application and **nodejs-sample** deployment via the **Get started with a sample** quick start. If you haven't, you may be able to follow these tasks with any existing deployment.`,
156
+ tasks: [
157
+ {
158
+ title: `Viewing the monitoring details of your sample application`,
159
+ description: `### To view the details of your sample application:
160
+ 1. Go to the project your sample application was created in.
161
+ 2. In the **</> Developer** perspective, go to **Topology** view.
162
+ 3. Click on the **nodejs-sample** deployment to view its details.
163
+ 4. Click on the **Monitoring** tab in the side panel.
164
+ You can see context sensitive metrics and alerts in the **Monitoring** tab.`,
165
+ review: {
166
+ instructions: `#### To verify you can view the monitoring information:
167
+ 1. Do you see a **Metrics** accordion in the side panel?
168
+ 2. Do you see a **View monitoring dashboard** link in the **Metrics** accordion?
169
+ 3. Do you see three charts in the **Metrics** accordion: **CPU Usage**, **Memory Usage** and **Receive Bandwidth**?`,
170
+ failedTaskHelp: `This task isn’t verified yet. Try the task again.`,
171
+ },
172
+ summary: {
173
+ success: `You have learned how you can monitor your sample app!`,
174
+ failed: `Try the steps again.`,
175
+ },
176
+ },
177
+ {
178
+ title: `Viewing your project monitoring dashboard`,
179
+ description: `### To view the project monitoring dashboard in the context of **nodejs-sample**:
180
+ 1. Click on the **View monitoring dashboard** link in the side panel.
181
+ 2. You can change the **Time Range** and **Refresh Interval** of the dashboard.
182
+ 3. You can change the context of the dashboard as well by clicking on the drop-down list. Select a specific workload or **All Workloads** to view the dashboard in the context of the entire project.`,
183
+ review: {
184
+ instructions: `#### To verify that you are able to view the monitoring dashboard:
185
+ Do you see metrics charts in the dashboard?`,
186
+ failedTaskHelp: `This task isn’t verified yet. Try the task again.`,
187
+ },
188
+ summary: {
189
+ success: `You have learned how to view the dashboard in the context of your sample app!`,
190
+ failed: `Try the steps again.`,
191
+ },
192
+ },
193
+ {
194
+ title: `Viewing custom metrics`,
195
+ description: `### To view custom metrics:
196
+ 1. Click on the **Metrics** tab of the **Monitoring** page.
197
+ 2. Click the **Select Query** drop-down list to see the available queries.
198
+ 3. Click on **Filesystem Usage** from the list to run the query.`,
199
+ review: {
200
+ instructions: `#### Verify you can see the chart associated with the query:
201
+ Do you see a chart displayed with filesystem usage for your project? Note: select **Custom Query** from the dropdown to create and run a custom query utilizing PromQL.
202
+ `,
203
+ failedTaskHelp: `This task isn’t verified yet. Try the task again.`,
204
+ },
205
+ summary: {
206
+ success: `You have learned how to run a query!`,
207
+ failed: `Try the steps again.`,
208
+ },
209
+ },
210
+ ],
211
+ conclusion: `You have learned how to access workload monitoring and metrics!`,
212
+
213
+ nextQuickStart: [``],
214
+ },
215
+ };
@@ -0,0 +1,15 @@
1
+ import {
2
+ explorePipelinesQuickStart,
3
+ exploreServerlessQuickStart,
4
+ monitorSampleAppQuickStart,
5
+ } from './example-quickstarts';
6
+
7
+ export const quickStarts = [
8
+ explorePipelinesQuickStart,
9
+ exploreServerlessQuickStart,
10
+ monitorSampleAppQuickStart,
11
+ ];
12
+
13
+ import { exampleHelpTopics } from './example-help-topics';
14
+
15
+ export const helpTopics = exampleHelpTopics;
@@ -0,0 +1,25 @@
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: In-App-Documentation
10
+ propComponents: ['HelpTopicContainer']
11
+ ---
12
+
13
+ import { LoadingBox, HelpTopicContainer, HelpTopicContext } from '@patternfly/quickstarts';
14
+ import { helpTopics as exampleHelpTopics } from './example-data';
15
+ import '@patternfly/quickstarts/dist/quickstarts.css';
16
+
17
+ ## In-app documentation
18
+
19
+ ### Basic Example
20
+ ```js file="./HelpTopic.jsx"
21
+ ```
22
+
23
+ ### Basic Example Fullscreen
24
+ ```js file="./HelpTopic.jsx" isFullscreen
25
+ ```
@@ -784,27 +784,6 @@
784
784
  .pfext-markdown-view th {
785
785
  padding-top: 0; }
786
786
 
787
- .pfext-quick-start-intro__prereq {
788
- margin-bottom: var(--pf-global--spacer--md); }
789
- .pfext-quick-start-intro__prereq .pf-c-expandable-section__content {
790
- margin-top: var(--pf-global--spacer--sm); }
791
- .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle {
792
- padding-top: 0;
793
- padding-bottom: 0; }
794
- .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle-text {
795
- margin-left: var(--pf-global--spacer--sm); }
796
- .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle-icon {
797
- color: var(--pf-c-expandable-section__toggle--Color); }
798
- .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle-icon:focus, .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle-icon:hover {
799
- --pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--focus--Color); }
800
- .pfext-quick-start-intro__prereq-list {
801
- padding-left: 20px; }
802
- .pfext-quick-start-intro__prereq-list__item::marker {
803
- font-size: 0.8rem; }
804
- .pfext-quick-start-intro__prereq-list__item-content {
805
- position: relative;
806
- left: 2px; }
807
-
808
787
  .pfext-quick-start-tasks__list button::before {
809
788
  content: none; }
810
789
 
@@ -863,6 +842,27 @@
863
842
  .pfext-quick-start-tasks__list .task-pflist-list__item__content .task-pflist-list__item__content__note__body {
864
843
  font-size: 14px; }
865
844
 
845
+ .pfext-quick-start-intro__prereq {
846
+ margin-bottom: var(--pf-global--spacer--md); }
847
+ .pfext-quick-start-intro__prereq .pf-c-expandable-section__content {
848
+ margin-top: var(--pf-global--spacer--sm); }
849
+ .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle {
850
+ padding-top: 0;
851
+ padding-bottom: 0; }
852
+ .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle-text {
853
+ margin-left: var(--pf-global--spacer--sm); }
854
+ .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle-icon {
855
+ color: var(--pf-c-expandable-section__toggle--Color); }
856
+ .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle-icon:focus, .pfext-quick-start-intro__prereq .pf-c-expandable-section__toggle-icon:hover {
857
+ --pf-c-expandable-section__toggle--Color: var(--pf-c-expandable-section__toggle--focus--Color); }
858
+ .pfext-quick-start-intro__prereq-list {
859
+ padding-left: 20px; }
860
+ .pfext-quick-start-intro__prereq-list__item::marker {
861
+ font-size: 0.8rem; }
862
+ .pfext-quick-start-intro__prereq-list__item-content {
863
+ position: relative;
864
+ left: 2px; }
865
+
866
866
  .pfext-quick-start-task-header__list {
867
867
  padding: 0 !important; }
868
868
  .pfext-quick-start-task-header__list button::before {
@@ -931,9 +931,6 @@
931
931
  .pfext-quick-start-task-review--failed {
932
932
  color: var(--pf-chart-global--danger--Color--100); }
933
933
 
934
- .pfext-modal {
935
- position: absolute !important; }
936
-
937
934
  .pfext-markdown-view .pfext-code-block__pre {
938
935
  /* override the styles applied by showdown while parsing <pre /> */
939
936
  display: flex;
@@ -966,6 +963,9 @@
966
963
  color: var(--pf-c-alert__title--Color);
967
964
  word-break: break-word; }
968
965
 
966
+ .pfext-modal {
967
+ position: absolute !important; }
968
+
969
969
  @keyframes pfext-spotlight-expand {
970
970
  0% {
971
971
  outline-offset: -4px;
@@ -10532,12 +10532,13 @@ const CopyClipboard = ({ element, rootSelector, docContext, }) => {
10532
10532
  const { getResource } = React.useContext(QuickStartContext);
10533
10533
  const [showSuccessContent, setShowSuccessContent] = React.useState(false);
10534
10534
  const textToCopy = React.useMemo(() => {
10535
+ var _a;
10535
10536
  const copyTextId = element.getAttribute(MARKDOWN_COPY_BUTTON_ID);
10536
- return docContext.querySelector(`${rootSelector} [${MARKDOWN_SNIPPET_ID}="${copyTextId}"]`).innerText;
10537
+ return (_a = docContext.querySelector(`${rootSelector} [${MARKDOWN_SNIPPET_ID}="${copyTextId}"]`)) === null || _a === void 0 ? void 0 : _a.innerText;
10537
10538
  }, [element, docContext, rootSelector]);
10538
10539
  useEventListener(element, 'click', React.useCallback(() => {
10539
10540
  navigator.clipboard
10540
- .writeText(textToCopy)
10541
+ .writeText(textToCopy.trim())
10541
10542
  .then(() => {
10542
10543
  setShowSuccessContent(true);
10543
10544
  })
@@ -14719,15 +14720,15 @@ const useInlineCopyClipboardShowdownExtension = () => {
14719
14720
  return React.useMemo(() => ({
14720
14721
  type: 'lang',
14721
14722
  regex: /`([^`](.*?)[^`])`{{copy}}/g,
14722
- replace: (text, group, subGroup, groupType, groupId) => {
14723
- if (!group || !subGroup || !groupType || !groupId) {
14723
+ replace: (text, group, _, groupId) => {
14724
+ if (!group || isNaN(groupId)) {
14724
14725
  return text;
14725
14726
  }
14726
14727
  return removeTemplateWhitespace(`<span class="pf-c-clipboard-copy pf-m-inline">
14727
- <span class="pf-c-clipboard-copy__text" ${MARKDOWN_SNIPPET_ID}="${groupType}">${group}</span>
14728
+ <span class="pf-c-clipboard-copy__text" ${MARKDOWN_SNIPPET_ID}="${groupId}">${group}</span>
14728
14729
  <span class="pf-c-clipboard-copy__actions">
14729
14730
  <span class="pf-c-clipboard-copy__actions-item">
14730
- <button class="pf-c-button pf-m-plain" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupType}">
14731
+ <button class="pf-c-button pf-m-plain" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupId}">
14731
14732
  ${server.renderToStaticMarkup(React.createElement(CopyIcon, null))}
14732
14733
  </button>
14733
14734
  </span>
@@ -14741,16 +14742,16 @@ const useMultilineCopyClipboardShowdownExtension = () => {
14741
14742
  const { getResource } = React.useContext(QuickStartContext);
14742
14743
  return React.useMemo(() => ({
14743
14744
  type: 'lang',
14744
- regex: /```[\n]((.*?\n)+)```{{copy}}/g,
14745
- replace: (text, group, subgroup, groupType, groupId) => {
14746
- if (!group || !subgroup || !groupType || !groupId) {
14745
+ regex: /```[\n]\s*((((?!```).)*?\n)+)\s*```{{copy}}/g,
14746
+ replace: (text, group, _1, _2, groupId) => {
14747
+ if (!group || isNaN(groupId)) {
14747
14748
  return text;
14748
14749
  }
14749
14750
  return `<div class="pf-c-code-block">
14750
14751
  <div class="pf-c-code-block__header">
14751
14752
  <div class="pf-c-code-block__actions">
14752
14753
  <div class="pf-c-code-block__actions-item">
14753
- <button class="pf-c-button pf-m-plain" type="button" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupType}">
14754
+ <button class="pf-c-button pf-m-plain" type="button" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupId}">
14754
14755
  ${server.renderToStaticMarkup(React.createElement(CopyIcon, null))}
14755
14756
  </button>
14756
14757
  </div>
@@ -14759,7 +14760,7 @@ const useMultilineCopyClipboardShowdownExtension = () => {
14759
14760
  <div class="pf-c-code-block__content">
14760
14761
  <pre class="pf-c-code-block__pre pfext-code-block__pre">
14761
14762
  <code class="pf-c-code-block__code"
14762
- ${MARKDOWN_SNIPPET_ID}="${groupType}">${group}</code>
14763
+ ${MARKDOWN_SNIPPET_ID}="${groupId}">${group.trim()}</code>
14763
14764
  </pre>
14764
14765
  </div>
14765
14766
  </div>`;
@@ -14818,7 +14819,7 @@ const useAdmonitionShowdownExtension = () => {
14818
14819
  // const { getResource } = React.useContext<QuickStartContextValues>(QuickStartContext);
14819
14820
  return React.useMemo(() => ({
14820
14821
  type: 'lang',
14821
- regex: /\[([\d\w\s-()$!]+)]{{(admonition) ([\w-]+)}}/g,
14822
+ regex: /\[(.+)]{{(admonition) ([\w-]+)}}/g,
14822
14823
  replace: (text, content, admonitionLabel, admonitionType, groupId) => {
14823
14824
  if (!content || !admonitionLabel || !admonitionType || !groupId) {
14824
14825
  return text;
@@ -20448,7 +20449,7 @@ const HelpTopicPanelContent = (_a) => {
20448
20449
  const paddingContainer = (children) => React.createElement("div", { style: { padding: '24px' } }, children);
20449
20450
  const panelBodyItems = (React.createElement(React.Fragment, null,
20450
20451
  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),
20452
+ !!((_b = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _b === void 0 ? void 0 : _b.length) && React.createElement(Divider, null),
20452
20453
  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
20454
  return (React.createElement(StackItem, { key: index },
20454
20455
  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)));