Conversation
TODO: * CSS rules need to be improved, but the structure should be there * Language files; currently only "en" is supported for a proof of concept
TODO: * spaces between the (automated) title taskprerequisites and taskrelated needs to be adapted
There was a problem hiding this comment.
-
so mostly, stuff comes out as it should but there is still lots of positioning issues related to the headlines of "tasksummary" and "taskprerequisites". can you try position these similarly to normal preambles in fo? also, in fo, there is a huge gap after the tasksummary, that really needs fixed. (i can take care of the css for html.)
-
why does taskrelated not get a headline in html but does get one in fo? curiously, tasksummary does not get a headline in fo but does get one in html.
-
i have a question that relates to geekodoc: why is it not allowed put itemizedlists in taskprerequisites? lists seem a natural fit for prereqs, no?
| <l:gentext key="step.optional" text="(Optional)"/> | ||
|
|
||
| <l:gentext key="tasksummary" text="Summary"/> | ||
| <l:gentext key="taskprerequisites" text="Requirements"/> |
There was a problem hiding this comment.
hm, looking at https://github.com/docbook/xslt10-stylesheets/blob/master/gentext/locale/en.xml#L350 , I wonder: are the tasksummary/taskprerequisite/taskrelated elements supposed to have actual titles instead of something autogenerated? does geekodoc allow titles for these elements?
also, (stating the obvious)make sure to add some more languages...
There was a problem hiding this comment.
I wonder: are the tasksummary/taskprerequisite/taskrelated elements supposed to have actual titles instead of something autogenerated? Does geekodoc allow titles for these elements?
Currently, no title inside of these task* elements are allowed in Geekodoc. So yes, that's a feature and not a bug. 😉
Sure, we could allow titles, but I think in that case we would only get further inconsistencies which would "weaken" our task appearance. At the moment, I can't think of a use case where a title in these task* elements is absolutely necessary.
To summarize it, I would like to keep it that way for the time being. Let our writers gain some experiences. If we think we need it, we can add titles in a later version without any compatibility problems.
| .itemizedlist-title .link, .variablelist-title .link, .qandadiv-title .link, | ||
| .title .ulink, .subtitle .ulink, .table-title .ulink, .example-title .ulink, | ||
| .figure-title .ulink, .procedure-title .ulink, .orderedlist-title .ulink, | ||
| .figure-title .ulink, .procedure-title .ulink, .task-title .ulink, .orderedlist-title .ulink, |
There was a problem hiding this comment.
oh my. i can't even look at this css. totally not your fault but mine. but i almost feel like opening a bug about generating fewer of those class names.
to be clear: your changes are fine and should work. this is more of a note-to-past-self.
| </xsl:if> | ||
| </xsl:variable> | ||
| <xsl:choose> | ||
| <xsl:when test="@label"><xsl:value-of select="@label"/></xsl:when> |
There was a problem hiding this comment.
use two spaces for indentation please. (it seems you're switching between one and two occasionally.)
There was a problem hiding this comment.
Arhg, I was too inconsistent. Could we do it later? Or what procedure do you prefer to change this?
suse2013/xhtml/task.xsl
Outdated
|
|
||
| <xsl:template match="tasksummary|taskprerequisites"> | ||
| <div class="{local-name(.)}"> | ||
| <h6 class="{local-name(.)}-title"> |
There was a problem hiding this comment.
you could hardcode task-title here instead, otherwise you'll have to add lots of extra css to style these extra titles.
|
|
||
| .procedure-title-wrap + .procedure-contents { | ||
| .procedure-title-wrap + .procedure-contents, | ||
| .task-title-wrap + .task-contents { |
There was a problem hiding this comment.
Not directly related to this line, but could find a good place for
.task-contents .procedure-contents {
border-left: none;
}
That'll remove the extra line still displayed at the side.
Suggested by sknorr, thanks!
This should fix the missing taskrelated title
* Add missing rules for .task-title-wrap, .taskprerequisites and .tasksummary * Add rule for .task-contents and its first p child * Add missing .task-contents > * rule to adjust left positioning
I tried to fix them in the CSS, and it looks ok-ish. However, I guess, I did more harm than good. You should review my changes carefully. See commit f4a7b79.
This should be fixed now in commit 7fcde21, there was an inconsistency in our HTML templates for the
According to comment openSUSE/geekodoc#1 (comment) we discussed this and we came up with no lists. I can't remember why, but I guess, it is an omission. I've opened openSUSE/geekodoc#25. Apart from the issues above, I found another problem in HTML (and probably in FO, too):
I'm not sure how to solve it, but I could think of the following solutions when the author doesn't add a procedure title:
|
Change task.children.title.spacing and include only space-before.* attributes
| </info> | ||
|
|
||
| <chapter xml:id="cha.procedure"> | ||
| <title>Procedures</title> |
There was a problem hiding this comment.
Hm, did I accidentally put the test case stuff into the same commit here on Friday? If so, that was not intended...
PR, mainly for the purposes of reviewing this... There must be some reason why you named the commits "first draft", I guess.