From b662757aef10f8e7c53afa28c06a580ff6ee5ba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 29 Apr 2012 14:54:53 +0200 Subject: [PATCH] arrange things for doc.entrouvert.org --- data/eo-overlay.xml | 69 ++++ data/skin/eo.css | 167 +++++++++ data/xslt/eo_indexes.xsl | 755 +++++++++++++++++++++++++++++++++++++++ data/xslt/heading.xsl | 180 +--------- src/doceo.py | 508 ++++++++++++++++++++++++++ 5 files changed, 1509 insertions(+), 170 deletions(-) create mode 100644 data/eo-overlay.xml create mode 100644 data/skin/eo.css create mode 100644 data/xslt/eo_indexes.xsl create mode 100755 src/doceo.py diff --git a/data/eo-overlay.xml b/data/eo-overlay.xml new file mode 100644 index 0000000..6087a70 --- /dev/null +++ b/data/eo-overlay.xml @@ -0,0 +1,69 @@ + + + + + + overview gdp-documentation tutorials faqs devel-guides + Guides + + The guides provide the common practices used in code and interface + design within the GNOME platform as well as detailed knowledge about + some applications and components. + + + + api-base api api-desktop-plugins api-bindings standards + References + + The references contain the Application Programming Interface, list of + functions, classes and methods of the GNOME platform libraries and + the standards used within the GNOME platform. + + + + ApplicationsProgramming + Development Tools + + The GNOME developer suite is a set of tools to ease the life of + developers; it features a graphical interface builder, an + integrated help system for API reference and more. + + + + devel-resource + GNOME Development + + Various links to learn more about GNOME development and how to get + involved. + + + + + + + + + + + + + + + + + + + + + + + api-base + api-core + + Lasso bla bla bla + + + + + + diff --git a/data/skin/eo.css b/data/skin/eo.css new file mode 100644 index 0000000..7a0a0b4 --- /dev/null +++ b/data/skin/eo.css @@ -0,0 +1,167 @@ +body { + width: 900px; + margin: auto; + text-align: left; +} + +dl.doc-index dt a { + text-decoration: none; + font-size: 120%; + color: #505053; + font-family: MuseoSlab, sans-serif; +} + +dl.doc-index dt .module-more a { + font-size: 100%; + font-family: sans-serif; +} + +/* code listings */ + +.listing_code .programlisting .cbracket { color: #a40000; } /* tango: scarlet red 3 */ +.listing_code .programlisting .comment { color: #a1a39d; } /* tango: aluminium 4 */ +.listing_code .programlisting .function { color: #000000; font-weight: bold; } +.listing_code .programlisting .function a { color: #11326b; font-weight: bold; } /* tango: sky blue 4 */ +.listing_code .programlisting .keyword { color: #4e9a06; } /* tango: chameleon 3 */ +.listing_code .programlisting .linenum { color: #babdb6; } /* tango: aluminium 3 */ +.listing_code .programlisting .normal { color: #000000; } +.listing_code .programlisting .number { color: #75507b; } /* tango: plum 2 */ +.listing_code .programlisting .preproc { color: #204a87; } /* tango: sky blue 3 */ +.listing_code .programlisting .string { color: #c17d11; } /* tango: chocolate 2 */ +.listing_code .programlisting .type { color: #000000; } +.listing_code .programlisting .type a { color: #11326b; } /* tango: sky blue 4 */ +.listing_code .programlisting .symbol { color: #ce5c00; } /* tango: orange 3 */ + +.listing_frame { + /* tango:sky blue 1 */ + border: solid 1px #729fcf; + padding: 0px; +} + +.listing_lines, .listing_code { + margin-top: 0px; + margin-bottom: 0px; + padding: 0.5em; +} +.listing_lines { + /* tango:sky blue 0.5 */ + background: #a6c5e3; + /* tango:aluminium 6 */ + color: #2e3436; +} +.listing_code { + /* tango:sky blue 0 */ + background: #e6f3ff; +} +.listing_code .programlisting { + /* override from previous */ + border: none 0px; + padding: 0px; +} +.listing_lines pre, .listing_code pre { + margin: 0px; +} + +span.citem { + display: table-cell; + text-align: center +} + +div.devel-remark { + font-style: italic; + color: #800; + margin: 1ex 0; +} + +div.downloads h4 { + min-height: 24px; + line-height: 24px; + background: transparent url(gnome-mime-application-x-archive.png) top left no-repeat; + padding-left: 26px; +} + +div.downloads p.devhelp-note { + font-size: 80%; +} + +div.downloads p.devhelp-note { + font-size: 80%; + color: #444; +} + +p.canonical-ref { + padding: 0.5em 1em 0.5em 60px; + min-height: 48px; + border: solid 1px #e0e0df; + margin-right: 29ex; + background-color: #fffff0; + background-position: 6px 0.5em; + background-repeat: no-repeat; + background-image: url(/skin/admon-note.png); +} + +p.other-versions { + font-size: 80%; + color: #888; +} + +p.other-versions a { + text-decoration: none; +} + +.programlisting +{ + background: #eef; + border: solid 1px #aaf; + padding: 0.5em; +} +.variablelist +{ + padding: 4px; + margin-left: 3em; +} +.variablelist td:first-child +{ + vertical-align: top; +} + +.variablelist p { + margin: 0; +} + +.listing_lines, .listing_code { + margin-top: 0px; + margin-bottom: 0px; + padding: 0.5em; +} +.listing_lines { + /* tango:sky blue 0.5 */ + background: #a6c5e3; + /* tango:aluminium 6 */ + color: #2e3436; +} +.listing_code { + /* tango:sky blue 0 */ + background: #e6f3ff; +} + +div.gtk-doc dt { + color: #2e3456; + margin: 0; +} + +div.gtk-doc div.index dt { + line-height: 1.2; + font-size: 100%; +} + +div.gtk-doc td.shortcuts { + background: white; + border: 1px solid #d3d7cf; + text-align: center; +} + +div.gtk-doc span.refpurpose { + color: #555; + font-weight: normal; +} diff --git a/data/xslt/eo_indexes.xsl b/data/xslt/eo_indexes.xsl new file mode 100644 index 0000000..0fb26cd --- /dev/null +++ b/data/xslt/eo_indexes.xsl @@ -0,0 +1,755 @@ + + + + + + + + + + + + + +abcdefghijklmnopqrstuvwxyz +ABCDEFGHIJKLMNOPQRSTUVWXYZ + + + + + + + + + + + + + + + + + + + + +Core +Accessibility +Utility +Education +Game +Graphics +Network +Office +Other +Other +Science +AudioVideo +System + + + + + + +

+ category cat- + + + + + + + + + + + +

+
+ +

+ +

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + + + + +

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ +upcoming-deprecation + + + + + + + + external + + + + + + + + + + + + +[] + + + +[] + +
+ +
+ +

+
+ +

+ +

+
+ +

+ + +

+
+
+
+
+ + + + + + + + +Writing + + + + + + <xsl:value-of select="title" /> - + <xsl:call-template name="gettext"><xsl:with-param name="lang" + select="$lang"/><xsl:with-param name="msgid" + select="'gnome-developer-center'"/></xsl:call-template> + + + + + + + + +
+

+ + + +

+
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+ + + +

+ + + +
+ + + + + + + + +
+
+
+ + +

+ + + + +

+
+ +
+ + + + + + + +
+
+ + +
+

+ +

+
+
+
+ + + + + + + + + + + + + + more + + + + + Writing channel: + + + + + + + + + <xsl:choose> + <xsl:when test="@channel = 'users'"> + <xsl:call-template name="gettext"><xsl:with-param name="lang" + select="@lang"/><xsl:with-param name="msgid" + select="'userslabel'"/></xsl:call-template> + - + <xsl:call-template name="gettext"><xsl:with-param name="lang" + select="@lang"/><xsl:with-param name="msgid" + select="'gnome-developer-center'"/></xsl:call-template> + </xsl:when> + <xsl:when test="@channel = 'devel'"> + <xsl:call-template name="gettext"><xsl:with-param name="lang" + select="@lang"/><xsl:with-param name="msgid" + select="'developerslabel'"/></xsl:call-template> + - + <xsl:call-template name="gettext"><xsl:with-param name="lang" + select="@lang"/><xsl:with-param name="msgid" + select="'gnome-developer-center'"/></xsl:call-template> + </xsl:when> + <xsl:when test="@channel = 'admin'"> + <xsl:call-template name="gettext"><xsl:with-param name="lang" + select="@lang"/><xsl:with-param name="msgid" + select="'sysadminslabel'"/></xsl:call-template> + - + <xsl:call-template name="gettext"><xsl:with-param name="lang" + select="@lang"/><xsl:with-param name="msgid" + select="'gnome-developer-center'"/></xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="gettext"><xsl:with-param name="lang" + select="@lang"/><xsl:with-param name="msgid" + select="'gnome-developer-center'"/></xsl:call-template> + </xsl:otherwise> + </xsl:choose> + + + + + + + + + + + devel + + +
+
+
+
+ + + + + + + + +
+
+ +
+
+ + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
diff --git a/data/xslt/heading.xsl b/data/xslt/heading.xsl index 042d6cf..735d3e9 100644 --- a/data/xslt/heading.xsl +++ b/data/xslt/heading.xsl @@ -13,188 +13,28 @@ +
+

Entr'ouvert Entr'ouvert Documentation

+
+ - -
- -
- - -
-
-
- GNOME.org -
-
-
- - - -
- - - - - - - - -