Get rid of global.rst and REMOVE_IN_PDF

This commit is contained in:
Kovid Goyal 2014-08-11 22:58:19 +05:30
parent 44276ef20b
commit 6a0f24b281
31 changed files with 51 additions and 109 deletions

View File

@ -1,6 +1,3 @@
.. include:: global.rst
.. _catalog_tut:
Creating AZW3 • EPUB • MOBI Catalogs

View File

@ -25,6 +25,8 @@ custom
needs_sphinx = '1.0'
rst_prolog = '.. |app| replace:: %s' % __appname__
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.addons.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'custom', 'sphinx.ext.viewcode']
@ -36,7 +38,9 @@ templates_path = ['templates']
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
master_doc = 'index' if tags.has('online') else 'simple_index' # noqa
# kill the warning about index/simple_index not being in a toctree
exclude_patterns = ['simple_index.rst'] if master_doc == 'index' else ['index']
# The language
language = 'en'
@ -93,7 +97,7 @@ html_sidebars = {
}
# The favicon
html_favicon = 'favicon.ico'
html_favicon = '../icons/favicon.ico'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the built-in static files,

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _conversion:
Ebook Conversion

View File

@ -1,6 +1,3 @@
.. include:: global.rst
.. _pluginstutorial:
Writing your own plugins to extend |app|'s functionality

View File

@ -20,8 +20,6 @@ def substitute(app, doctree):
pass
CLI_INDEX='''
.. include:: ../global.rst
.. _cli:
Command Line Interface
@ -52,8 +50,6 @@ in a terminal.
'''
CLI_PREAMBLE='''\
.. include:: ../global.rst
.. _{cmd}:
``{cmd}``

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. currentmodule:: calibre.customize.__init__
.. _customize:

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _db_api:
API Documentation for the database interface

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _develop:
Setting up a |app| development environment

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _diff:
Comparing E-books

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _edit:
Editing E-books

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _faq:
Frequently Asked Questions

View File

@ -1 +0,0 @@
.. |app| replace:: calibre

View File

@ -1,4 +1,3 @@
.. include:: global.rst
Glossary
==========
@ -28,3 +27,4 @@ Glossary
regexp
**Regular expressions** provide a concise and flexible means for identifying strings of text of interest, such as particular characters, words, or patterns of characters. See `regexp syntax <http://docs.python.org/lib/re-syntax.html>`_ for the syntax of regular expressions used in Python.

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _gui:
The Graphical User Interface

View File

@ -1,46 +1,4 @@
.. include:: global.rst
===============================================
|app| User Manual
===============================================
|app| is an ebook library manager. It can view, convert and catalog ebooks in most of the major ebook formats. It can also talk to many ebook reader devices. It can go out to the Internet and fetch metadata for your books. It can download newspapers and convert them into ebooks for convenient reading. It is cross platform, running on Linux, Windows and OS X.
You've just started |app|. What do you do now? Before |app| can do anything with your ebooks, it first has to know about them. Drag and drop a few ebook files into |app|, or click the "Add books" button and browse for the ebooks you want to work with. Once you've added the books, they will show up in the main view looking something like this:
.. image:: images/added_books.png
Once you've admired the list of books you just added to your heart's content, you'll probably want to read one. In order to do that you'll have to convert the book to a format your reader understands. When first running |app|, the Welcome Wizard starts and will set up calibre for your reader device. Conversion is a breeze. Just select the book you want to convert then click the "Convert books" button. Ignore all the options for now and click "OK". The little icon in the bottom right corner will start spinning. Once it's finished spinning, your converted book is ready. Click the "View" button to read the book.
If you want to read the book on your reader, connect it to the computer, wait till calibre detects it (10-20 seconds) and then click the "Send to device" button. Once the icon stops spinning again, disconnect your reader and read away! If you didn't convert the book in the previous step, |app| will auto convert it to the format your reader device understands.
To get started with more advanced usage, you should read about the :ref:`Graphical User Interface <gui>`. For even more power and versatility, learn the :ref:`Command Line Interface <cli>`. You will find the list of :ref:`Frequently Asked Questions <faq>` useful as well.
.. only:: online
**An ebook version of this user manual is available in** `EPUB format <calibre.epub>`_, `AZW3 (Kindle Fire) format <calibre.azw3>`_ and `PDF format <calibre.pdf>`_.
Sections
------------
.. toctree::
:maxdepth: 1
gui
news
viewer
conversion
edit
diff
metadata
faq
tutorials
customize
cli/cli-index
develop
glossary
.. REMOVE_IN_PDF
.. include:: simple_index.rst
The main |app| user interface
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _metadata:
Editing Ebook Metadata

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _news:
Adding your favorite news website

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _news_recipe:
API Documentation for recipes

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _plugins:
API Documentation for plugins

View File

@ -1,6 +1,3 @@
.. include:: global.rst
.. _polish_api:
API Documentation for the ebook editing tools

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _regexptutorial:
All about using regular expressions in |app|

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _servertutorial:
Integrating the |app| content server into other servers

43
manual/simple_index.rst Normal file
View File

@ -0,0 +1,43 @@
===============================================
|app| User Manual
===============================================
|app| is an ebook library manager. It can view, convert and catalog ebooks in most of the major ebook formats. It can also talk to many ebook reader devices. It can go out to the Internet and fetch metadata for your books. It can download newspapers and convert them into ebooks for convenient reading. It is cross platform, running on Linux, Windows and OS X.
You've just started |app|. What do you do now? Before |app| can do anything with your ebooks, it first has to know about them. Drag and drop a few ebook files into |app|, or click the "Add books" button and browse for the ebooks you want to work with. Once you've added the books, they will show up in the main view looking something like this:
.. image:: images/added_books.png
Once you've admired the list of books you just added to your heart's content, you'll probably want to read one. In order to do that you'll have to convert the book to a format your reader understands. When first running |app|, the Welcome Wizard starts and will set up calibre for your reader device. Conversion is a breeze. Just select the book you want to convert then click the "Convert books" button. Ignore all the options for now and click "OK". The little icon in the bottom right corner will start spinning. Once it's finished spinning, your converted book is ready. Click the "View" button to read the book.
If you want to read the book on your reader, connect it to the computer, wait till calibre detects it (10-20 seconds) and then click the "Send to device" button. Once the icon stops spinning again, disconnect your reader and read away! If you didn't convert the book in the previous step, |app| will auto convert it to the format your reader device understands.
To get started with more advanced usage, you should read about the :ref:`Graphical User Interface <gui>`. For even more power and versatility, learn the :ref:`Command Line Interface <cli>`. You will find the list of :ref:`Frequently Asked Questions <faq>` useful as well.
.. only:: online
**An ebook version of this user manual is available in** `EPUB format <calibre.epub>`_, `AZW3 (Kindle Fire) format <calibre.azw3>`_ and `PDF format <calibre.pdf>`_.
Sections
------------
.. toctree::
:maxdepth: 1
gui
news
viewer
conversion
edit
diff
metadata
faq
tutorials
customize
cli/cli-index
develop
glossary

View File

@ -1,6 +1,3 @@
.. include:: global.rst
.. _subgroups-tutorial:
Managing subgroups of books, for example "genre"

View File

@ -1,6 +1,3 @@
.. include:: global.rst
.. _templatelangcalibre:
The |app| template language

View File

@ -7,8 +7,6 @@ __copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
from collections import defaultdict
PREAMBLE = '''\
.. include:: global.rst
.. _templaterefcalibre:
Reference for all built-in template language functions

View File

@ -1,6 +1,3 @@
.. include:: global.rst
.. _tutorials:
Tutorials

View File

@ -1,6 +1,3 @@
.. include:: global.rst
.. _typesetting_math:

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _viewer:
The Ebook Viewer

View File

@ -1,6 +1,3 @@
.. include:: global.rst
.. _virtual_libraries:

View File

@ -1,5 +1,3 @@
.. include:: global.rst
.. _xpath-tutorial:
XPath Tutorial