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

chore(infrastructure): automate method description table in README.md #4873

Merged
merged 68 commits into from
Jul 23, 2019

Conversation

moog16
Copy link
Contributor

@moog16 moog16 commented Jul 3, 2019

});
```

<!-- %component-foundation-adapter-spacer% -->
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This README_BASE.md file is copied from drawer/README.md, with the table removed from here.

@moog16
Copy link
Contributor Author

moog16 commented Jul 3, 2019

Ready for rereview

@codecov-io
Copy link

codecov-io commented Jul 3, 2019

Codecov Report

Merging #4873 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4873   +/-   ##
=======================================
  Coverage   98.83%   98.83%           
=======================================
  Files         122      122           
  Lines        5819     5819           
  Branches      762      762           
=======================================
  Hits         5751     5751           
  Misses         67       67           
  Partials        1        1
Impacted Files Coverage Δ
packages/mdc-drawer/dismissible/foundation.ts 100% <ø> (ø) ⬆️
packages/mdc-drawer/component.ts 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b7e616...4811deb. Read the comment docs.

@mdc-web-bot
Copy link
Collaborator

All 699 screenshot tests passed for commit 589fa09 vs. master! 💯🎉

@moog16
Copy link
Contributor Author

moog16 commented Jul 17, 2019

@abhiomkar ready for re-review!

@mdc-web-bot
Copy link
Collaborator

All 708 screenshot tests passed for commit da11b7c vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 708 screenshot tests passed for commit b1fb723 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 708 screenshot tests passed for commit 07cc536 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 708 screenshot tests passed for commit b1d92b1 vs. master! 💯🎉

.filter((module) => module.methods.length || module.properties.length || module.events.length)
.sort(this.sortByModuleType);
const apiMarkdownTable =
this.templateFunction({modules: componentModules, showFrameworkUsage: true}) +
Copy link
Collaborator

Choose a reason for hiding this comment

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

wouldn't it be easier if template function takes all template data it needs at once?

this.templateFunction({
  componentModules,
  nonComponentModules,
});

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well it is the same template, we'd create another template (partial) to combine these together. I don't think it matters either way works. What would you like?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think having a single template as a whole makes it easier to reformat later. The current implementation we are not fully leveraging the use of templating engine, we concat two strings generated separately in the code instead.

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 sounds good - i'll make the change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated!

@mdc-web-bot
Copy link
Collaborator

All 708 screenshot tests passed for commit 989fd93 vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 708 screenshot tests passed for commit c031b96 vs. master! 💯🎉

scripts/documentation/tsdoc.ts Outdated Show resolved Hide resolved
scripts/documentation/tsdoc.ts Outdated Show resolved Hide resolved
@mdc-web-bot
Copy link
Collaborator

All 708 screenshot tests passed for commit 47a886d vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 708 screenshot tests passed for commit 23dcdcd vs. master! 💯🎉

@mdc-web-bot
Copy link
Collaborator

All 708 screenshot tests passed for commit 4811deb vs. master! 💯🎉

@moog16 moog16 merged commit 82bd8e7 into master Jul 23, 2019
@delete-merged-branch delete-merged-branch bot deleted the feat/automate-ts-doc branch July 23, 2019 20:16
@moog16 moog16 restored the feat/automate-ts-doc branch July 23, 2019 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infrastructure for documentation automation
5 participants