diff --git a/packages/example/content/docs/index.md b/packages/example/content/docs/index.md index decee1ee..fd5ecdd7 100644 --- a/packages/example/content/docs/index.md +++ b/packages/example/content/docs/index.md @@ -7,7 +7,7 @@ advantage of the existing engineering toolset that you're already familiar with - + A step-by-step introduction into basic DVC features diff --git a/packages/gatsby-theme-iterative/package.json b/packages/gatsby-theme-iterative/package.json index 3fe7bf90..5091126c 100644 --- a/packages/gatsby-theme-iterative/package.json +++ b/packages/gatsby-theme-iterative/package.json @@ -1,6 +1,6 @@ { "name": "@dvcorg/gatsby-theme-iterative", - "version": "0.3.22", + "version": "0.3.23", "description": "", "main": "index.js", "types": "src/typings.d.ts", diff --git a/packages/gatsby-theme-iterative/src/components/Documentation/Markdown/components/default.tsx b/packages/gatsby-theme-iterative/src/components/Documentation/Markdown/components/default.tsx index 2b410df7..ea60a384 100644 --- a/packages/gatsby-theme-iterative/src/components/Documentation/Markdown/components/default.tsx +++ b/packages/gatsby-theme-iterative/src/components/Documentation/Markdown/components/default.tsx @@ -115,6 +115,7 @@ export const Card: React.FC< PropsWithChildren<{ icon?: string heading?: string + headingicon?: string href?: string headingtag: | string @@ -124,7 +125,14 @@ export const Card: React.FC< }> > }> -> = ({ children, icon, heading, headingtag: Heading = 'h3', href }) => { +> = ({ + children, + icon, + heading, + headingicon, + headingtag: Heading = 'h3', + href +}) => { let iconElement if (Array.isArray(children) && icon) { @@ -139,7 +147,16 @@ export const Card: React.FC< {iconElement &&
{iconElement}
}
{heading && ( - {heading} + + {headingicon && ( + Heading Icon + )} + {heading} + )} {children}
diff --git a/packages/gatsby-theme-iterative/src/components/Documentation/Markdown/styles.module.css b/packages/gatsby-theme-iterative/src/components/Documentation/Markdown/styles.module.css index 272e0867..d7213faf 100644 --- a/packages/gatsby-theme-iterative/src/components/Documentation/Markdown/styles.module.css +++ b/packages/gatsby-theme-iterative/src/components/Documentation/Markdown/styles.module.css @@ -93,6 +93,12 @@ } } + .cardHeadingIcon { + display: inline-block; + height: 1em; + padding-right: 0.75rem; + } + .cardHeading { margin: 0; margin-bottom: 0.25em;