@primer/doctocat-nextjs 0.0.2-rc.9883c11 → 0.0.2-rc.ac6ab68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
- [#4](https://github.com/primer/doctocat-nextjs/pull/4) [`4f28982`](https://github.com/primer/doctocat-nextjs/commit/4f28982e327e75f199f28fad987f1e827deafeb2) Thanks [@joseph-lozano](https://github.com/joseph-lozano)! - Wrap links with Next's Link component
|
|
8
8
|
|
|
9
|
+
- [`6f21970`](https://github.com/primer/doctocat-nextjs/commit/6f21970c74f7635be89fc4cd20376d7fe5ca35e7) Thanks [@rezrah](https://github.com/rezrah)! - Switch hero image order with description and reduce `h2` block start margin
|
|
10
|
+
|
|
9
11
|
- [#6](https://github.com/primer/doctocat-nextjs/pull/6) [`afd4e17`](https://github.com/primer/doctocat-nextjs/commit/afd4e1762f6294a14942d415c693319a874cd3fb) Thanks [@rezrah](https://github.com/rezrah)! - - Add MDX to HTML overrides mechanism and apply to headings and anchors
|
|
10
12
|
|
|
11
13
|
- Added anchor links to headings to match current functionality on primer.style
|
|
@@ -135,16 +135,16 @@ export function Theme({children, pageOpts}: NextraThemeLayoutProps) {
|
|
|
135
135
|
{frontMatter.title}
|
|
136
136
|
</Heading>
|
|
137
137
|
)}
|
|
138
|
-
{frontMatter.image && (
|
|
139
|
-
<Box paddingBlockEnd={16}>
|
|
140
|
-
<Hero.Image src={frontMatter.image} alt={frontMatter['image-alt']} />
|
|
141
|
-
</Box>
|
|
142
|
-
)}
|
|
143
138
|
{frontMatter.description && (
|
|
144
139
|
<Text as="p" variant="muted" size="300">
|
|
145
140
|
{frontMatter.description}
|
|
146
141
|
</Text>
|
|
147
142
|
)}
|
|
143
|
+
{frontMatter.image && (
|
|
144
|
+
<Box paddingBlockStart={16}>
|
|
145
|
+
<Hero.Image src={frontMatter.image} alt={frontMatter['image-alt']} />
|
|
146
|
+
</Box>
|
|
147
|
+
)}
|
|
148
148
|
{frontMatter['action-1-text'] && (
|
|
149
149
|
<Box paddingBlockStart={16}>
|
|
150
150
|
<ButtonGroup>
|
package/css/prose.module.css
CHANGED
|
@@ -129,15 +129,12 @@
|
|
|
129
129
|
letter-spacing: var(--brand-heading-letterSpacing-300);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
.Prose :is(h1, h2, h3) {
|
|
133
|
-
--spacing: var(--base-size-64);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
132
|
.Prose :is(h1) {
|
|
133
|
+
--spacing: var(--base-size-64);
|
|
137
134
|
margin-block-end: var(--spacing);
|
|
138
135
|
}
|
|
139
136
|
|
|
140
|
-
.Prose :is(
|
|
137
|
+
.Prose :is(h2, h3) + * {
|
|
141
138
|
--spacing: var(--base-size-40);
|
|
142
139
|
}
|
|
143
140
|
|