[library-web] dev: move "quick api lookup" box to the api page



commit 0d026388a5cd5e2ba7970631a6183b9b467206bd
Author: Frédéric Péters <fpeters 0d be>
Date:   Sun Aug 24 14:05:11 2014 +0200

    dev: move "quick api lookup" box to the api page

 data/catalog.xml.in       |    2 +-
 data/xslt/dev_indexes.xsl |   63 +++++++++++++++++++++++---------------------
 2 files changed, 34 insertions(+), 31 deletions(-)
---
diff --git a/data/catalog.xml.in b/data/catalog.xml.in
index 0004837..076ee7e 100644
--- a/data/catalog.xml.in
+++ b/data/catalog.xml.in
@@ -91,7 +91,7 @@ find information on tools and methods to work with many GNOME desktops.
   <_msgstr msgid="10-minute-tutorials">Code examples and demos</_msgstr>
   <_msgstr msgid="getting-started">Getting Started</_msgstr>
   <_msgstr msgid="platform-overview">Application development overview</_msgstr>
-  <_msgstr msgid="quick-api-lookup">Quick API Lookup</_msgstr>
+  <_msgstr msgid="quick-api-lookup">Quick Lookup</_msgstr>
   <_msgstr msgid="user-interface">User Interface</_msgstr>
   <_msgstr msgid="multimedia">Multimedia</_msgstr>
   <_msgstr msgid="communication">Communication</_msgstr>
diff --git a/data/xslt/dev_indexes.xsl b/data/xslt/dev_indexes.xsl
index 11be685..b20d75d 100644
--- a/data/xslt/dev_indexes.xsl
+++ b/data/xslt/dev_indexes.xsl
@@ -390,6 +390,9 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd";>
            <xsl:with-param name="channel" select="@channel"/>
          </xsl:call-template>
           <script type="text/javascript" src="/js/strings.js" />
+         <link rel="stylesheet" type="text/css" href="/skin/jquery.autocomplete.css"/>
+         <script type="text/javascript" src="/js/jquery.js"></script>
+         <script type="text/javascript" src="/js/jquery.autocomplete.js"></script>
        </head>
        <body class="with-star">
          <xsl:call-template name="libgo.header">
@@ -433,11 +436,41 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd";>
               </div>
             </xsl:if>
            <xsl:if test="$filename = 'references'">
+
              <div class="subtle_box">
               <xsl:apply-templates select="." mode="toc">
                 <xsl:with-param name="lang" select="@lang"/>
              </xsl:apply-templates>
              </div>
+
+<div class="subtle_box">
+<h2><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param 
name="msgid" select="'quick-api-lookup'"/></xsl:call-template></h2>
+<form role="search" method="get" id="searchform" action="/symbols/"><div>
+<label class="hidden" for="q">Search:
+                        </label><input type="text" value="" name="q" id="s2" placeholder="Search" />
+</div></form>
+<script type="text/javascript">
+jQuery('#s2').autocomplete('/symbols/lookup/',
+        { minChars:3, matchSubset:1, matchContains:1, cacheLength:10,
+          selectOnly:1, rowsLimit:25 });
+</script>
+<p>
+<strong><a class="doc-link" href="/glib/stable/">GLib</a></strong>,
+<strong><a class="doc-link" href="/gtk3/stable/">GTK+</a></strong>
+        (<a class="doc-link" href="/gtkmm/stable/">C++</a>,
+        <a class="doc-link" href="http://python-gtk-3-tutorial.readthedocs.org/";>Python</a>,
+        <a class="doc-link" href="http://references.valadoc.org/gtk+-3.0/";>Vala</a>),
+<strong><a class="doc-link" href="/clutter/stable/">Clutter</a></strong>
+        (<a class="doc-link" href="/cluttermm/unstable/">C++</a>,
+        <a class="doc-link" href="http://references.valadoc.org/clutter-1.0/";>Vala</a>),
+<strong><a class="doc-link" href="http://www.gstreamer.net/documentation/";>GStreamer</a></strong>
+        (<a class="doc-link" href="/gstreamermm/unstable/">C++</a>,
+        <a class="doc-link" href="http://references.valadoc.org/gstreamer-0.10/";>Vala</a>)
+</p>
+
+
+</div>
+
            </xsl:if>
             <xsl:if test="@channel = 'devel'">
               <div id="dev" class="subtle_box">
@@ -501,9 +534,6 @@ div.body-sidebar { width: 100%; }
 </xsl:text>
           <script type="text/javascript" src="/js/strings.js" />
          <link rel="stylesheet" type="text/css" media="all" href="/skin/960_24_col.css" />
-         <link rel="stylesheet" type="text/css" href="/skin/jquery.autocomplete.css"/>
-         <script type="text/javascript" src="/js/jquery.js"></script>
-         <script type="text/javascript" src="/js/jquery.autocomplete.js"></script>
        </head>
        <body class="with-star">
          <xsl:call-template name="libgo.header">
@@ -529,33 +559,6 @@ div.body-sidebar { width: 100%; }
   <xsl:with-param name="hidetitle" select="count(section) = 1"/>
 </xsl:apply-templates>
 
-<div class="subindex">
-<h2><xsl:call-template name="gettext"><xsl:with-param name="lang" select="@lang"/><xsl:with-param 
name="msgid" select="'quick-api-lookup'"/></xsl:call-template></h2>
-<form role="search" method="get" id="searchform" action="/symbols/"><div>
-<label class="hidden" for="q">Search:
-                        </label><input type="text" value="" name="q" id="s2" placeholder="Search" />
-</div></form>
-<script type="text/javascript">
-jQuery('#s2').autocomplete('/symbols/lookup/',
-        { minChars:3, matchSubset:1, matchContains:1, cacheLength:10,
-          selectOnly:1, rowsLimit:25 });
-</script>
-<p>
-<strong><a class="doc-link" href="glib/stable/">GLib</a></strong>,
-<strong><a class="doc-link" href="gtk3/stable/">GTK+</a></strong>
-        (<a class="doc-link" href="gtkmm/stable/">C++</a>,
-        <a class="doc-link" href="http://python-gtk-3-tutorial.readthedocs.org/";>Python</a>,
-        <a class="doc-link" href="http://references.valadoc.org/gtk+-3.0/";>Vala</a>),
-<strong><a class="doc-link" href="clutter/stable/">Clutter</a></strong>
-        (<a class="doc-link" href="cluttermm/unstable/">C++</a>,
-        <a class="doc-link" href="http://references.valadoc.org/clutter-1.0/";>Vala</a>),
-<strong><a class="doc-link" href="http://www.gstreamer.net/documentation/";>GStreamer</a></strong>
-        (<a class="doc-link" href="gstreamermm/unstable/">C++</a>,
-        <a class="doc-link" href="http://references.valadoc.org/gstreamer-0.10/";>Vala</a>)
-</p>
-
-
-</div>
 </div>
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]