Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
30 Oct 2011 at 17:36 UTC
Updated:
29 Jul 2014 at 20:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lars toomre commentedAttached is a first pass at bringing the image module up to Drupal 8 documentation standards. I relaize this patch will need to be re-rolled once the files are moved to /core. However, comments in the meantime are welcome.
While creating this patch, I encountered a number of questions which also may necessitate re-rolling this patch. My questions include:
Known issues requiring follow-up
Comment #2
jhodgdonI took a quick glance through this patch, and noticed a few things:
a) We don't actually want @return docs on page callbacks or form generating functions. They are implied, unless something really odd is going on.
Something that is documented as both a page callback and form generating function therefore doesn't really need:
b)
Things like this:
("effect" -> "image effect") are not really necessary/welcome in this cleanup. We're just trying to do the things in the list on the meta-issue, not make all the docs perfect. Feel free to file new issues for other problems you find.
c) See http://drupal.org/node/1354#themeable for standards on how to document functions like theme_image_style_list(). In particular, the first line isn't right, and it's not necessary to say it's "the default method of theming" something -- that's implied by the name, and if we added this to all theme functions and templates, that would get very tedious. (also that second sentence about it being overridable)
d) Please do not add data types to param/return values. That's a separate effort, which has yet to be organized.
e) Since you filed a separate issue to clean up list formatting, let's not do that here either (and it's not in the list of things to clean up in the meta-issue). Or file a separate issue for that.
f) Hook definitions do not have the same verb requirements as regular functions:
http://drupal.org/node/1354#hooks
g) Refer to modules as "the Sentence case human-redable name" or "machine_name.module", not:
h) No code changes here, only docs:
Once these are cleaned up, I'll give it a more thorough review. Thanks!
Comment #3
lars toomre commentedThis is a start at cleaning up the docs for the image module. If someone else want to take it further, please free to do so.
I am turning my focus to getting the malformed list formatting patch done since it will touch so many issues like this one. For the present, I am also not going to work on the locale module docs.
Comment #4
xenophyle commentedComment #5
xenophyle commentedThere are a couple places where parameters weren't documented and I couldn't tell what they were:
image.install: image_requirements()
image.module: image_filter_keyword()
I will make issues for these. It seems like I should wait until this issue is closed before I do that to avoid conflicts.
Comment #6
xjmSending to the bot.
Comment #7
jhodgdon#5: image-clean-up-documentation-1326608-5.patch queued for re-testing.
Comment #9
jhodgdonSorry this took so long to get reviewed...
In the meantime, we had a discussion on #1315992: No standard for documenting menu callbacks and we have (unfortunately) changed the standard for hook_menu() callbacks:
http://drupal.org/node/1354#menu-callback
So this patch will need an update.
Comment #10
jhodgdonTagging.
Also @xenophyle: are you still planning to work on this? If so, please respond. If not, we'll unassign it so someone else can. Thanks!
Comment #11
Anonymous (not verified) commentedSince there hasn't been activity for 4+ weeks, I'm going to move this back to unassigned.
Comment #12
filijonka commentedi'm slowly working on this
Comment #13
filijonka commentedsorry for this taking such a time but have been having some problems.
proper feedback is welcome of course
Comment #14
filijonka commentedhi
if anyone please can take some time to 24,25/5 tomake a review of this then i'll have time todo a new patch if needed
Comment #15
jhodgdonSorry, there are quite a few cleanup issues waiting for review right now... I am doing them about one a day. Yours will be reviewed sometime...
Comment #16
andypostA lot of trailing white-spaces in patch. Also there's a lot of @todo waiting for #1464554: Upgrade path for image style configuration
Comment #17
filijonka commented@jhodgdon due to accident and operations etc etc I haven't have time with this and I know my reply to u is way late but just so you know; My request/wish was not targeting you (I do know how much you have to do) but generally to anyone reading the topic.
sincerely Peter
Comment #18
mallezieComment #19
mallezieRerolled the patch. Now going further with cleanup
Comment #20
mallezieFurther cleanup of whitespaces and indention.
Left is param and function return types. But this was out of scope for this issue. I'm not sure if i should fix array 80 character overflows.
I didn't do this for now.
Comment #21
mallezieComment #22
jhodgdonThanks! This patch needs some additional cleanup:
a) Lines like this:
The standard for form-generating functions is at http://drupal.org/node/1354#forms -- also note we don't need a blank line between the @ingroup and the @see at the end, and the @ingroup should be last.
b)
This issue is limited to documentation changes. Do not make code line changes at all in this issue. Those are being addressed on other issues. See #1310084: [meta] API documentation cleanup sprint for the scope of this issue.
c)
Standards for this: http://drupal.org/node/1354#render
d)
Verb tense -- see http://drupal.org/node/1354#functions -- check the rest of the functions in this directory for the same problem (there are others in the patch with wrong verb tense).
e)
Could clean up the list syntax: http://drupal.org/node/1354#lists
f)
Formatting -- needs . at end of lines -- see http://drupal.org/node/1354#functions
Comment #23
dcam commentedRerolled #20.
Comment #24
andypostLooks good to go
Comment #25
jhodgdonI don't think the comments in #22 have been addressed at all.
Comment #26
dcam commentedThey haven't. I only rerolled the last patch. There was enough to do just creating the reroll. I hope to get to the changes in #22 later this evening.
Comment #27
claudiu.cristeaThis needs full re-work because of dramatic changes of image module during this summer.
Comment #28
jhodgdonThese issues are a lot of work with very little tangible payoff, so I'm closing the rest of them as "won't fix". Your efforts on working on this issue were appreciated... it was just my fault for starting a task that was very difficult to get right.
Let's instead put our effort into fixing and reviewing documentation that is really unclear and/or wrong, and I hope that the people who worked on these issues are not afraid to jump into a more reasonable issue!