Skip to content

Commit 74aee56

Browse files
committedOct 21, 2023
Refactor docs of packages
1 parent fdfe17b commit 74aee56

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2197
-1767
lines changed
 

‎docs/_asset/index.css

+14
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,16 @@ button.success {
912912
background-color: var(--fg);
913913
}
914914

915+
details {
916+
border: 1px solid var(--gray-2);
917+
padding: 1ex;
918+
border-radius: 3px;
919+
}
920+
921+
details[open] {
922+
padding: calc(1em + 1ex);
923+
}
924+
915925
@media (prefers-color-scheme: dark) {
916926
:root {
917927
--white: #f0f6fc;
@@ -1095,6 +1105,10 @@ button.success {
10951105
border-color: var(--green-5);
10961106
color: var(--white);
10971107
}
1108+
1109+
details {
1110+
border-color: var(--gray-6);
1111+
}
10981112
}
10991113

11001114
@media (min-width: 22em) {

‎docs/docs/extending-mdx.mdx

+3-5
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ You can use this template:
104104
## Using plugins
105105

106106
Where to pass plugins is encoded in their name: remark plugins go in
107-
[`options.remarkPlugins`][options-remark-plugins], rehype plugins
108-
in [`options.rehypePlugins`][options-rehype-plugins].
107+
`remarkPlugins` and rehype plugins go in `rehypePlugins` of
108+
[`ProcessorOptions`][processor-options].
109109
Those fields expect lists of plugins and/or of `[plugin, options]`:
110110

111111
```tsx
@@ -169,9 +169,7 @@ For info on the node types that represent MDX specific features, see
169169

170170
[start]: /docs/getting-started/
171171

172-
[options-remark-plugins]: /packages/mdx/#optionsremarkplugins
173-
174-
[options-rehype-plugins]: /packages/mdx/#optionsrehypeplugins
172+
[processor-options]: /packages/mdx/#processoroptions
175173

176174
[architecture]: /packages/mdx/#architecture
177175

1 commit comments

Comments
 (1)

vercel[bot] commented on Oct 21, 2023

@vercel[bot]

Successfully deployed to the following URLs:

mdx – ./

mdx-mdx.vercel.app
mdx-git-main-mdx.vercel.app
mdxjs.com
v2.mdxjs.com

Please sign in to comment.