Commit graph

148 commits

Author SHA1 Message Date
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
Paul Wackerow
892c743b78
Use long month formatting for last edit date [Fixes #86] (#121)
* use long month formatting for last edit date

* last -> Last

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

Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>
2022-12-06 10:43:12 -03:00
Paul Wackerow
bbd4a31bad
add max width of 100% to md content on mobile (#130) 2022-12-06 10:35:53 -03:00
Corwin Smith
26673626d2
Remove color style for list items, and change first-child to first-of-type based on console error for SSR (#127) 2022-12-05 17:17:11 -03:00
Paul Wackerow
04adbb749b
Merge pull request #116 from ethereum/display-12-releases
fix: show 2 latest releases for linux
2022-12-05 21:00:48 +01:00
Paul Wackerow
94cb14b978
Add gap between md content and right nav [Fixes #77] (#110)
* add gap between md content and right nav

* shorten max width of right nav divider

* make DocumentNav width responsive

Existing fixed width was too large after the 2rem of padding was added. Simply making it more narrow made it unnecessarily small on larger screen sizes. Clamp sets a min of chakra-size-40, max of chakra-size-58, while targeting an eighth of the screen width.
2022-12-05 14:13:26 -03:00
Nicolás Quiroz
467d139bb0 hotfix: button width 2022-12-05 13:42:09 -03:00
Nicolás Quiroz
e25b87f32d
fix: remove Showing... count message (#118)
* fix: remove Showing... count message

* Update src/pages/downloads.tsx

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>

* Update src/pages/downloads.tsx

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-05 13:39:12 -03:00
Nicolás Quiroz
0bddab847d
fix: Show older releases button width on mobile (#125) 2022-12-05 13:28:34 -03:00
Paul Wackerow
367e7c6e03
remove any margin on first MD item (#109)
[Fixes #75, issue when articles start with an H2 had extra margin between the H1 section and the starting H2.
2022-12-02 13:56:44 -03:00
Nicolás Quiroz
50bfc2053a fix: show 2 latest releases for linux 2022-12-02 13:18:00 -03:00
Nicolás Quiroz
f2ae1511e5 fix: downloads page borders & margins 2022-12-01 16:46:42 -03:00
Joshua
27769604a3 Fix Ethereum and GitHub typos 2022-12-01 11:20:38 +00:00
Corwin Smith
0b9ff8b1e6
Create docs navigation sidebar (#40)
* crawl files and create directory tree for sidebar

* dropdown

* Working on dropdown links and styling

* setup header nav

* Styles

* DocumentNav sidebar done

* wrap up header sidebar

* setup top level nav

* update root level data and fix link bug

* doc links yaml

* nav links for docs

* remove character

* prettier

* fix build error

* MDX style

* Update src/components/UI/docs/DocsLinks.tsx

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>

* Abstract LinksList component into its own file

* change requests

* AccordionButton styles

* AccordionButton styled

* fix broken links

* prettier

* prettier

* fix broken default code snippet

* fix accordion spacing

* fix gap at top of DocsNav lg

* fix but of persistent header link

* remove test content

* setup Notes and prettier

* rehype

* Note component

* Note font styling

* convert old notes to use component

* Breadcrumb cleanup and prettier

* MDXComponents -> MDComponent and documentation

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-11-30 21:06:59 -03:00
Corwin Smith
d4c57f9174
add lastModified date (#68)
* add lastModified date

* prettier

* fix type errors on build

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-11-30 11:02:08 -03:00
Nicolás Quiroz
b04fd9206f
feat: OpenPGP Signatures data (#67)
* chore: remove test data

* chore: update constants

* chore: update types

* chore: update code-bg dark color

* feat: use real data for OpenPGP Signatures table

* chore: remove unused types

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-11-30 10:37:59 -03:00
Nicolás Quiroz
520d48f119
chore: update SpecificVersionsSection component layout to match homepage (#64)
* chore: update SpecificVersionsSection component layout to match homepage

* chore: remove non-required repeat function
2022-11-29 15:47:58 -03:00
Nicolás Quiroz
91dd04faa2
feat: All releases downloads (#46)
* chore: update constants

* feat: add releases data utils

* chore: add fast-xml-parser

* chore: update types

* feat: fetch & parse all releases data

* chore: update utils

* wip: use real data on DataTable

* chore: update yarn.lock

* fix: getReleaseCommitHash

* feat: filter data per downloads tab

* chore: update DownloadsTable

* chore: update DownloadsTable Props

* fix: getReleaseArch.ts

* feat: add fetchXMLData util

* feat: add fetchLatestReleaseCommit util

* feat: add getSortedReleases util

* chore: comment wip primary release feature

* fix: fetchXMLData

* chore: add netlify.toml

* fix: total number of releases count

* fix: center showing latest releases text and use smaller font

* chore: prettier

* chore: update textStyles

* fix: merge conflicts
2022-11-29 15:29:52 -03:00
Nicolás Quiroz
d504f047ab
fix: dark mode body colors (#61)
* chore: update textStyles

* markdown text color styles

Co-authored-by: Corwin Smith <cssmittys@gmail.com>
2022-11-29 09:44:53 -03:00
Paul Wackerow
f66ca930f5
linting 2022-11-28 09:39:07 -08:00
Paul Wackerow
95ab538776
Merge branch 'master' into markdown-styling 2022-11-28 09:37:35 -08:00
Nicolás Quiroz
2c226f5c41 chore: removes non-required param 2022-11-25 17:51:14 -03:00
Paul Wackerow
3620978f69
Merge branch 'master' into markdown-styling 2022-11-23 12:07:26 -05:00
Corwin Smith
790cf04347
Add breadcrumbs to docs (#37)
* Add breadcrumbs to docs

* change BreadcrumbLink to NextLink

* Update src/components/docs/Breadcrumbs.tsx

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>

* Update src/components/docs/Breadcrumbs.tsx

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-11-23 11:14:19 -03:00
Paul Wackerow
0c02294710
Merge branch 'master' into markdown-styling 2022-11-22 12:43:02 -08:00
Paul Wackerow
b382a5ad1a
update link and header styling 2022-11-21 18:21:05 -08:00
Paul Wackerow
963c1b1669
yarn add remark-gfm chakra-ui-markdown-renderer 2022-11-21 18:17:03 -08:00
Corwin Smith
6ff05ed817
PageMetaData component (#30)
* create PageMetaData component

* small clean up

* add page descriptions

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-11-21 21:53:51 -03:00
Paul Wackerow
ebdb7a852e
update MDX header styles 2022-11-21 15:25:15 -08:00
Corwin Smith
ee03bd378e Merge branch 'master' into setupDocs 2022-11-17 12:24:20 -07:00
Nicolás Quiroz
e453da26d0
Merge pull request #31 from wackerow/dark-mode
Dark mode
2022-11-17 15:46:00 -03:00
Joe
66f7497339 update grafana page 2022-11-17 11:07:27 +00:00
Paul Wackerow
87665f0e35
Merge branch 'master' into dark-mode 2022-11-16 22:15:54 -08:00
Corwin Smith
d39c1fde78 Merge branch 'master' into setupDocs 2022-11-16 22:38:42 -07:00
Nicolás Quiroz
832ad6bab0 chore: reduce release name & version to a single request 2022-11-17 00:14:43 -03:00
Nicolás Quiroz
5d61fc3219 Merge branch 'master' of github.com:ethereum/geth-website into latest-releases-downloads 2022-11-16 21:24:24 -03:00
Paul Wackerow
8e6023c60b
fix, switch to correct gropher 2022-11-16 15:55:55 -08:00
Paul Wackerow
4e25c6bf94
linting 2022-11-16 15:06:56 -08:00
Nicolás Quiroz
d7ed9e4d5b chore: move urls to constants 2022-11-16 19:52:03 -03:00
Paul Wackerow
caaedf0335
refactor to Section components to accept SVG prop 2022-11-16 13:09:38 -08:00
Paul Wackerow
d791e0a1a3
replace downloads images with SVG components 2022-11-16 12:59:39 -08:00
Paul Wackerow
0bbb61cfb2
replace homepage images with SVG components
allows color of SVGs to be dynamically styled based on color mode choice
2022-11-16 12:14:48 -08:00
Nicolás Quiroz
83a2c81290 feat: add latest releases downloads logic 2022-11-16 16:01:23 -03:00
Paul Wackerow
c71e2e2e23
refactor colors to use semantic tokens 2022-11-15 18:00:31 -08:00
Corwin Smith
d096d10aba add main 2022-11-15 16:05:42 -07:00
Corwin Smith
14900bcdfa fix build issues 2022-11-13 22:40:42 -07:00
Corwin Smith
f46bdc3e1a test 2022-11-13 22:33:52 -07:00
Corwin Smith
2ccb3e5bc6 test 2022-11-13 22:28:00 -07:00
Corwin Smith
10a0a3680a setup template to render for docs 2022-11-13 22:03:06 -07:00
Corwin Smith
99dfffb820 prettier 2022-11-09 14:32:37 -07:00