Skip to content

Commit

Permalink
[PR feedback] Docs tweaks TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Nov 16, 2021
1 parent 3b8aad5 commit 1d6896a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src-docs/src/views/code/code_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,35 @@ import {
import { codeBlockConfig, codeConfig } from './playground';

import Code from './code';
const codeSource = require('!!raw-loader!./code.tsx');
const codeSource = require('!!raw-loader!./code');
const codeSnippet = '<EuiCode>Text to be formatted</EuiCode>';

import CodeBlock from './code_block';
const codeBlockSource = require('!!raw-loader!./code_block.tsx');
const codeBlockSource = require('!!raw-loader!./code_block');
const codeBlockSnippet = `<EuiCodeBlock language="html" paddingSize="s" isCopyable>
{ \`<h1>Title</h1>\` }
</EuiCodeBlock>
`;

import CodeBlockLines from './line_numbers';
const codeBlockLinesSource = require('!!raw-loader!./line_numbers.tsx');
const codeBlockLinesSource = require('!!raw-loader!./line_numbers');
const codeBlockLinesSnippet = `<EuiCodeBlock language="json" lineNumbers>
{}
</EuiCodeBlock>
`;

import CodeBlockVirtualized from './virtualized';
const codeBlockVirtualizedSource = require('!!raw-loader!./virtualized.tsx');
const codeBlockVirtualizedSource = require('!!raw-loader!./virtualized');
const codeBlockVirtualizedSnippet = `<EuiCodeBlock language="json" isVirtualized overflowHeight={300}>
{}
</EuiCodeBlock>
`;

import CodeBlockVirtualizedFlyout from './virtualized_flyout';
const codeBlockVirtualizedFlyoutSource = require('!!raw-loader!./virtualized_flyout.tsx');
const codeBlockVirtualizedFlyoutSource = require('!!raw-loader!./virtualized_flyout');

import CodeBlockPre from './code_block_pre';
const codeBlockPreSource = require('!!raw-loader!./code_block_pre.tsx');
const codeBlockPreSource = require('!!raw-loader!./code_block_pre');

export const CodeExample = {
title: 'Code',
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/code/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const codeBlockConfig = () => {
propsToUse.overflowHeight = {
...propsToUse.overflowHeight,
type: 'number',
value: 150,
value: undefined,
};

propsToUse.children = {
Expand Down

0 comments on commit 1d6896a

Please sign in to comment.