Commit Graph

26 Commits

Author SHA1 Message Date
Nicolás Quiroz 1b8ba9cf25 feat: add childrenIsAnImage util 2023-02-13 20:09:56 -03:00
Paul Wackerow cd96919edd
[website] Fix document commit date fetch (#26622)
fix github api commits request

refactor using new URL() object format for readability
2023-02-06 17:02:03 -03:00
Corwin Smith e60ec269ba
[UX SUGGESTION] Active section should be expanded on docs page load (#190)
* Add functionality to have left navbar section open on page load

* remove tracker as prop

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-19 16:11:31 -03:00
Nicolás Quiroz 378bd79997
Update src/utils/getLastModifiedDate.ts
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-16 17:36:35 -03:00
Nicolás Quiroz ae00338328
Update src/utils/fetchLatestReleaseVersionAndName.ts
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-16 17:36:16 -03:00
Nicolás Quiroz 55ef81be8d
Update src/utils/fetchLatestReleaseCommit.ts
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
2022-12-16 17:35:59 -03:00
Nicolás Quiroz 681aa89dcd chore: update gh api fetch 2022-12-16 16:47:01 -03:00
Nicolás Quiroz ec7773916b chore: update getLastModifiedDate util 2022-12-16 16:06:46 -03:00
Nicolás Quiroz 79893a58d3 Merge branch 'master' of github.com:ethereum/geth-website into fix-last-edit-timestamp 2022-12-16 15:49:26 -03:00
Corwin Smith 4aa8f214fb
[sorting] releases should be sorted by date, then by type (Geth, then Geth + tools) (#158)
* create constant for number of releases per os

* sort releases

* Apply suggestions from code review

* change requests

* fix build error

* cleanup

* fix: typo & prettier

* refactor sort function

* cleanup unnecessary changes

* fix: getReleaseArch case

* fix sort

* prettier

Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>
2022-12-15 12:27:49 -03:00
Nicolás Quiroz 01c6252754 feat: add getLastModifiedDate 2022-12-13 14:19:57 -03:00
Nicolás Quiroz 776616f45d chore: update utils 2022-12-12 19:44:42 -03:00
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
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 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
Paul Wackerow 887d30200d
Update getProgrammingLanguageName.ts 2022-11-28 11:15:19 -08:00
Paul Wackerow 575b1b507b
update theme styles 2022-11-23 12:50:44 -05:00
Paul Wackerow 3620978f69
Merge branch 'master' into markdown-styling 2022-11-23 12:07:26 -05:00
Paul Wackerow f6962d5b85
update code blocks 2022-11-21 18:19:32 -08:00
Paul Wackerow cfc24e4bf8
add `code` blocks styling 2022-11-21 15:26:37 -08:00
Corwin Smith 41932f6527 remove unused file 2022-11-16 22:46:47 -07:00
Corwin Smith 73454b0028 style code blocks 2022-11-16 22:36:25 -07:00
Corwin Smith 649918abe5 inline code styles 2022-11-16 21:37:01 -07:00
Nicolás Quiroz 5febc1e80d feat: add Layout component 2022-09-09 10:42:22 -03:00
Nicolás Quiroz 02c3c7e435 chore: Chakra theme setup 2022-09-08 18:26:35 -03:00