Automated Status Reports
Sean Wheller
sean at inwords.co.za
Sat Jan 29 07:30:05 UTC 2005
On Saturday 29 January 2005 03:08, Enrico Zini wrote:
> On Thu, Jan 20, 2005 at 09:24:52PM +0200, Sean Wheller wrote:
> > I have completed a second revision of the xsl used to generate the report
> > documents and created 'make status' target to automate building of these
> > reports.
>
> Supercool!
> One problem to notify (filed as #5976): the QuickGuide status reports
> "NO STATUS" for everything, but there is plenty of <authorblurb> tags
> there.
Thanks for registering it as a bug. I looked into it. Attached in the result I
get from 'make status' for the Quick Guide before making any src changes. Is
it the same as yours?
If so then the problem is that there is no @status on these elements. The
problem is not the script. Authors need to add the status attribute. See
http://www.ubuntulinux.org/wiki/DocteamWork - "Marking what you do" I did
send message to the list on this.
I have now done @status for the rest of the quick guide and made commit. So
if you run run 'make status' again it will should you something different.
There is one validity error, my mistake will fix. Not all sections have a
authorblurb because they don't have an author.
Here is the logic:
<xsl:template name="doItems">
<xsl:for-each
select="//chapter|//sect1|//sect2|//sect3|//sect4|//sect5">
<row>
<entry>
<xsl:value-of select="title"/>
</entry>
<entry>
<xsl:choose>
<xsl:when test="@status='help'">
<para>
<emphasis role="bold">
<xsl:text>Help Wanted</xsl:text>
</emphasis>
</para>
<xsl:call-template name="doAuthor"/>
</xsl:when>
<xsl:when test="@status='writing'">
<para>
<xsl:text>In Progress</xsl:text>
<xsl:call-template name="doAuthor"/>
</para>
</xsl:when>
<xsl:when test="@status='review'">
<para>
<emphasis>
<xsl:text>Awaiting Review</xsl:text>
</emphasis>
</para>
<xsl:call-template name="doAuthor"/>
</xsl:when>
<xsl:when test="@status='reviewing'">
<para>
<emphasis>
<xsl:text>In Review</xsl:text>
</emphasis>
</para>
<xsl:call-template name="doAuthor"/>
</xsl:when>
<xsl:when test="@status='complete'">
<para>
<xsl:text>Finished</xsl:text>
</para>
<xsl:call-template name="doAuthor"/>
</xsl:when>
<xsl:otherwise>
<para>
<xsl:text>NO STATUS</xsl:text>
</para>
</xsl:otherwise>
</xsl:choose>
</entry>
</row>
</xsl:for-each>
Hope this helps.
>
> > Enrico, it's up to you know to figure out how you want to get these
> > sources to mako. If you need more help on this let me know.
>
> Should be getting there. Today I wrote a script here that makes a build
> and puts a .tar.gz online in a secret location (needs to be secret
> because I don't have enough bandwidth to support a public one).
>
> I then notified this secret location to mako, who can now cron a "wget
> file ; tar zxf file" to be executed every now and then to update his
> pages.
>
> As soon as mako crons this, we should have fairly updated pages (I still
> need to run the script by hand at home, though).
OK. Sounds good.
--
Sean Wheller
Technical Author
sean at inwords.co.za
084-854-9408
http://www.inwords.co.za
Registered Linux User #375355
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20050129/6d43cdc7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-doc/attachments/20050129/6d43cdc7/attachment.pgp>
More information about the ubuntu-doc
mailing list