go-ethereum/src/pages
Paul Wackerow 56b9963afd
Markdown header margin fix [Fixes #83] (#120)
* expand parseHeadingId

Will produce a kebab-case heading ID from string if none explicitly declared in the markdown. Always returns an object with the children, title and headingId.

* remove redundant code from MDComponents.tsx

parseHeadingIds now always returns an object with an ID, removing need for conditionals here

* Use Box instead of flex Stack for MDX content

Allows stacked vertical margins to properly collapse into each other

* fix: h2 top margin to 3rem on mobile

* remove unneeded line

* extract and rename getKebabCaseFromName util fn

* Update src/pages/[...slug].tsx

* Update src/utils/parseHeadingId.ts

Co-authored-by: Corwin Smith <cssmittys@gmail.com>

* move constant inside function

make variable name all caps as a string constant

* clean up utils/index.ts to abc order

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
2022-12-06 17:04:09 -03:00
..
api chore: Chakra theme setup 2022-09-08 18:26:35 -03:00
[...slug].tsx Markdown header margin fix [Fixes #83] (#120) 2022-12-06 17:04:09 -03:00
_app.tsx Create docs navigation sidebar (#40) 2022-11-30 21:06:59 -03:00
_document.tsx chore: update _document 2022-09-30 10:27:47 -03:00
about.mdx feat: add Layout component 2022-09-09 10:42:22 -03:00
downloads.tsx Merge pull request #116 from ethereum/display-12-releases 2022-12-05 21:00:48 +01:00
index.tsx Fix Ethereum and GitHub typos 2022-12-01 11:20:38 +00:00