iron-component-page icon indicating copy to clipboard operation
iron-component-page copied to clipboard

README.md tab

Open BLamy opened this issue 10 years ago • 9 comments

(In addition to a test tab) I would really like to see yet another tab added for the README.md.

With some very small changes I think iron-component-page could actually be polymer's most powerful developer tool. Typically, in my elements readme file I put a roadmap, just a simple checklist so everyone know what the planned evolution for a particular element is.

I think these 4 tabs would really give every developer a good bang for their buck.

  1. Road map Planning
  2. API docs and goals
  3. Demos and examples.
  4. Testing

BLamy avatar Nov 30 '15 22:11 BLamy

+1 /sub

GeoloeG-IsT avatar Nov 30 '15 22:11 GeoloeG-IsT

(also fix linting an element through the base index.html)

GeoloeG-IsT avatar Nov 30 '15 22:11 GeoloeG-IsT

Right now, README.md is automatically generated from the docs inside the mail html file, which is the same thing that iron-component-page renders, so displaying it on its own wouldn't make a difference.

notwaldorf avatar Nov 30 '15 22:11 notwaldorf

@MeTaNoV I like the idea of linting but my next suggestion was going to be integrating iron-component-page directly into something like atom. (I know polymer has current issues atom's CSP). But if this where done I could be editing my file on the leftside of my editor and have a markdown preview-like window open on my right side with these 4 different views for the currently open element.

I would prefer to see that and then use the polylint plugin I already have for linting.

BLamy avatar Nov 30 '15 22:11 BLamy

jup, I am still working with Sublime... I have to do a switch to Atom somehow in the near future, but I prefer concentrating my effort on finishing my set of components first! :)

GeoloeG-IsT avatar Nov 30 '15 22:11 GeoloeG-IsT

@BLamy there are plans to rewrite this element to enhance its core functionalities, but I'm not sure why roadmap, planning & testing should be put in there.

blasten avatar Nov 30 '15 22:11 blasten

@blasten I think I went a little off topic in my OP in an attempt to provide a use case. I wasn't suggesting a tab for roadmaps & planning. I was saying we should add a tab for the markdown rendering of the readme.md file.

BLamy avatar Dec 01 '15 04:12 BLamy

@BLamy As I mentioned before, the readme.md file is an exact copy of the docs in the main element's html file (or, if there are multiple, an aggregation of all the elements' html files), and it's automatically generated by a bot. It doesn't contain any additional information from what iron-component-page is already displaying.

notwaldorf avatar Dec 01 '15 05:12 notwaldorf

@notwaldorf That is a part of the google's build process. It is also opinionated that iron-component-page is only used inside of google's catalogue (since it has that link to github). The majority of custom elements I work with are written by coworkers or myself where iron-component-page runs as a stand alone (And are not published on github).

We like to put important notes in the readme file, and if there was a simple tab with the markdown rendering of the readme.md file it would really enhance our productivity. I don't really think that it's all that uncommon to utilize the readme file even if google doesn't.

BLamy avatar Dec 01 '15 15:12 BLamy