go-ethereum/src/utils
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
..
compareReleasesFn.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
fetchLatestReleaseCommit.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
fetchLatestReleaseVersionAndName.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
fetchXMLData.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getChecksum.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getFileList.ts Create docs navigation sidebar (#40) 2022-11-30 21:06:59 -03:00
getKebabCaseFromName.ts Markdown header margin fix [Fixes #83] (#120) 2022-12-06 17:04:09 -03:00
getLatestBinaryURL.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getParsedDate.ts add lastModified date (#68) 2022-11-30 11:02:08 -03:00
getProgrammingLanguageName.ts Update getProgrammingLanguageName.ts 2022-11-28 11:15:19 -08:00
getReleaseArch.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getReleaseCommitHash.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getReleaseCommitURL.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getReleaseKind.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getReleaseName.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getReleaseSize.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getReleaseURL.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getSignatureURL.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
getSortedReleases.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
index.ts Markdown header margin fix [Fixes #83] (#120) 2022-12-06 17:04:09 -03:00
mapReleasesData.ts feat: All releases downloads (#46) 2022-11-29 15:29:52 -03:00
parseHeadingId.ts Markdown header margin fix [Fixes #83] (#120) 2022-12-06 17:04:09 -03:00