9a6f4e8c4b
This PR incorporates design tweaks from #2922 without the home page or content changes. These are: - Replacing all `hello@tldraw.com` with `sales@tldraw.com` - Fix mailto links. - Showing the first item in a section on direct routes to the section - Splitting the article page for human-written content from article page for generated content - Splitting the layout for the landing page from the rest of the site (temporarily identical to the regular content) - Removing headings from left sidebar - Restoring headings in right sidebar for human-written pages with > 1 heading link - Styling block quote - Adjusting section link appearance / layout in header / menu - Changing the order of search results to preference docs over examples - Updating copy on events - Removing copy on user interface menus - Adding hero as prop to all articles - Updated icon - Fixing a few broken links - Replaces the sandpack code blocks with hljs code blocks, except in examples. ### Change Type - [x] `documentation` — Changes to the documentation only[^2]
63 lines
855 B
TypeScript
63 lines
855 B
TypeScript
import * as customComponents from '../article-components'
|
|
import * as apiComponents from './api-docs'
|
|
import {
|
|
A,
|
|
ApiHeading,
|
|
Blockquote,
|
|
Callout,
|
|
Divider,
|
|
Embed,
|
|
Heading1,
|
|
Heading2,
|
|
Heading3,
|
|
Heading4,
|
|
Heading5,
|
|
Heading6,
|
|
Image,
|
|
ListItem,
|
|
OrderedList,
|
|
Paragraph,
|
|
Pre,
|
|
Small,
|
|
TD,
|
|
THead,
|
|
TR,
|
|
Table,
|
|
UnorderedList,
|
|
Video,
|
|
} from './generic'
|
|
|
|
import { Code, CodeBlock } from './code'
|
|
|
|
export const components = {
|
|
a: A,
|
|
blockquote: Blockquote,
|
|
code: Code,
|
|
h1: Heading1,
|
|
h2: Heading2,
|
|
h3: Heading3,
|
|
h4: Heading4,
|
|
h5: Heading5,
|
|
h6: Heading6,
|
|
hr: Divider,
|
|
img: Image,
|
|
li: ListItem,
|
|
ol: OrderedList,
|
|
p: Paragraph,
|
|
pre: Pre,
|
|
table: Table,
|
|
td: TD,
|
|
thead: THead,
|
|
tr: TR,
|
|
ul: UnorderedList,
|
|
video: Video,
|
|
ApiHeading,
|
|
CodeBlock,
|
|
Embed,
|
|
Image,
|
|
Small: Small,
|
|
Video,
|
|
Callout,
|
|
...customComponents,
|
|
...apiComponents,
|
|
}
|