Skip to content

☔ Redesign and rework on Gatsby #201

Open
@veksen

Description

@veksen

Me and aerori have spent quite a bit of time working on an iteration of my last work, which can be seen in #140.

Aside from purely design, I would start an effort to build this on top of Gatsby. I have a small army of people that have voiced their interest to help. This could solve #143, by making it possible to index pages (avoid using anchors, and use an actual route/url).

Also, this could make it possible to incorporate the unofficial FP docs: https://github.com/jfmengels/lodash-fp-docs see: #192.

Original work started with a light theme, and then forked to a dark theme, to then completely abandon the light. I'm still not 100% happy with the way the information of the docs is presented. Somewhere from argument/return type feels a little weird to read.

I was not involved with the generation of the docs, so if I could get a little insight, it would help me a lot. How is it generated? In the best of worlds, I would use markdown data, for Gatsby, split by method, instead of the actual HTML we have now.

I can setup a temporary Netlify site while this is being implemented. I feel like this will move a lot quicker with actual development, leading to fruitful conversations, rather than continuing in Figma.

deployed here: https://lodash-gatsby.netlify.com/

Website:

lodash-website

Docs:

lodash-docs

Current progress:
repo: https://github.com/veksen/lodash.com/tree/gatsby
deployed on netlify: https://lodash-gatsby.netlify.com/

Rough draft of TODOs.

TODO general:

  • Extract colors/globals
  • Performance benchmarks
  • UX benchmarks
  • Accessibility benchmarks (aria, and colors)
  • General code review
  • Possibly go in beta before a full launch
  • Go over TODOs left in the code

TODO home:

  • Mobile
  • Rework hierarchy of the emphasized content:
Lodash v5 will stress ECMAScript modules (ESM) and Node use so browser examples will be secondary. The core build, full build, and custom builds will be deemphasized as well, leaving just the CDN link which can be reworded.

TODO docs:

  • Mobile
  • Improve types (mainly around static frontmatter groups/methods
  • Debug performance issue of rendering 295 elements (React-virtualized/React-window?)
  • Support aliases
  • Link methods to npm/source
  • Attach to the correct versions of Lodash (version selector)
  • Support clicking outside of version selector
  • Support generating docs other versions of Lodash
  • Double-check support for prototype methods, like _.prototype[Symbol.iterator], or _.chain (versus chain _.prototype.chain)
  • Support arrow navigation from input
  • Support focusing input (/)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions