Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs cleanup #97

Merged
merged 17 commits into from
Feb 23, 2022
Merged

Docs cleanup #97

merged 17 commits into from
Feb 23, 2022

Conversation

dvdherron
Copy link
Contributor

@dvdherron dvdherron commented Dec 13, 2021

Description

A lot of changes were made for the upcoming release. This PR tries to make sure that

  • All changes and additions have been documented and accounted for in the changelog(s)
  • Links are up to date and point to the correct places

Steps to test/reproduce

I've been scanning related closed PRs to get an overview of what has changed.

These are the ones where the bulk of the changes were made:

  1. Modules Core
  2. Modules Init
  3. Type
  4. Color
  5. Scale
  6. Layout
  7. Animate

Please explain how to best reproduce the issue and/or test the changes locally (including the pages/URLs/views/states to review).

@dvdherron
Copy link
Contributor Author

@dvdherron dvdherron changed the base branch from main to modules December 13, 2021 15:18
@dvdherron dvdherron marked this pull request as ready for review January 31, 2022 14:56
@dvdherron
Copy link
Contributor Author

@mirisuzanne @stacyk This is ready to start reviewing.

Some questions and known issues:

  • Do we want to remove all Eyeglass references? I think all mentions of it in the modules are removed, there are just references in the README and the Changelog.
  • Should the "Pre-Registered Functions" section show in the public docs? I left a question above about why that might not be working.
  • In the map-compile-with example (under tokens/compile) I'm not sure why the compiled result is returning null

If you you notice anything else missing or or weird just let me know

@mirisuzanne
Copy link
Member

mirisuzanne commented Jan 31, 2022

@dvdherron

Do we want to remove all Eyeglass references? I think all mentions of it in the modules are removed, there are just references in the README and the Changelog.

I don't know. We still support eyeglass in the npm package. It just seemed weird to highlight it, as one of many possible package managers/bundlers? Maybe there's some way to just note in one place that tools like eyeglass or webpack will impact the import path? @jgerigmeyer may have better ideas how/where to note that?

Should the "Pre-Registered Functions" section show in the public docs? I left a question above about why that might not be working.

I… can't figure this out. Nested folders shouldn't make any difference here, but yes - when I move the files, they suddenly appear in the docs. @jgerigmeyer any idea why that might be? We can move all the files, I'd just like to understand what's going on.

In the map-compile-with example (under tokens/compile) I'm not sure why the compiled result is returning null

  • The example runs a map through the color() function.
  • The color function looks for each of those color names in the tools.$colors map
  • The colors are not defined in tools.$colors, only in the example map

There are two possible solutions:

  • change $brand-colors to be tools.$colors, so that the color function can find them
  • pass in $brand-colors as a $source argument, the same way we do in compile-colors

Probably the first option is simplest?

If you you notice anything else missing or or weird just let me know

I'll do a full review here in a bit…

@jgerigmeyer
Copy link
Member

Do we want to remove all Eyeglass references? I think all mentions of it in the modules are removed, there are just references in the README and the Changelog.

I don't know. We still support eyeglass in the npm package. It just seemed weird to highlight it, as one of many possible package managers/bundlers? Maybe there's some way to just note in one place that tools like eyeglass or webpack will impact the import path? @jgerigmeyer may have better ideas how/where to note that?

I don't have a strong feeling about this. It seems like what's there isn't hurting anything (although the Eyeglass example in the README seems identical to the non-Eyeglass example), but I'm also fine removing the specifics since Eyeglass/Webpack users would likely know how to import npm packages. 🤷

Should the "Pre-Registered Functions" section show in the public docs? I left a question above about why that might not be working.

I… can't figure this out. Nested folders shouldn't make any difference here, but yes - when I move the files, they suddenly appear in the docs. @jgerigmeyer any idea why that might be? We can move all the files, I'd just like to understand what's going on.

Fixed in 2f0e2d1 (see https://medium.com/@jakubsynowiec/you-should-always-quote-your-globs-in-npm-scripts-621887a2a784).

Copy link
Member

@stacyk stacyk left a comment

Choose a reason for hiding this comment

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

@dvdherron Thanks for compiling all this info together. I left a few optional comments so I am going to mark this as approved on my end even though I know there is still some work that may need to be done based on the conversations taking place.

CHANGELOG.md Outdated
Comment on lines 50 to 51
browser normalization, is no longer included. We now recommend
using [CSS Remedy](https://github.com/jensimmons/cssremedy).
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to address the spacing issues that we are seeing on projects that are using this init-free version of Accoutrement?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it could be worth it to add a note mentioning the specific layout issues we've noticed, and/or a general note saying "this might break layouts" . . . I'll try to gather what we've noticed so far and add that in.

@dvdherron
Copy link
Contributor Author

@dvdherron

Do we want to remove all Eyeglass references? I think all mentions of it in the modules are removed, there are just references in the README and the Changelog.

I don't know. We still support eyeglass in the npm package. It just seemed weird to highlight it, as one of many possible package managers/bundlers? Maybe there's some way to just note in one place that tools like eyeglass or webpack will impact the import path? @jgerigmeyer may have better ideas how/where to note that?

Yeah, like Jonny said I guess having at least one mention of it doesn't hurt. Since we removed on all of the modules I just wanted to double check that we hadn't merely overlooked the remaining references.

Should the "Pre-Registered Functions" section show in the public docs? I left a question above about why that might not be working.

I… can't figure this out. Nested folders shouldn't make any difference here, but yes - when I move the files, they suddenly appear in the docs. @jgerigmeyer any idea why that might be? We can move all the files, I'd just like to understand what's going on.

Jonny's fix got these to show. I'll double check to make sure everything there is looking okay.

In the map-compile-with example (under tokens/compile) I'm not sure why the compiled result is returning null

* The example runs a map through the `color()` function.

* The color function looks for each of those color names in the `tools.$colors` map

* The colors are not defined in `tools.$colors`, only in the example map

There are two possible solutions:

* change `$brand-colors` to be `tools.$colors`, so that the color function can find them

* pass in `$brand-colors` as a `$source` argument, the same way we do in `compile-colors`

Probably the first option is simplest?

Makes sense. Cleaned this up and it's compiling correctly now.

If you you notice anything else missing or or weird just let me know

I'll do a full review here in a bit…

👍🏽

Copy link
Member

@mirisuzanne mirisuzanne left a comment

Choose a reason for hiding this comment

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

Wow, this is excellent. I left a few comments on small cleanup, but overall very thorough.

@dvdherron
Copy link
Contributor Author

@mirisuzanne I think these changes cover all of your review comments.

Copy link
Member

@mirisuzanne mirisuzanne left a comment

Choose a reason for hiding this comment

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

looks great!

@jgerigmeyer jgerigmeyer self-requested a review February 23, 2022 16:17
Copy link
Member

@jgerigmeyer jgerigmeyer left a comment

Choose a reason for hiding this comment

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

Two questions, but neither need to block this. 👍

@jgerigmeyer jgerigmeyer merged commit 89c6278 into modules Feb 23, 2022
@jgerigmeyer jgerigmeyer deleted the docs-cleanup branch February 23, 2022 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants