-
+
{`A `}
{`log viewer`}
@@ -36,52 +36,52 @@ const Component = () => (
{`Light theme log viewer`}
-
+
-
- -
+
+ -
{`Type of log dropdown menu:`}
{` Allow users to switch between different types of logs.`}
- -
+
-
{`Search bar:`}
{` Use to look up historical logs. The results will be highlighted in the log.`}
- -
+
-
{`Pause button:`}
{` Play and stop your log content viewing, instead of scrolling through.`}
- -
+
-
{`Clear log:`}
{` Clear the displayed log output.`}
- -
+
-
{`Cog:`}
{` House settings such as wrapping lines, showing timestamps, and displaying line numbers.`}
- -
+
-
{`Export:`}
{` Export log content.`}
- -
+
-
{`Download:`}
{` Download the log file.`}
- -
+
-
{`Fullscreen:`}
@@ -91,29 +91,29 @@ const Component = () => (
{`Dark theme log viewer`}
-
+
{`We recommend using the light theme editor by default, but there is also a dark theme log viewer
available. All log viewer functionality remains the same whether a light or dark theme is used.`}
-
+
{`Usability`}
-
+
{`Use a log viewer when:`}
-
- -
+
+ -
{`The user can manipulate 1 large log file or multiple log files at the same time.`}
- -
+
-
{`You want to create a more readable and accessible environment for the user.`}
- -
+
-
{`The user may actively search for specific logs within a large log file.`}
- -
+
-
{`The user shares files frequently with other users or teams.`}
@@ -123,26 +123,26 @@ available. All log viewer functionality remains the same whether a light or dark
{`With popover`}
-
+
{`The clear log button opens up a popover with further options, to prevent a user from accidentally clearing their log content.`}
-
+
{`With dropdown, drilldown, and search expanded`}
-
+
{`The cog icon in the log viewer toolbar allows you to store content options such as timestamps or line numbers for better orientation within the log viewer.`}
-
+
{`With search results`}
-
+
{`The search bar provides highlighted search results for better findability within a log viewer’s content.`}
-
+
);
diff --git a/packages/module/patternfly-docs/generated/extensions/log-viewer/react-demos.js b/packages/module/patternfly-docs/generated/extensions/log-viewer/react-demos.js
index d721261..6079b62 100644
--- a/packages/module/patternfly-docs/generated/extensions/log-viewer/react-demos.js
+++ b/packages/module/patternfly-docs/generated/extensions/log-viewer/react-demos.js
@@ -1,6 +1,6 @@
import React from 'react';
import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components';
-import { data } from '../../../content/extensions/react-log-viewer/demos/../examples/realTestData';
+import { data } from '@patternfly/react-log-viewer/patternfly-docs/content/extensions/react-log-viewer/examples/realTestData.js';
import { LogViewer, LogViewerSearch } from '@patternfly/react-log-viewer';
import {
Badge,
@@ -63,10 +63,9 @@ pageData.liveContext = {
EllipsisVIcon,
DownloadIcon
};
-pageData.relativeImports = "import { data } from 'content/extensions/react-log-viewer/demos/../examples/realTestData';"
pageData.examples = {
'With complex toolbar': props =>
-