mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Moved to sphinx v0.2 for user manual
This commit is contained in:
parent
505806b48e
commit
4ebf4d2e38
@ -93,8 +93,9 @@ html_last_updated_fmt = '%b %d, %Y'
|
|||||||
# typographically correct entities.
|
# typographically correct entities.
|
||||||
#html_use_smartypants = True
|
#html_use_smartypants = True
|
||||||
|
|
||||||
# Content template for the index page.
|
# Overall title of the documentation
|
||||||
#html_index = ''
|
html_title = 'calibre User Manual'
|
||||||
|
html_logo = 'resources/logo.png'
|
||||||
|
|
||||||
# Custom sidebar templates, maps document names to template names.
|
# Custom sidebar templates, maps document names to template names.
|
||||||
#html_sidebars = {}
|
#html_sidebars = {}
|
||||||
|
@ -64,6 +64,11 @@ You should not use both |app| and Connect to transfer books to the reader. You c
|
|||||||
* Unplugging the reader and waiting till the list of books shows up again
|
* Unplugging the reader and waiting till the list of books shows up again
|
||||||
* Re-connecting the reader and starting the SONY software
|
* Re-connecting the reader and starting the SONY software
|
||||||
|
|
||||||
|
Can I use the collections feature of the SONY reader?
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|app| has full support for collections. When you add tags to a book's metadata, those tags are turned into collections when you upload the book to the SONY reader. Also, the series information is automatically
|
||||||
|
turned into a collection on the reader. Note that the PRS-500 does not support collections for books stored on the SD card. The PRS-505 does.
|
||||||
|
|
||||||
Library Management
|
Library Management
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
@ -126,9 +126,7 @@ CustomIndexRecipe
|
|||||||
|
|
||||||
.. class:: CustomIndexRecipe
|
.. class:: CustomIndexRecipe
|
||||||
|
|
||||||
This class is useful for getting content from websites that don't follow the "multiple articles in several feeds" content model. For example, it is used in the built-in recipe for fetching the `Daily Dilbert` comic strip.
|
This class is useful for getting content from websites that don't follow the "multiple articles in several feeds" content model.
|
||||||
|
|
||||||
.. literalinclude:: ../web/feeds/recipes/dilbert.py
|
|
||||||
|
|
||||||
.. automethod:: CustomIndexRecipe.custom_index
|
.. automethod:: CustomIndexRecipe.custom_index
|
||||||
|
|
||||||
|
@ -1,134 +0,0 @@
|
|||||||
{%- include "macros.html" %}
|
|
||||||
{%- block doctype -%}
|
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
||||||
"http://www.w3.org/TR/html4/loose.dtd">
|
|
||||||
{%- endblock %}
|
|
||||||
{%- macro relbar %}
|
|
||||||
{# this macro needs to stay in layout.html due to it containing blocks #}
|
|
||||||
<div class="related">
|
|
||||||
<h3>Navigation</h3>
|
|
||||||
<ul>
|
|
||||||
<li class="right" style="margin-right: 10px"><a href="{{ pathto('genindex') }}" title="General Index" accesskey="I">index</a></li>
|
|
||||||
{%- if use_modindex %}
|
|
||||||
<li class="right"><a href="{{ pathto('modindex') }}" title="Global Module Index" accesskey="M">modules</a> |</li>
|
|
||||||
{%- endif %}
|
|
||||||
{%- if next %}
|
|
||||||
<li class="right"><a href="{{ next.link|e }}" title="{{ next.title|striptags }}" accesskey="N">next</a> |</li>
|
|
||||||
{%- endif %}
|
|
||||||
{%- if prev %}
|
|
||||||
<li class="right"><a href="{{ prev.link|e }}" title="{{ prev.title|striptags }}" accesskey="P">previous</a> |</li>
|
|
||||||
{%- endif %}
|
|
||||||
{%- if builder == 'web' %}
|
|
||||||
<li class="right"><a href="{{ pathto('settings') }}"
|
|
||||||
title="Customize your viewing settings" accesskey="S">settings</a> |</li>
|
|
||||||
{%- endif %}
|
|
||||||
{%- block rootrellink %}
|
|
||||||
<li><a href="{{ pathto('index') }}">{{ project }} v{{ release }} User Manual</a> »</li>
|
|
||||||
{%- endblock %}
|
|
||||||
{%- for parent in parents %}
|
|
||||||
<li><a href="{{ parent.link|e }}" accesskey="U">{{ parent.title }}</a> »</li>
|
|
||||||
{%- endfor %}
|
|
||||||
{%- block relbaritems %}{% endblock %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{%- endmacro %}
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
||||||
{%- if builder != 'htmlhelp' %}
|
|
||||||
{%- set titlesuffix = " — " + project + " Documentation" %}
|
|
||||||
{%- endif %}
|
|
||||||
<title>{{ title|striptags }}{{ titlesuffix }}</title>
|
|
||||||
{%- if builder == 'web' %}
|
|
||||||
<link rel="stylesheet" href="{{ pathto('index') }}?do=stylesheet{%
|
|
||||||
if in_admin_panel %}&admin=yes{% endif %}" type="text/css">
|
|
||||||
{%- for link, type, title in page_links %}
|
|
||||||
<link rel="alternate" type="{{ type|e(true) }}" title="{{ title|e(true) }}" href="{{ link|e(true) }}">
|
|
||||||
{%- endfor %}
|
|
||||||
{%- else %}
|
|
||||||
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css">
|
|
||||||
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css">
|
|
||||||
{%- endif %}
|
|
||||||
{%- if builder != 'htmlhelp' %}
|
|
||||||
<script type="text/javascript">
|
|
||||||
var DOCUMENTATION_OPTIONS = {
|
|
||||||
URL_ROOT: '{{ pathto("", 1) }}',
|
|
||||||
VERSION: '{{ release }}'
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
<script type="text/javascript" src="{{ pathto('_static/jquery.js', 1) }}"></script>
|
|
||||||
<script type="text/javascript" src="{{ pathto('_static/interface.js', 1) }}"></script>
|
|
||||||
<script type="text/javascript" src="{{ pathto('_static/doctools.js', 1) }}"></script>
|
|
||||||
{%- endif %}
|
|
||||||
{%- block rellinks %}
|
|
||||||
{%- if hasdoc('about') %}
|
|
||||||
<link rel="author" title="About these documents" href="{{ pathto('about') }}">
|
|
||||||
{%- endif %}
|
|
||||||
<link rel="contents" title="Global table of contents" href="{{ pathto('contents') }}">
|
|
||||||
<link rel="index" title="Global index" href="{{ pathto('genindex') }}">
|
|
||||||
<link rel="search" title="Search" href="{{ pathto('search') }}">
|
|
||||||
{%- if hasdoc('copyright') %}
|
|
||||||
<link rel="copyright" title="Copyright" href="{{ pathto('copyright') }}">
|
|
||||||
{%- endif %}
|
|
||||||
<link rel="top" title="{{ project }} Documentation" href="{{ pathto('index') }}">
|
|
||||||
{%- if parents %}
|
|
||||||
<link rel="up" title="{{ parents[-1].title|striptags }}" href="{{ parents[-1].link|e }}">
|
|
||||||
{%- endif %}
|
|
||||||
{%- if next %}
|
|
||||||
<link rel="next" title="{{ next.title|striptags }}" href="{{ next.link|e }}">
|
|
||||||
{%- endif %}
|
|
||||||
{%- if prev %}
|
|
||||||
<link rel="prev" title="{{ prev.title|striptags }}" href="{{ prev.link|e }}">
|
|
||||||
{%- endif %}
|
|
||||||
{%- endblock %}
|
|
||||||
{%- block extrahead %}{% endblock %}
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
{%- block beforerelbar %}{% endblock %}
|
|
||||||
{%- block relbar1 %}{{ relbar() }}{% endblock %}
|
|
||||||
{%- block afterrelbar %}{% endblock %}
|
|
||||||
|
|
||||||
{%- block beforesidebar1 %}{% endblock %}
|
|
||||||
{%- block sidebar1 %}{# possible location for sidebar #}{% endblock %}
|
|
||||||
{%- block aftersidebar1 %}{% endblock %}
|
|
||||||
|
|
||||||
{%- block beforedocument %}{% endblock %}
|
|
||||||
<div class="document">
|
|
||||||
<div class="documentwrapper">
|
|
||||||
{%- if builder != 'htmlhelp' %}
|
|
||||||
<div class="bodywrapper">
|
|
||||||
{%- endif %}
|
|
||||||
<div class="body">
|
|
||||||
{% block body %}{% endblock %}
|
|
||||||
</div>
|
|
||||||
{%- if builder != 'htmlhelp' %}
|
|
||||||
</div>
|
|
||||||
{%- endif %}
|
|
||||||
</div>
|
|
||||||
{%- block afterdocument %}{% endblock %}
|
|
||||||
|
|
||||||
{%- block beforesidebar2 %}{% endblock %}
|
|
||||||
{%- block sidebar2 %}{{ sidebar() }}{% endblock %}
|
|
||||||
{%- block aftersidebar2 %}{% endblock %}
|
|
||||||
<div class="clearer"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{%- block relbar2 %}{{ relbar() }}{% endblock %}
|
|
||||||
|
|
||||||
{%- block beforefooter %}{% endblock %}
|
|
||||||
{%- block footer %}
|
|
||||||
<div class="footer">
|
|
||||||
{%- if hasdoc('copyright') %}
|
|
||||||
© <a href="{{ pathto('copyright') }}">Copyright</a> {{ copyright }}.
|
|
||||||
{%- else %}
|
|
||||||
© Copyright {{ copyright }}.
|
|
||||||
{%- endif %}
|
|
||||||
{%- if last_updated %}
|
|
||||||
Last updated on {{ last_updated }}.
|
|
||||||
{%- endif %}
|
|
||||||
</div>
|
|
||||||
{%- endblock %}
|
|
||||||
{%- block afterfooter %}{% endblock %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1,55 +0,0 @@
|
|||||||
{%- macro sidebar %}
|
|
||||||
{%- if builder != 'htmlhelp' %}
|
|
||||||
<div class="sidebar">
|
|
||||||
<div class="sidebarwrapper">
|
|
||||||
{% if display_toc %}
|
|
||||||
<h3>Table Of Contents</h3>
|
|
||||||
{{ toc }}
|
|
||||||
{% endif %}
|
|
||||||
{%- if prev %}
|
|
||||||
<h4>Previous topic</h4>
|
|
||||||
<p class="topless"><a href="{{ prev.link|e }}" title="previous chapter">{{ prev.title }}</a></p>
|
|
||||||
{%- endif %}
|
|
||||||
{%- if next %}
|
|
||||||
<h4>Next topic</h4>
|
|
||||||
<p class="topless"><a href="{{ next.link|e }}" title="next chapter">{{ next.title }}</a></p>
|
|
||||||
{%- endif %}
|
|
||||||
{% if sourcename %}
|
|
||||||
<h3>This Page</h3>
|
|
||||||
<ul class="this-page-menu">
|
|
||||||
{% if builder == 'web' %}
|
|
||||||
<li><a href="#comments">Comments ({{ comments|length }} so far)</a></li>
|
|
||||||
<li><a href="{{ pathto('@edit/' + sourcename)|e }}">Suggest Change</a></li>
|
|
||||||
<li><a href="{{ pathto('@source/' + sourcename)|e }}">Show Source</a></li>
|
|
||||||
{% elif builder == 'html' %}
|
|
||||||
<li><a href="{{ pathto('_sources/' + sourcename, true)|e }}">Show Source</a></li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
{% endif %}
|
|
||||||
{% if customsidebar %}
|
|
||||||
{{ rendertemplate(customsidebar) }}
|
|
||||||
{% endif %}
|
|
||||||
{% if current_page_name != "search" %}
|
|
||||||
<h3>{{ builder == 'web' and 'Keyword' or 'Quick' }} search</h3>
|
|
||||||
<form class="search" action="{{ pathto('search') }}" method="get">
|
|
||||||
<input type="text" name="q" size="18"> <input type="submit" value="Go">
|
|
||||||
<input type="hidden" name="check_keywords" value="yes">
|
|
||||||
<input type="hidden" name="area" value="default">
|
|
||||||
</form>
|
|
||||||
{% if builder == 'web' %}
|
|
||||||
<p style="font-size: 90%">Enter a module, class or function name.</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
<div style="text-align: center; font: x-large monospace bold; color:yellow; margin-top: 50px;">
|
|
||||||
<style type="text/css">
|
|
||||||
a.app:hover { text-decoration: none; color: red; }
|
|
||||||
</style>
|
|
||||||
<a href="http://{{ project }}.kovidgoyal.net" class="app" style="border:none">
|
|
||||||
<img alt="logo" src="_static/logo.png" style="border:none"/><br />{{ project }}
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{%- endif %}
|
|
||||||
{%- endmacro %}
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user