Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
d15ea3b
feat: add framework content handling and refactor tab components
LadyBluenotes Jan 11, 2026
bf0ec02
refactor: update import paths for Markdown and CodeBlock components
LadyBluenotes Jan 11, 2026
f229ff1
fix: update hash prop in Breadcrumbs and Toc components for correct l…
LadyBluenotes Jan 11, 2026
f128472
refactor: simplify props handling in rehypeCallouts and enhance pre.s…
LadyBluenotes Jan 11, 2026
a877c95
refactor: simplify props handling in rehypeCallouts and enhance pre.s…
LadyBluenotes Jan 11, 2026
4703291
refactor: optimize pre styles by consolidating CSS properties and adj…
LadyBluenotes Jan 11, 2026
c875ac5
ci: apply automated fixes
autofix-ci[bot] Jan 11, 2026
29bffa0
refactor: update import paths for Markdown and CodeBlock components
LadyBluenotes Jan 11, 2026
880e1dc
fix: add height and sizes attributes to image components for better r…
LadyBluenotes Jan 11, 2026
d585258
fix: add height and sizes attributes to image components for better r…
LadyBluenotes Jan 11, 2026
18c1702
refactor: update import path for MarkdownContent component
LadyBluenotes Jan 11, 2026
954aa82
import paths
LadyBluenotes Jan 11, 2026
2012267
markdown components that were hidden from git for some reason???
LadyBluenotes Jan 11, 2026
bf99f6d
ci: apply automated fixes
autofix-ci[bot] Jan 11, 2026
02c2609
markdown components that were hidden from git for some reason???
LadyBluenotes Jan 11, 2026
d25b9e6
ci: apply automated fixes
autofix-ci[bot] Jan 11, 2026
d6ca44e
Merge branch 'main' into frameworks
LadyBluenotes Jan 12, 2026
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
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function Breadcrumbs({
<DropdownItem key={`breadcrumb-toc-${heading.id}`} asChild>
<Link
to="."
hash={`#${heading.id}`}
hash={heading.id}
style={{
paddingLeft: `${(heading.level - 2) * 0.5 + 0.5}rem`,
}}
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeExampleCard.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react'
import { Card } from '~/components/Card'
import { CodeBlock } from '~/components/CodeBlock'
import { CodeBlock } from '~/components/markdown'
import { FrameworkIconTabs } from '~/components/FrameworkIconTabs'
import type { Framework } from '~/libraries'

Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeExplorer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import { CodeBlock } from '~/components/CodeBlock'
import { CodeBlock } from '~/components/markdown'
import { FileExplorer } from './FileExplorer'
import { InteractiveSandbox } from './InteractiveSandbox'
import { CodeExplorerTopBar } from './CodeExplorerTopBar'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Doc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { GamHeader } from './Gam'
import { Toc } from './Toc'
import { renderMarkdown } from '~/utils/markdown'
import { DocBreadcrumb } from './DocBreadcrumb'
import { MarkdownContent } from './MarkdownContent'
import { MarkdownContent } from '~/components/markdown'
import type { ConfigSchema } from '~/utils/config'

type DocProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/components/FeedEntry.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { format, formatDistanceToNow } from '~/utils/dates'
import { Markdown } from '~/components/Markdown'
import { Markdown } from '~/components/markdown'
import { libraries } from '~/libraries'
import { partners } from '~/utils/partners'
import { twMerge } from 'tailwind-merge'
Expand Down
2 changes: 1 addition & 1 deletion src/components/FeedEntryTimeline.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'
import { format, formatDistanceToNow } from '~/utils/dates'
import { Markdown } from '~/components/Markdown'
import { Markdown } from '~/components/markdown'
import { Card } from '~/components/Card'
import { libraries } from '~/libraries'
import { partners } from '~/utils/partners'
Expand Down
284 changes: 0 additions & 284 deletions src/components/Markdown.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/SimpleMarkdown.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { MarkdownLink } from '~/components/MarkdownLink'
import { MarkdownLink } from '~/components/markdown'
import type { HTMLProps } from 'react'
import parse, {
attributesToProps,
Expand Down
10 changes: 2 additions & 8 deletions src/components/Toc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ type TocProps = {
activeHeadings: Array<string>
}

export function Toc({
headings,
colorFrom,
colorTo,
textColor,
activeHeadings,
}: TocProps) {
export function Toc({ headings, textColor, activeHeadings }: TocProps) {
return (
<nav className="flex flex-col sticky top-[var(--navbar-height)] max-h-[calc(100dvh-var(--navbar-height))] overflow-hidden">
<div className="py-1">
Expand All @@ -47,7 +41,7 @@ export function Toc({
<Link
to="."
title={heading.id}
hash={`#${heading.id}`}
hash={heading.id}
aria-current={activeHeadings.includes(heading.id) && 'location'}
className={twMerge(
'block py-1 pl-2 border-l-2 rounded-r transition-colors duration-200 opacity-60 hover:opacity-100 hover:bg-gray-500/10',
Expand Down
2 changes: 1 addition & 1 deletion src/components/admin/FeedEntryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { useState } from 'react'
import { useQuery } from '@tanstack/react-query'
import { FeedEntry } from '~/components/FeedEntry'
import { Markdown } from '~/components/Markdown'
import { Markdown } from '~/components/markdown'
import { libraries } from '~/libraries'
import { partners } from '~/utils/partners'
import { currentUserQueryOptions } from '~/queries/auth'
Expand Down
Loading
Loading