-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[version-3-4] Add the Further Guidance admonition + link to the VMwar…
…e PCG tutorial (#3379) (#3385) * Add the Further Guidance admonition + link to the VMware PCG tutorial (#3379) * chore: Add the Further Guidance admonition * docs: Link to the VMware PCG tutorial * chore: Fix spelling * chore: Implement peer review * chore: Remove the TP admonition * chore: Add the TP admonition
- Loading branch information
Showing
9 changed files
with
105 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { faGraduationCap } from "@fortawesome/free-solid-svg-icons"; | ||
|
||
export default function IconFurtherGuidance() { | ||
return <FontAwesomeIcon icon={faGraduationCap} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { faFlag } from "@fortawesome/free-solid-svg-icons"; | ||
|
||
export default function IconTechPreview() { | ||
return <FontAwesomeIcon icon={faFlag} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from "react"; | ||
import clsx from "clsx"; | ||
import Translate from "@docusaurus/Translate"; | ||
import AdmonitionLayout from "@theme/Admonition/Layout"; | ||
import IconFurtherGuidance from "../Icon/FurtherGuidance"; | ||
|
||
const infimaClassName = "alert admonition-further-guidance"; | ||
|
||
const defaultProps = { | ||
icon: <IconFurtherGuidance />, | ||
title: ( | ||
<Translate | ||
id="theme.admonition.review" | ||
description="The default label used for the Further Guidance admonition (:::further)" | ||
> | ||
further guidance | ||
</Translate> | ||
), | ||
defaultText: "", | ||
}; | ||
|
||
export default function AdmonitionTypeFurtherGuidance(props) { | ||
const text = props.children || defaultProps.defaultText; | ||
return ( | ||
<AdmonitionLayout {...defaultProps} className={clsx(infimaClassName, props.className)}> | ||
{text} | ||
</AdmonitionLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from "react"; | ||
import clsx from "clsx"; | ||
import Translate from "@docusaurus/Translate"; | ||
import AdmonitionLayout from "@theme/Admonition/Layout"; | ||
import IconTechPreview from "../Icon/TechPreview"; | ||
|
||
const infimaClassName = "alert admonition-tech-preview"; | ||
|
||
const defaultProps = { | ||
icon: <IconTechPreview />, | ||
title: ( | ||
<Translate | ||
id="theme.admonition.review" | ||
description="The default label used for the Tech Preview admonition (:::preview)" | ||
> | ||
tech preview | ||
</Translate> | ||
), | ||
defaultText: | ||
"This is a Tech Preview feature and is subject to change. Do not use this feature in production workloads.", | ||
}; | ||
|
||
export default function AdmonitionTypeTechPreview(props) { | ||
const text = props.children || defaultProps.defaultText; | ||
return ( | ||
<AdmonitionLayout {...defaultProps} className={clsx(infimaClassName, props.className)}> | ||
{text} | ||
</AdmonitionLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import DefaultAdmonitionTypes from "@theme-original/Admonition/Types"; | ||
import AdmonitionTypeTechPreview from "../Admonition/Type/TechPreview"; | ||
import AdmonitionTypeFurtherGuidance from "./Type/FurtherGuidance"; | ||
|
||
const AdmonitionTypes = { | ||
...DefaultAdmonitionTypes, | ||
preview: AdmonitionTypeTechPreview, | ||
further: AdmonitionTypeFurtherGuidance, | ||
}; | ||
|
||
export default AdmonitionTypes; |