Skip to content

[WIP] Docs redesign - #7530

Merged
katydecorah merged 84 commits into
publisher-productionfrom
docs-redesign
Jan 25, 2019
Merged

katydecorah merged 84 commits into
publisher-productionfrom
docs-redesign

Conversation

@colleenmcginnis

Copy link
Copy Markdown
Contributor

This PR introduces largely cosmetic changes to the Mapbox GL JS docs. Changes include:

  • Making use of the shared /dr-ui React components, which introduces consistency between the layout in this documentation and other Mapbox docs sites.
  • Transitioning from base.css to assembly classes.
  • Adding an examples landing page (in the style of the Maps SDK for iOS and other examples pages).
  • Treating the Mapbox Style Specification as its own product in the product menu dropdown. (To do: make these changes in the /dr-ui repo.)

Off to @mollymerp for a preliminary review!

cc @mapbox/docs

@ryanhamley

Copy link
Copy Markdown
Contributor

I love this redesign! It's so bright and clean. Would it be possible to keep the search bar on the examples list? There's no rhyme or reason to how the examples are ordered so the search bar comes in handy quite often.

@colleenmcginnis

Copy link
Copy Markdown
Contributor Author

@ryanhamley yes! Thanks for flagging this. I actually added that existing search bar in my first few weeks at Mapbox 👶and I'm sure I could build something better now. This would also be useful for examples pages on other docs sites. I'll work on building a component we can use across repos.

@mollymerp mollymerp left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank youuuuu @colleenmcginnis this is awesome. I did a first pass here :)

A couple things I noticed:

image

  • page kinda jumps around when you expand/collapse API methods 🤔
  • this also happens in the old docs on Firefox, but it would be nice to fix if we can – the "Related" examples have weird alignment:

image

Comment thread docs/pages/overview/roadmap.js Resolved
Comment thread docs/pages/plugins.js Resolved
Comment thread docs/pages/plugins.js Resolved
Comment thread docs/pages/plugins.js Resolved
Comment thread docs/components/quickstart.js Resolved
Comment thread docs/pages/overview/index.md Resolved
Comment thread docs/components/page_shell.js Resolved
Comment thread docs/components/page_shell.js Resolved
Comment thread docs/components/page_shell.js Resolved
@mollymerp

Copy link
Copy Markdown
Contributor

also if you rebase this branch on master that should fix the failing unit tests.

@colleenmcginnis

Copy link
Copy Markdown
Contributor Author

@mollymerp this is ready for another look whenever you are!

@mollymerp mollymerp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!! I'm noticing a couple funky things that may be related to the dr-ui components or batfisk or something else idk
when I click from the GL JS to the Style Spec, the drop-down thinks I've selected both:

image

its also weirdly slow when I click on a sidebar item (300ms on the GL JS API reference, and over 1 second on the style-spec page) – looks mostly related to setting state and parsing markdown. Is the whole style-spec being stored as state? I could imaging that diffing might take a long time 💭

image

I didn't have time to go through fully today, but thought I'd post my comments so far so I don't block ya. I'll come back to this tomorrow!

Comment thread docs/components/api-item-member.js Resolved
Comment thread docs/components/api-item-member.js Resolved
{section.license && <div>License: {section.license}</div>}
{section.author && <div>Author: {section.author}</div>}
{section.copyright && <div>Copyright: {section.copyright}</div>}
{section.since && <div>Since: {section.since}</div>}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what are these parts for? I'm not seeing them when I run the page

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@colleenmcginnis

Copy link
Copy Markdown
Contributor Author

When I click from the GL JS to the Style Spec, the drop-down thinks I've selected both:

Ya I noticed that too. It will have to be addressed in /dr-ui. 😕

@mollymerp mollymerp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seeing a couple small things on mobile:
text wrap is working for the option name column, but not the description column
img_77ff76c1eea1-1

lil floating white arrow over GL JS when opening the dropdown:
img_ed9e2c61fbe1-1

Otherwise this looks good to me! going to tag in one more reviewing from the GL team because this is such a large PR.

Comment thread batfish.config.js
.map(({frontMatter}) => frontMatter);
.map(example => {
return {
path: example.path,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does pathname not work for the path here (i.e. why do you need to transform the frontmatter)?

@katydecorah

katydecorah commented Jan 25, 2019 •

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants