Giter Club home page Giter Club logo

Comments (7)

webpro avatar webpro commented on July 28, 2024

Thanks for checking it out, @davidhund. I like your idea and I'm happy to accept a PR for this,or make the change myself soon. Have some ideas already :-)

from component-styleguide.

webpro avatar webpro commented on July 28, 2024

Hey @davidhund, just released v1.2.0 which should contain what you proposed. It now reads all templates from the root and all subfolders, and creates menu items for each. The "root" or "generic" components menu item name can be configured with rootName.

It does not support deeply nested folders (yet), just child folders within the /components folder.

Let me know if it works for you. Thanks again for the idea.

from component-styleguide.

davidhund avatar davidhund commented on July 28, 2024

Just playing around it seems to do exactly what I wanted. Awesome work.
It's simple and flexible and does not force me in a specific workflow/process.

Now to find a way to extract the HTML markup from my (s)CSS comments (much like KSS) so that the markup is not disconnected from the 'source' CSS :)

from component-styleguide.

webpro avatar webpro commented on July 28, 2024

Thanks for the feedback! Let me know if you have any more ideas.

(Regarding the CSS parsing, not sure. The simplest method that could work might be to use a CSS parser and have it write the comments from the AST to HTML files in the "components" dir.)

from component-styleguide.

davidhund avatar davidhund commented on July 28, 2024

Yeah. I am really looking forward to a standardized CSS Comment(!) Parser.
https://twitter.com/valuedstandards/status/582504525455560704

Something like https://github.com/darcyclarke/DSS could work. This would prevent us from having to maintain markup in multiple places...

from component-styleguide.

webpro avatar webpro commented on July 28, 2024

Ah DSS looks nice. Totally JSDoc-y and useful with those @name and @markup tags etc.

from component-styleguide.

webpro avatar webpro commented on July 28, 2024

Closing this, as the initial issue is taken care of.

from component-styleguide.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.