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

add "fixture flowchart" to docs #4440

Merged
merged 2 commits into from
Oct 12, 2020
Merged

Conversation

boneskull
Copy link
Contributor

  • also add some references to global fixtures

@Munter You know more about web stuff than I do. Is this a reasonable way to use an SVG? In particular, I wanted to make portions of it clickable, and couldn't figure out how to do that without embedding the <svg> into the page.

@boneskull boneskull added area: documentation anything involving docs or mochajs.org semver-patch implementation requires increase of "patch" version number; "bug fixes" labels Sep 9, 2020
@boneskull boneskull self-assigned this Sep 9, 2020
@coveralls
Copy link

coveralls commented Sep 9, 2020

Coverage Status

Coverage increased (+0.02%) to 94.078% when pulling 4fb2bb7 on boneskull/global-fixture-updates into f24f190 on master.

also add some references to global fixtures

Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
@boneskull boneskull force-pushed the boneskull/global-fixture-updates branch from 4c72600 to 7b94d86 Compare October 9, 2020 00:09
@boneskull
Copy link
Contributor Author

OK, I think I've addressed the responsiveness issue. I've also added a assets/mocha-fixture-wizard.sketch file to the repo

Copy link
Contributor

@outsideris outsideris left a comment

Choose a reason for hiding this comment

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

Including SVG is broken.

This flowchart will help you decide which of [hooks], [root hook plugins] or
[global fixtures] you should use.

{% include fixture-wizard.html %}
Copy link
Contributor

Choose a reason for hiding this comment

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

Including HTML is not handled properly and SVG is broken.
I don't know why even I checked it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohh I know what happened. prettier broke it. I am not sure if this is a bug in prettier or liquid or eleventy, but when prettier reformats it, the svg breaks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, wrapping the svg in a div works. I think this is an 11ty bug

Copy link
Contributor Author

Choose a reason for hiding this comment

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

- added source `.sketch` file to repo
- enabled skip of supporter image download in 11ty via env var `MOCHA_DOCS_SKIP_IMAGE_DOWNLOAD` for faster iteration
- made the links underline on hover

Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
@boneskull boneskull force-pushed the boneskull/global-fixture-updates branch from 7b94d86 to 4fb2bb7 Compare October 9, 2020 18:56
@boneskull boneskull requested a review from outsideris October 9, 2020 21:25
@boneskull boneskull merged commit 478ca6a into master Oct 12, 2020
@boneskull boneskull added this to the v8.2.0 milestone Oct 12, 2020
@boneskull boneskull added semver-minor implementation requires increase of "minor" version number; "features" and removed semver-patch implementation requires increase of "patch" version number; "bug fixes" labels Oct 12, 2020
@boneskull
Copy link
Contributor Author

(semver minor b/c it references other stuff that will land in a minor)

@boneskull boneskull deleted the boneskull/global-fixture-updates branch October 12, 2020 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: documentation anything involving docs or mochajs.org semver-minor implementation requires increase of "minor" version number; "features"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants