PolymerElements / iron-component-page

A reusable landing page for elements
36 stars 32 forks source link

Adding source along with docs and demo option #103

Open a1626 opened 8 years ago

a1626 commented 8 years ago

Description

Can we not have an option for user to add source link to his file along with demo in his documentation. Something like @source

alvaropinot commented 7 years ago

@source is the file it self, isn't it? Or do you mean the repo? :) Even though, adding the link or the tab to show the source code at the component-page could be great :)

a1626 commented 7 years ago

Yes, i do mean repo.

alvaropinot commented 7 years ago

This could be extracted from the bower.json or package.json also, BTW should it belong to the file it self? It could easily get redundant for repos with multiple elements. Probably this should be managed by a catalog, don't know, just thinking out loud. What do you think @a1626? :)

But again a source code view would be awesome :P

a1626 commented 7 years ago

The idea behind keeping it in docs is that user does not has to search for repo anywhere. As for multiple files in a repo each element can have a link to it's own file. That way it will work for repos with multiple element's also.