PageRenderTime 12ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/sphinx-jp/layout.html

Relevant Search: With Applications for Solr and Elasticsearch

For more in depth reading about search, ranking and generally everything you could ever want to know about how lucene, elasticsearch or solr work under the hood I highly suggest this book. Easily one of the most interesting technical books I have read in a long time. If you are tasked with solving search relevance problems even if not in Solr or Elasticsearch it should be your first reference. Amazon Affiliate Link
https://bitbucket.org/shibu/sphinx-usersjp-web/
HTML | 206 lines | 185 code | 3 blank | 18 comment | 0 complexity | c8db880fddc252b2a1762caf3df73706 MD5 | raw file
  1{%- block doctype -%}
  2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3{%- endblock doctype -%}
  4{%- macro relbar() %}
  5  <div class="relbar">
  6    {%- if prev %}
  7    <dl id="relPrev">
  8      <dt class="prev">{{ _('Previous topic') }}</dt>
  9      <dd class="relTitle"><a href="{{ prev.link|e }}" title="{{ _('previous chapter') }}" {{ accesskey("N") }}>{{ prev.title }}</a></dd>
 10    </dl>
 11    {%- endif %}
 12    {%- if next %}
 13    <dl id="relNext">
 14      <dt class="next">{{ _('Next topic') }}</dt>
 15      <dd class="relTitle"><a href="{{ next.link|e }}" title="{{ _('next chapter')  }}" {{ accesskey("N") }}>{{ next.title }}</a></dd>
 16    </dl>
 17    {%- endif %}
 18  </div>
 19{%- endmacro %}
 20{%- macro sidebar() %}
 21  <div id="sidebar" class="left">
 22    <div id="sidebarWrap">
 23      <div id="toc" class="sidebarRow">
 24        <h3>{{ _('Table Of Contents') }}</h3>
 25        {{ toctree() }}
 26        </div>
 27        <div id="rel" class="sidebarRow">
 28        {%- block sidebarrel %}
 29        {%- if prev %}
 30          <div class="relRow prev">
 31            <h4>{{ _('Previous topic') }}</h4>
 32            <p class="topless"><a href="{{ prev.link|e }}" title="{{ _('previous chapter') }}">{{ prev.title }}</a></p>
 33          </div>
 34        {%- endif %}
 35        {%- if next %}
 36          <div class="relRow next">
 37            <h4>{{ _('Next topic') }}</h4>
 38            <p class="topless"><a href="{{ next.link|e }}" title="{{ _('next chapter') }}">{{ next.title }}</a></p>
 39          </div>
 40        {%- endif %}
 41        {%- endblock %}
 42      </div>
 43      <div id="source" class="sidebarRow">
 44      {%- block sidebarsourcelink %}
 45      {%- if show_source and has_source and sourcename %}
 46        <h3>{{ _('This Page') }}</h3>
 47        <ul class="this-page-menu">
 48          <li><a href="{{ pathto('_sources/' + sourcename, true)|e }}" rel="nofollow">{{ _('Show Source') }}</a></li>
 49        </ul>
 50      {%- endif %}
 51      {%- endblock %}
 52      </div>
 53    </div>
 54  </div>
 55{%- endmacro -%}
 56<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
 57<head>
 58  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
 59  <title>{{ title }} :: ドキュメンテーションツール スフィンクス Sphinx-users.jp</title>
 60  <link rel="stylesheet" type="text/css" href="{{ pathto('_static/' + style, 1) }}" />
 61  <link rel="stylesheet" type="text/css" href="{{ pathto('_static/pygments.css', 1) }}" />
 62  <meta name="description" content="Python製ドキュメンテーションビルダー、Sphinxの日本ユーザ会">
 63  <meta name="keywords" content="Sphinx,スフィンクス,ドキュメンテーション,ツール,Python,reStructuredText,reST">
 64  {%- if not embedded %}
 65  <script type="text/javascript">
 66  var DOCUMENTATION_OPTIONS = {
 67    URL_ROOT:    '{{ pathto("", 1) }}',
 68    VERSION:     '{{ release|e }}',
 69    COLLAPSE_MODINDEX: false,
 70    FILE_SUFFIX: '{{ file_suffix }}',
 71    HAS_SOURCE:  {{ has_source|lower }}
 72  };
 73  </script>
 74  {%- for scriptfile in script_files %}
 75  <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
 76  {%- endfor %}
 77  {%- if use_opensearch %}
 78  <link rel="search" type="application/opensearchdescription+xml" title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}" href="{{ pathto('_static/opensearch.xml', 1) }}"/>
 79  {%- endif %}
 80  {%- if hasdoc('search') %}
 81  <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
 82  {%- endif %}
 83
 84  <script type="text/javascript" src="http://s.hatena.ne.jp/js/HatenaStar.js"></script>
 85  <script type="text/javascript">
 86  Hatena.Star.Token = '155526b156165586e5572b70458b327e4e7d6c32';
 87  Hatena.Star.SiteConfig = {
 88    entryNodes: {
 89      '#document': {
 90        uri: 'h1 a',
 91        title: 'h1',
 92        container: 'h1'
 93      }
 94    }
 95  };
 96  </script>
 97
 98  <script type="text/javascript" src="{{ pathto('_static/HatenaBookmark.js', 1) }}"></script>
 99  <script type="text/javascript">
100  Hatena.xBookmark.SiteConfig = {
101    '#document h1 a.headerlink': {},
102  };
103  </script>
104
105{%- endif %}
106  <!-- Sticky footer -->
107  <!--[if  IE 8]>
108  <style type="text/css">
109    #wrap {display:table;}
110  </style>
111  <![endif]-->
112</head>
113<body>
114<div id="wrapper">
115  {% block header %}
116  <!-- header -->
117  <div id="header">
118    <div id="projInfo">
119      {%- if logo %}
120      <!-- logo -->
121      <img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="{{ project }}" />
122      <!-- /logo -->
123      {%- endif %}
124      <h1 id="title">
125        <a href="{{ pathto('index') }}">{{ project }}</a>
126      </h1>
127      <p class="docdesc">{{ docstitle|e }}</p>
128    </div>
129    {%- if pagename != "search" %}
130    <div id="headerNav">
131      <div id="searchbox">
132        <form name="search" action="{{ pathto('search') }}" method="get">
133          <fieldset class="search">
134            <input type="text" class="hint" name="q" />
135            <button class="button" title="{{ _('Go') }}" />{{ _('Go') }}</button>
136            <input type="hidden" name="check_keywords" value="yes" />
137            <input type="hidden" name="area" value="default" />
138          </fieldset>
139        </form>
140      </div>
141    </div>
142    <script type="text/javascript">$('#searchbox').show(0);</script>
143    {%- endif %}
144    <div id="gnav">
145      <ul>
146        <li class="home"><p><a href="{{ pathto('index') }}" title="{{ project }}">{{ project }}</a></p></li>
147        <li class="doc"><p><a href="{{ pathto('doc') }}" title="ドキュメント">ドキュメント</a></p></li>
148        <li class="modindex">
149          <p><a title="{{ _('Index') }}" href="{{ pathto('genindex') }}">{{ _('Index') }}</a></p>
150        </li>
151      </ul>
152    </div>
153  </div>
154  <!-- /header -->
155  {% endblock header %}
156  {% block content %}
157  <!-- content -->
158  <div id="content">
159    <!-- current document area -->
160    <div id="document" class="left">
161    {%- block body %}{%- endblock body %}
162    </div>
163    <!-- /current document area -->
164    <!-- sidebar -->
165    {{ sidebar() }}
166    <!-- /sidebar -->
167  </div>
168  {% endblock content %}
169  <!-- /content -->
170</div>
171  <!-- footer -->
172  {% block footer %}
173  <div id="footer">
174    <div class="footerCol">
175      <h1><a href="{{ pathto('index') }}">{{ project }}</a></h1>
176      <p class="copy">
177      {%- if hasdoc('copyright') %}
178      {% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a>{{ copyright }}. {% endtrans %}
179      {%- else %}
180      {% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
181      {%- endif %}
182      {%- if last_update %}
183      {% trans last_updated=last_updated|e %}Last updated on {{ last_update }}.{% endtrans %}
184      {%- endif %}
185      </p>
186      <p class="sp">
187      {%- if show_sphinx %}
188      {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
189      {%- endif %}
190      </p>
191      {%- if last_updated %}
192      <p class="update">
193      {% trans last_updated=last_updated|e %}
194      Last updated on {{ last_updated }}.
195      {% endtrans %}
196      </p>
197      {%- endif %}
198    </div>
199    <div class="footerCol">
200    {{ relbar() }}
201    </div>
202  </div>
203 {% endblock footer %}
204 <!-- /footer -->
205</body>
206</html>