Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cleanup styling for cli gen, remove node gen from ToC, add missing commands #940

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fmt
  • Loading branch information
crowlKats committed Oct 3, 2024
commit b65841e29e5d454d58443d28fedffbdc9c8e633a
16 changes: 9 additions & 7 deletions _includes/doc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -495,9 +495,9 @@ function renderCommand(
{Object.entries(options).map(([heading, flags]) => {
const id = heading.toLowerCase().replace(/\s/g, "-");

const renderedFlags = flags.toSorted((a, b) => a.name.localeCompare(b.name)).map((flag) =>
renderOption(id, flag, helpers)
);
const renderedFlags = flags.toSorted((a, b) =>
a.name.localeCompare(b.name)
).map((flag) => renderOption(id, flag, helpers));

toc.push({
text: heading,
Expand Down Expand Up @@ -556,10 +556,12 @@ function renderOption(group: string, arg, helpers: Lume.Helpers) {
return (
<>
<h3 id={id}>
<code>{docsLink
? <a href={docsLink}>{"--" + arg.name}</a>
: ("--" + arg.name)}</code>
{" "}<HeaderAnchor id={id} />
<code>
{docsLink
? <a href={docsLink}>{"--" + arg.name}</a>
: ("--" + arg.name)}
</code>{" "}
<HeaderAnchor id={id} />
</h3>
{arg.short && (
<p>
Expand Down