mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Doc updates to setting up a calibre development environment
This commit is contained in:
parent
9772c12b4e
commit
fb2d1a4ea4
@ -28,7 +28,7 @@ For example, adding support for a new device to |app| typically involves writing
|
|||||||
a device driver plugin. You can browse the
|
a device driver plugin. You can browse the
|
||||||
`built-in drivers <http://bazaar.launchpad.net/%7Ekovid/calibre/trunk/files/head%3A/src/calibre/devices/>`_. Similarly, adding support
|
`built-in drivers <http://bazaar.launchpad.net/%7Ekovid/calibre/trunk/files/head%3A/src/calibre/devices/>`_. Similarly, adding support
|
||||||
for new conversion formats involves writing input/output format plugins. Another example of the modular design is the :ref:`recipe system <news>` for
|
for new conversion formats involves writing input/output format plugins. Another example of the modular design is the :ref:`recipe system <news>` for
|
||||||
fetching news.
|
fetching news. For more examples of plugins designed to add features to |app|, see the `plugin index <http://www.mobileread.com/forums/showthread.php?t=118764>`_.
|
||||||
|
|
||||||
Code layout
|
Code layout
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
@ -36,14 +36,18 @@ Code layout
|
|||||||
All the |app| python code is in the ``calibre`` package. This package contains the following main sub-packages
|
All the |app| python code is in the ``calibre`` package. This package contains the following main sub-packages
|
||||||
|
|
||||||
* devices - All the device drivers. Just look through some of the built-in drivers to get an idea for how they work.
|
* devices - All the device drivers. Just look through some of the built-in drivers to get an idea for how they work.
|
||||||
* For details, see: devices.interface which defines the interface supported by device drivers and devices.usbms which defines a generic driver that connects to a USBMS device. All USBMS based drivers in calibre inherit from it.
|
* For details, see: devices.interface which defines the interface supported by device drivers and devices.usbms which
|
||||||
* ebooks - All the ebook conversion code. A good starting point is ``calibre.ebooks.conversion.cli`` which is the
|
defines a generic driver that connects to a USBMS device. All USBMS based drivers in calibre inherit from it.
|
||||||
|
* ebooks - All the ebook conversion/metadata code. A good starting point is ``calibre.ebooks.conversion.cli`` which is the
|
||||||
module powering the :command:`ebook-convert` command. The conversion process is controlled via conversion.plumber.
|
module powering the :command:`ebook-convert` command. The conversion process is controlled via conversion.plumber.
|
||||||
The format independent code is all in ebooks.oeb and the format dependent stuff is in ebooks.format_name.
|
The format independent code is all in ebooks.oeb and the format dependent stuff is in ebooks.format_name.
|
||||||
* Metadata reading writing and downloading is all in ebooks.metadata
|
* Metadata reading writing and downloading is all in ebooks.metadata
|
||||||
* library - The database backed and the content server. See library.database2 for the interface to the calibre library. library.server is the calibre Content Server.
|
* library - The database backed and the content server. See library.database2 for the interface to the calibre library. library.server is the calibre Content Server.
|
||||||
* gui2 - The Graphical User Interface. GUI initialization happens in gui2.main and gui2.ui. The ebook-viewer is in gui2.viewer.
|
* gui2 - The Graphical User Interface. GUI initialization happens in gui2.main and gui2.ui. The ebook-viewer is in gui2.viewer.
|
||||||
|
|
||||||
|
If you need help understanding the code, post in the `development forum <http://www.mobileread.com/forums/forumdisplay.php?f=240>`_
|
||||||
|
and you will most likely get help from one of |app|'s many developers.
|
||||||
|
|
||||||
Getting the code
|
Getting the code
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user