Skip to content

Commit

Permalink
Add links to _environment targets in options component (#75)
Browse files Browse the repository at this point in the history
Fixes #69 by adding
links to references to `_environment` targets.

Ran locally and verified the links work as expected.
  • Loading branch information
thejcannon authored Jan 8, 2024
1 parent e54dabd commit 0b957e1
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/components/reference/Option.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import Link from "@docusaurus/Link";

export default function Option({
children,
cli_repr,
Expand Down Expand Up @@ -51,8 +53,18 @@ export default function Option({
{target_field_name && (
<span>
Can be overriden by field
<code>{target_field_name}</code> on <code>local_environment</code>,{" "}
<code>docker_environment</code>, or <code>remote_environment</code>{" "}
<code>{target_field_name}</code> on{" "}
<Link to="../targets/local_environment">
<code>local_environment</code>
</Link>
,{" "}
<Link to="../targets/docker_environment">
<code>docker_environment</code>
</Link>
, or{" "}
<Link to="../targets/remote_environment">
<code>remote_environment</code>
</Link>
targets.
</span>
)}
Expand Down

0 comments on commit 0b957e1

Please sign in to comment.