Skip to content

Commit d531cd7

Browse files
committed
Updates to support automation repo
1 parent 7d6acd2 commit d531cd7

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

app/lib/docs/doc.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ async function getFreshDoc({
8585
? privateContentPath(product, version)
8686
: contentPath(product, version)
8787

88-
return parseMdx(replaceConfigVars(mdx, config), docsPath)
88+
return parseMdx(replaceConfigVars(mdx, config))
8989
}
9090

9191
export async function getDocFromDir(args: {

app/lib/docs/mdx/index.server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ import {
1313
import { rehypeImages } from './img.server.ts'
1414
import rehypeWrapTable from './tables.server.ts'
1515

16-
export async function parseMdx(mdx: string, docsPath: string) {
16+
export async function parseMdx(mdx: string) {
1717
// Pull all h2 & h3 headings
1818
let headings: Heading[] = []
1919
const { frontmatter, code } = await bundleMDX({
2020
source: mdx,
21-
cwd: docsPath,
2221
mdxOptions(options) {
2322
options.remarkPlugins = [
2423
...(options.remarkPlugins ?? []),

app/lib/docs/menu.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export function getBreadcrumbs({
2020
const children: NavLink[] = splat
2121
.split('/')
2222
.reduce<NavItem[]>((acc, current, i) => {
23-
console.log(acc, product.to)
2423
if (i === 0) {
2524
const item = menu.find(
2625
({ slug }) => slug === `${product.to}/${current}`,
@@ -86,7 +85,6 @@ export function getPagination(nav: NavItem[], path: string): Pagination {
8685
const grandChildPagination = nestedPagination(child, path)
8786
if (grandChildPagination) {
8887
if (!grandChildPagination.next) {
89-
console.log(current)
9088
if (current.children[grandChildIndex + 1]) {
9189
grandChildPagination.next = navItemToLink(
9290
current.children[grandChildIndex + 1],

app/styles/tailwind.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,14 @@
137137
@apply mb-0;
138138
}
139139

140+
.prose dt {
141+
@apply my-1 font-display font-bold;
142+
}
143+
144+
.prose dd {
145+
@apply mb-1 ml-6;
146+
}
147+
140148
/*========
141149
PRISM
142150
=========*/

0 commit comments

Comments
 (0)