I've been reading lot's of documentation here on Drupal.org to try and learn about Classy; how it is structured, meant to be used, etc., when I realized that it didn't have a README.txt file. I noticed that Stark ships with one that is actually quite useful. I think it might be useful to have something similar packaged within Classy. A simple README explaining that Classy is a base theme meant to be leveraged by other sub-themes. Linking to relevant documentation on D.O might also be helpful. I'm attaching a first pass at how this might look.
| Comment | File | Size | Author |
|---|---|---|---|
| #110 | add_readme_txt_to-2575387-110.patch | 724 bytes | ajits |
| #108 | interdiff.txt | 593 bytes | ajits |
| #103 | add_readme_txt_to-2575387-103.patch | 724 bytes | star-szr |
| #101 | interdiff.txt | 1007 bytes | star-szr |
| #101 | add_readme_txt_to-2575387-101.patch | 895 bytes | star-szr |
Comments
Comment #2
chrisfree commentedComment #3
anil280988 commentedFor Read Me, why other files need to be modified?
Comment #4
chrisfree commentedWhoops! I'll fix.
Comment #5
r_sharma08 commentedI am not able to apply this patch, error details attached.
Comment #6
r_sharma08 commentedNow README.txt created, please review.
Comment #7
r_sharma08 commentedComment #8
r_sharma08 commentedComment #10
ajitsCan this be broken into 2 lines so that line does not have more than 80 characters?
Same thing here..
Comment #11
r_sharma08 commentedComment #12
r_sharma08 commentedComment #14
ajitsAlmost there :) Few nitpicks below
Trailing space should be removed.
Trailing space again.
Trailing space again. This is the last :)
Comment #15
anil280988 commentedMade the changes.
Comment #16
anil280988 commentedSorry forgot to add patch.
Comment #17
chrisfree commentedLooks good to me! Thanks for picking up my slack, anil280988! I'd vote to move this to RTBC.
Comment #18
anil280988 commentedThanks @Chrisfree
Comment #19
ajitsComment #22
ajitsComment #24
chrisfree commentedHere is an updated patch. I found one issue with word wrapping in the most recent patch. Hopefully this patch clears testing as well.
Comment #25
chrisfree commentedWhoops, last patch didn't have the line break change. Here's the right patch:
Comment #26
snehi commented@chrisfree,
Thanks for the patch. It looks fine to me.
It is RTBC now.
Comment #28
davidhernandezThis might need some rewording. It seems to imply that Classy was added specifically to serve as a base for Bartik and Seven, which is not the case.
This sentence needs work. The "etc" in particular should probably be removed.
In general, is the intention here to simply describe or provide some instruction. It would probably help to include information on how to use Classy, ie. adding the setting in the theme's info file. Also, instead of linking to the change record it is probably better to link to the drupal.org theming guide page. https://www.drupal.org/theme-guide/8/classy
Comment #29
anil280988 commentedHi davidhernandez,
1. Classy is used as a base for Bartik and Seven. So its not wrong,but could we use something like this.
Though it seems classy was created for this( https://www.drupal.org/node/2289511 ).
Made changes for #2 and provide link to theming guide page.
Comment #30
star-szrAgreed with @davidhernandez the fact that it's used by Bartik and Seven is not really the most relevant thing here. We should be describing what makes Classy different and why people would use it over Stable.
Comment #31
jhodgdonAgreed. We should lead off saying Classy is a good base theme if you want a standard set of classes added to your divs etc. and contrast that with Stable. Especially now that we have a README for Stable. (having just committed #2612618: Add README.txt file to Stable explain its role as a backwards compatibility layer)
Comment #32
davidhernandezComment #33
drupal.ninja03 commentedHi,
Please review the patch file I have uploaded. Thanks.
Comment #35
drupal.ninja03 commentedHi,
Recreated patch and added interdiff file.
Comment #36
hussainwebI am trying to make it a bit clearer (hopefully) and fixing some errors.
Comment #37
hussainwebSmall edit.
Comment #38
ajitsThe "in your theme" part seems to be redundant.
I think it could be removed, and just use
Comment #39
hussainwebGood point.
Comment #40
star-szr"use Classy as your base theme" would be better here I think.
IMO it might be nice here to:
Perhaps be a bit clearer about what we mean by "ignore classy", and/or spell out that Stable is the alternative for cleaner markup, since it has its own README now. See #2630592: Tweak Stable's README.txt to be more understandable by new users where we're trying to mention Classy in Stable's README :)
Comment #41
davidhernandezAlso, "Classy" should be capitalized here.
Comment #42
r_sharma08 commentedTried to correct the language.
Kindly review and suggest if any more changes required.
Comment #43
chrisfree commentedHere's an updated patch.
Comment #44
jhodgdonThanks -- this is looking OK.... There's one grammatical nitpick:
less => fewer
Also... Hm... The first paragraph just seems to be a random unconnected list of statements -- it's choppy. And it starts to talk about classes, but the second paragraph is all about the classes, which made me think it was kind of redundant.
Also I don't think I would use the phrase "good base theme", and ...
I'm also not thrilled about saying these are Drupal's one "standard set of classes", since the Stable theme doesn't have them, so apparently really the standard is not to have classes.
Also, the headers seem kind of silly to me. The first one is About Classy -- duh. This is a README in the Classy theme, of course it's about Classy. The second one is "More about Classy" but it's just a link to the generic theme guide, not about Classy itself.
So I don't think we need the headers. We could just at the last line say "For more information about theming, see ...".
So.
Can we take another run at this?
Comment #45
chrisfree commentedYeah, I hear you on all points. I think I was just mimicking what I'd seen elsewhere in terms of the headers. This is what we have in Stark:
I'll take another pass at this right now and post a new patch.
Comment #46
jhodgdonAbout Classy / About Drupal theming would be fine headers. About Classy / More About Classy -- not so much. ;)
Comment #47
chrisfree commented@jhodgdon how does this patch look to you? Rewritten for clarity and reduction in redundancy. I left the "About Classy" header for now. I'd vote to keep that but see your point.
Comment #48
jhodgdonLet's not say "in Drupal 8". Just leave it out.
The reason is that we try to avoid putting explicit "Drupal" or version numbers in our docs in general; version numbers are also problematic because those would need to be changed for new versions.
Other than that, I think this version is pretty good, thanks!
Comment #49
davidhernandezAgain, please do not include this sentence. Bartik and Seven have nothing to do with Classy's existence. Their use of Classy is mostly a convenience. It is especially problematic having that as an opening sentence because it gives it greater weight, and implies a primary purpose.
I believe the blank line before the code line should be removed. We did that in the Stable README file, so I assume it is spec?
Comment #50
chrisfree commentedAh, that makes a lot of sense. Here's an updated patch that removes "in Drupal 8".
Comment #51
chrisfree commentedHere's another revision that includes suggestions from @davidhernandez.
Comment #52
chrisfree commentedComment #53
snehi commentedReplace with "who want to start with custom theme"
Comment #54
prashant.cAdding Drupal 8 theming guide link to README.txt file.
Comment #55
prashant.cSorry previously added wrong patch file.
Comment #56
prashant.cComment #57
snehi commentedPlease see #53
Comment #60
anil.gangwal commentedadding @snehi #53 comment
Comment #61
star-szrSorry but IMO this is a step backwards.
Comment #62
jordanpagewhite commentedIt seemed to me that the phrase "that can be useful to themers who want a starting point for their custom themes" added no value since it just describes what a base theme is. I also wanted to mention that Classy uses a BEM naming syntax.
Comment #63
anil.gangwal commentedComment #64
brahmjeet789 commentedI have added few lines may be it works:
Comment #65
jordanpagewhite commentedPlease include an interdiff. I suggested that we remove the "that can be useful to themers who want a starting point for their custom themes" sentence in #62. If you feel that sentence should remain in the README, can you please provide a counter-argument to my point.
Comment #66
snehi commentedNot ok with wording.
Extra trailing space at the end of the line.
Please first suggest and than create a patch, it may be for saving time of yours.
Anyway thanks for contributions and keep it up !!!
Comment #67
r_sharma08 commentedSentence corrected, please review.
Comment #68
r_sharma08 commentedComment #69
snehi commented+1 for RTBC
Comment #70
jordanpagewhite commentedCopy and pasting my comment from #65, which was copied from #62: "I suggested that we remove the "that can be useful to themers who want a starting point for their custom themes" sentence in #62. If you feel that sentence should remain in the README, can you please provide a counter-argument to my point."
Comment #71
star-szrThe paragraphs seem to be all crammed together and there's weird capitalization and such (more on that below), so this still needs more work.
Normally I would really encourage lots of participation in issues but at least in this case it seems that because we have so many different people uploading patches it's delaying the issue, not expediting it. Do we really need 4 different people from the same company working on patches for this issue? I don't think so.
Why is Classy not in all caps?
Why is Themers capitalized?
I'm with @jordanpagewhite, I don't think that sentence is adding much and with the later patches the grammar is not very good either.
Comment #72
r_sharma08 commentedFollowing text removed:
"The Classy theme is helpful for Themers to start with the custom themes
without having to add classes throughout the templates."
and the errors have been corrected.
Please suggest if any more changes required.
Comment #73
r_sharma08 commentedsorry, wrong file uploaded. Again uploading the patch file and interdiff.
Comment #74
snehi commentedWhy t of theming is small ?
Why T is capital of theming
Comment #75
r_sharma08 commentedt will be small in word "theming". Corrected and uploaded patch.
Comment #76
snehi commentedAs mentioned in community docs, please provide inter-diff every time whenever you create patch from older patch.
Thanks
Comment #77
r_sharma08 commentedAttached interdiff file, please review.
Comment #78
r_sharma08 commentedAttached interdiff file, please review.
Comment #79
davidhernandezI would replace "A theming guide" with "Documentation". Particularly, because it is mentioned twice in the same paragraph.
This change is not correct. We would not have a lowercase "t" used with an uppercase "G". If "Theming Guide" is capitalized, it is because it is the title of the page. If not, then they would both be lowercase. In this case, it looks to be the title, so I would have them both uppercase. "Theming Guide".
Comment #80
star-szrThe paragraphs are still together. If they're not separate paragraphs, don't wrap early. If they are, add a blank line in between the paragraphs.
Comment #81
sudhanshug commentedpatch submitted
Comment #82
sudhanshug commentedreadme file to classy
Comment #83
jhodgdonIn addition to the previous comments...
What is the BEM naming syntax? Please don't use acronyms in documentation except really really common things like HTML. I have no idea what this is. The acronym needs to be written out, and in addition we probably need to have a reference on what it means (like Wikipedia page or drupal.org documentation page).
Comment #84
davidhernandezRE #83 I would remove the BEM bit altogether. BEM is a naming convention for CSS class names (https://css-tricks.com/bem-101/) but I don't know that I'd say it is strictly implemented in Classy. Besides, it is more of an all around core initiative, not something specific to Classy, so it doesn't add anything special to Classy's description/purpose.
Comment #85
sudhanshug commentednew readme
Comment #86
r_sharma08 commented#79 to #84 has been incorporated into the attached patch. Please review.
Comment #87
r_sharma08 commentedComment #88
snehi commentedI don't think this is the correct way to do this and more than 80 characters in a line
more than 80 characters in a line
more than 80 characters in a line
Empty spaces here
more than 80 characters in a line
Comment #89
snehi commentedregarding #86
Please spell out the full name and i don't think classy is strictly following BEM.
Let someone else may be @Jhodgdon can review it better.
spcae is missing here.
Thanks for your contribution
Comment #90
snehi commentedComment #91
r_sharma08 commentedComment #92
rashid_786 commentedComment #93
jhodgdonSee review in #84 please. We do not even want the part about BEM at all. Thanks!
Comment #94
rashid_786 commentedComment #95
r_sharma08 commentedspace needed between .info.yml and file
Comment #96
zeeshan_khan commentedComment #97
rashid_786 commentedchanges updated with new patch.
Comment #98
snehi commentedBlank space here
Comment #99
snehi commentedComment #100
snehi commentedComment #101
star-szrs/anotate/annotate/
Hmm not sure about how these two sentences are together like this. I would consider either splitting this into two paragraphs, with the Stable part after the base theme part, or move the Stable part to the end of the previous paragraph. Also the wording "Stable can be used as core's default base theme" could be improved IMO. To me it's not really the right message, I think it's the "as" that is tripping me up.
Patch attached with those changes and some other minor tweaks more in line with Stable's README. Re-wrapped everything to 80 chars as well.
I'm still not quite happy with the second sentence but don't have any great ideas at the moment on improving it.
Comment #102
jhodgdonAgreed that the first paragraph is still not great. How about something like this for the first two sentences:
Classy is a base theme that provides many classes in its markup.
That seems like it is much more concise?
And can we also have the last two paragraphs be more parallel? The first one says something like "Documentation for [] is at the following URL: [url]" and the second says "For [] see [title]: [url]".
What we normally do in READMEs is something like this:
See [url] for more information on [whatever it is].
Thanks!
Comment #103
star-szrThanks @jhodgdon!
Comment #104
chrisfree commentedThis looks good to my eyes. Happy to see this wrapping up!
Comment #105
manjit.singhMay be it would be make more sense if we can put it below the "About Classy" section.
Comment #106
jhodgdonYes, I agree that this line would probably be better in the About Classy section.
Otherwise, I think this README is looking good!
Comment #107
snehi commentedComment #108
ajits@snehi Tried reaching you on IRC but couldn't.
Made the changes as per #106.
Comment #110
ajitsEmpty patch attached earlier. Sorry about that!
Comment #111
snehi commented@AjitS Please work on assigned issues.
Comment #112
manjit.singh@Snehi I have looked so many issues where you are struggling with the others regarding assigned or unassigned issues. :D :D
Please start work on the issue at the time when you assign it to yourself.
@AjitS : Please check this https://www.drupal.org/node/2172049
Comment #113
ajits@snehi As mentioned earlier, I actually tried to reach you on IRC to check if you are still working on the issue. And I took the issue up after 7 hours, because I thought the change required was small, and completing which would probably push the issue to RTBC.
My intention was not to offend you by any means. Sorry if you feel that way!
@Manjit.Singh Thanks!
Comment #114
jhodgdonThanks all! Only 114 comments, and we have I think a good README.
Comment #115
chrisfree commentedYay!
Comment #116
sudhanshug commentedadded file classy theme README
Comment #117
sudhanshug commentedComment #118
snehi commented@sudhanshug this issue is Already RTBC, why are you attaching patch to it.
If you have any issue please write a comment.
Where is the interdiff ?
Comment #119
hussainweb@sudhanshug: Thank you for your contribution. Every bit helps.
For future reference, please keep in mind a few points so that your patch can be easily reviewed.
I compared your patch and the one in #110. I see you added points on BEM and changed a few other things. If you see comments #83 onwards, we removed BEM for a reason. If you have a doubt, please ask before making a change.
Comment #120
alexpottI've committed the patch in #110 since that is the patch that @jhodgdon (the docs committer) rtbc'd. @sudhanshug if you feel that that documentation can be improved please file a followup issue I made an interdiff of #110 to #116 and it looks like an old version was uploaded.
Committed 791234d and pushed to 8.0.x and 8.1.x. Thanks!
Comment #124
prashant.cComment #125
brahmjeet789 commentedComment #126
brahmjeet789 commentedComment #127
cilefen commented