Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
Seven theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Oct 2013 at 15:04 UTC
Updated:
30 Oct 2014 at 08:24 UTC
Jump to comment: Most recent
Comments
Comment #1
cosmicdreams commentedOne solution that I've seen FrontEnd Developers (FEDs) use is Hologram
http://trulia.github.io/hologram/
It allows you to document code like we have for our docblocks in a way that produces a visual style guide for pages and components. I wish I could show you screenshots of how developers are using it for the project I'm on right now. It looks pretty awesome.
The FEDs say it works well with Grunt to produce both the style guide and the compiled css (which does not include all the extra comments)
Comment #1.0
lewisnymanAdded more examples
Comment #1.1
lewisnymanUpdated issue summary.
Comment #2
lewisnymanI'm warming to the idea of keeping all of our documentation in our CSS files in the style of Hologram/KSS. It matches how the rest of Drupal is documented and it's not specific to any particular display method. Any site or program with access to the source code would be able to parse the documentation.
Comment #3
lewisnymanComment #4
cosmicdreams commentedYou can add "holograph to that list:
https://github.com/sumpygump/holograph
(written by a colleague of mine)
Holograph is hologram ported for PHP.
Comment #5
lewisnymanComment #6
lewisnymanComment #7
lewisnymanComment #8
lewisnymanLooks like there's also a KSS parser for PHP.
I'm not sure which one looks better but interestingly there's a bundle that integrated with Twig :-)
Comment #9
lewisnymanComment #10
lewisnymanSeven documentation needs to start implementation now... I've picked a direction to go with here: #2293627: [meta] Document Human Interface Guidelines and make Seven style guide
I'll leave this issue open for now incase any more discussion comes up.
Comment #11
sqndr commentedI like good documentation and think it's really important. Going to take a look at #2293627 as well. Let's do this!
Really like this way of documenting: http://warpspire.com/posts/kss/.
Haha, feel like we have to document how we're going to be documenting the css? ;)
Comment #12
Bojhan commentedThis has been discussed by Lewis and Bojhan at the Amsterdam sprint. It looks like we are moving forward with the CSS documentation standard, therefor closing this issue. To centralise further discussion.
#2293627: [meta] Document Human Interface Guidelines and make Seven style guide
Comment #13
lewisnyman