Commit graph

29 commits

Author SHA1 Message Date
Corwin Smith
42248dcedf
[bug] right side navigation menu is not being rendered ok in some cases (#146)
* dont render DocumentNav if there are no headings on a page

* Fix layout of elements in [...slug].tsx

* fix header

* fix span overflow

* prettier

* fix: missing white-space on pre tags

* fix: parsedHeadings bug

Co-authored-by: Nicolás Quiroz <nh.quiroz@gmail.com>
2022-12-13 10:23:26 -03:00
Corwin Smith
31233f1433 prettier 2022-12-12 18:57:57 -07:00
Corwin Smith
83c67a88a1 Merge branch 'master' into h1StyleFix 2022-12-12 18:39:01 -07:00
Paul Wackerow
266b4a3ec4
Accessibility (a11y) clean up (#138)
* Add hidden skip to content for keyboard a11y

* update green.900 value

used for button background; increases contrast ratio

* adjusts light primary to green.700 for contrast

Improves contrast ratio when paired with yellow.50 and removes browser a11y warnings

* add aria-labels

* add lang to html element

* fix improperly ordered headers

We should not be using headers (h4/h5) for these aside navigations. Updated to remove browser warnings.

* add remaining aria-label

* add aria-label for mobile menu
2022-12-12 20:34:10 -03:00
Corwin Smith
4ca9d12193 update fontSize for h1 2022-12-08 22:52:04 -07:00
Nicolás Quiroz
026757a5db chore: prettier 2022-12-07 18:41:50 -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
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
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
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
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
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
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