mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix documentation
This commit is contained in:
parent
f01341f750
commit
7f2f01edc8
@ -7,7 +7,7 @@ url: http://libprs500.kovidgoyal.net
|
||||
# The list of modules to document. Modules can be named using
|
||||
# dotted names, module filenames, or package directory names.
|
||||
# This option may be repeated.
|
||||
modules: src/libprs500/*.py, libprs500.lrf, struct
|
||||
modules: src/libprs500/*.py, libprs500.ebooks.lrf, struct
|
||||
|
||||
output: pdf
|
||||
target: docs/pdf
|
||||
|
@ -7,7 +7,7 @@ url: http://libprs500.kovidgoyal.net
|
||||
# The list of modules to document. Modules can be named using
|
||||
# dotted names, module filenames, or package directory names.
|
||||
# This option may be repeated.
|
||||
modules: src/libprs500/*.py, libprs500.lrf, struct
|
||||
modules: src/libprs500/*.py, libprs500.ebooks.lrf, struct
|
||||
|
||||
# Write html output to the directory "docs"
|
||||
output: html
|
||||
|
@ -12,27 +12,7 @@
|
||||
## You should have received a copy of the GNU General Public License along
|
||||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
"""
|
||||
This package provides an interface to the SONY Reader PRS-500 over USB.
|
||||
|
||||
The public interface for device backends is defined in libprs500.device.
|
||||
|
||||
There is also a script L{prs500} that provides a command-line interface to
|
||||
the SONY Reader. See the script
|
||||
for more usage examples. A GUI is available via the command prs500-gui.
|
||||
|
||||
The packet structure used by the SONY Reader USB protocol is defined
|
||||
in the module L{prstypes}. The communication logic
|
||||
is defined in the module L{communicate}.
|
||||
|
||||
In order to use it as a non-root user on Linux, you should have
|
||||
the following rule in C{/etc/udev/rules.d/90-local.rules} ::
|
||||
BUS=="usb", SYSFS{idProduct}=="029b", SYSFS{idVendor}=="054c",
|
||||
MODE="660", GROUP="plugdev"
|
||||
You may have to adjust the GROUP and the location of the rules file to
|
||||
suit your distribution.
|
||||
"""
|
||||
|
||||
''' E-book management software'''
|
||||
__version__ = "0.3.43"
|
||||
__docformat__ = "epytext"
|
||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||
|
18
upload
18
upload
@ -1,7 +1,13 @@
|
||||
#!/usr/bin/python
|
||||
import sys, glob, os, subprocess
|
||||
from subprocess import check_call as _check_call
|
||||
from functools import partial
|
||||
from pyvix.vix import *
|
||||
|
||||
check_call = partial(_check_call, shell=True)
|
||||
|
||||
check_call("sudo python setup.py develop", shell=True)
|
||||
|
||||
files = glob.glob('dist/*.exe')
|
||||
for file in files:
|
||||
os.unlink(file)
|
||||
@ -37,18 +43,6 @@ f.write(open(os.path.join(HTML2LRF, 'demo.html')).read())
|
||||
f.write('\n</pre>')
|
||||
f.close()
|
||||
|
||||
def check_call(cmd):
|
||||
try:
|
||||
retcode = subprocess.call(cmd, shell=True)
|
||||
if retcode < 0:
|
||||
print >>sys.stderr, cmd, "was terminated by signal", -retcode
|
||||
elif retcode > 0:
|
||||
print >>sys.stderr, cmd, 'failed with retrun code:', retcode
|
||||
if retcode != 0:
|
||||
sys.exit(1)
|
||||
except OSError, e:
|
||||
print >>sys.stderr, "Execution of", cmd, "failed:", e
|
||||
sys.exit(1)
|
||||
|
||||
check_call('''html2lrf --title='Demonstration of html2lrf' --author='Kovid Goyal' --header --output=/tmp/html2lrf.lrf %s/demo.html'''%(HTML2LRF,))
|
||||
check_call('''scp /tmp/html2lrf.lrf castalia:%s/'''%(DOWNLOADS,))
|
||||
|
Loading…
x
Reference in New Issue
Block a user