Move the User Manual out of the src/ directory
@ -3,9 +3,9 @@
|
|||||||
src/calibre/plugins
|
src/calibre/plugins
|
||||||
resources/images.qrc
|
resources/images.qrc
|
||||||
src/calibre/ebooks/oeb/display/test/*.js
|
src/calibre/ebooks/oeb/display/test/*.js
|
||||||
src/calibre/manual/.build/
|
manual/.build/
|
||||||
src/calibre/manual/cli/
|
manual/cli/
|
||||||
src/calibre/manual/template_ref.rst
|
manual/template_ref.rst
|
||||||
build
|
build
|
||||||
dist
|
dist
|
||||||
docs
|
docs
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
import sys, os
|
import sys, os
|
||||||
|
|
||||||
# If your extensions are in another directory, add it here.
|
# If your extensions are in another directory, add it here.
|
||||||
sys.path.append(os.path.abspath('../../../'))
|
sys.path.append(os.path.abspath('../src'))
|
||||||
sys.path.append(os.path.abspath('.'))
|
sys.path.append(os.path.abspath('.'))
|
||||||
__appname__ = os.environ.get('__appname__', 'calibre')
|
__appname__ = os.environ.get('__appname__', 'calibre')
|
||||||
__version__ = os.environ.get('__version__', '0.0.0')
|
__version__ = os.environ.get('__version__', '0.0.0')
|
||||||
@ -98,7 +98,7 @@ html_favicon = 'favicon.ico'
|
|||||||
# Add any paths that contain custom static files (such as style sheets) here,
|
# 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,
|
# relative to this directory. They are copied after the built-in static files,
|
||||||
# so a file named "default.css" will overwrite the built-in "default.css".
|
# so a file named "default.css" will overwrite the built-in "default.css".
|
||||||
html_static_path = ['resources', '../../../icons/favicon.ico']
|
html_static_path = ['resources', '../icons/favicon.ico']
|
||||||
|
|
||||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||||
# using the given strftime format.
|
# using the given strftime format.
|
@ -5,9 +5,9 @@ __license__ = 'GPL v3'
|
|||||||
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||||
import sys, os, re, textwrap
|
import sys, os, re, textwrap
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('../../'))
|
sys.path.insert(0, os.path.abspath('../src'))
|
||||||
sys.extensions_location = '../plugins'
|
sys.extensions_location = '../src/calibre/plugins'
|
||||||
sys.resources_location = '../../../resources'
|
sys.resources_location = '../resources'
|
||||||
|
|
||||||
from sphinx.util.console import bold
|
from sphinx.util.console import bold
|
||||||
|
|
@ -39,7 +39,7 @@ Tweaks
|
|||||||
Tweaks are small changes that you can specify to control various aspects of |app|'s behavior. You can change them by going to Preferences->Advanced->Tweaks.
|
Tweaks are small changes that you can specify to control various aspects of |app|'s behavior. You can change them by going to Preferences->Advanced->Tweaks.
|
||||||
The default values for the tweaks are reproduced below
|
The default values for the tweaks are reproduced below
|
||||||
|
|
||||||
.. literalinclude:: ../../../resources/default_tweaks.py
|
.. literalinclude:: ../resources/default_tweaks.py
|
||||||
|
|
||||||
|
|
||||||
Overriding icons, templates, et cetera
|
Overriding icons, templates, et cetera
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 9.4 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 662 B After Width: | Height: | Size: 662 B |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 228 KiB After Width: | Height: | Size: 228 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 724 B After Width: | Height: | Size: 724 B |
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 628 B After Width: | Height: | Size: 628 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
@ -55,7 +55,7 @@ The python implementation of the template functions is passed in a Metadata obje
|
|||||||
|
|
||||||
The set of standard metadata fields.
|
The set of standard metadata fields.
|
||||||
|
|
||||||
.. literalinclude:: ../ebooks/metadata/book/__init__.py
|
.. literalinclude:: ../src/calibre/ebooks/metadata/book/__init__.py
|
||||||
:lines: 7-
|
:lines: 7-
|
||||||
'''
|
'''
|
||||||
|
|
@ -189,7 +189,7 @@ class LinuxFreeze(Command):
|
|||||||
for x in os.listdir(self.SRC):
|
for x in os.listdir(self.SRC):
|
||||||
shutil.copytree(self.j(self.SRC, x), self.j(dest, x),
|
shutil.copytree(self.j(self.SRC, x), self.j(dest, x),
|
||||||
ignore=ignore_in_lib)
|
ignore=ignore_in_lib)
|
||||||
for x in ('manual', 'trac'):
|
for x in ('trac',):
|
||||||
x = self.j(dest, 'calibre', x)
|
x = self.j(dest, 'calibre', x)
|
||||||
if os.path.exists(x):
|
if os.path.exists(x):
|
||||||
shutil.rmtree(x)
|
shutil.rmtree(x)
|
||||||
|
@ -66,7 +66,7 @@ class Manual(Command):
|
|||||||
|
|
||||||
def run(self, opts):
|
def run(self, opts):
|
||||||
cwd = os.path.abspath(os.getcwd())
|
cwd = os.path.abspath(os.getcwd())
|
||||||
os.chdir(os.path.join(self.SRC, 'calibre', 'manual'))
|
os.chdir(os.path.join(self.SRC, '..', 'manual'))
|
||||||
try:
|
try:
|
||||||
for d in ('.build', 'cli'):
|
for d in ('.build', 'cli'):
|
||||||
if os.path.exists(d):
|
if os.path.exists(d):
|
||||||
|
@ -177,12 +177,12 @@ class UploadUserManual(Command): # {{{
|
|||||||
subprocess.check_call(['scp', f.name, 'divok:'+dest])
|
subprocess.check_call(['scp', f.name, 'divok:'+dest])
|
||||||
|
|
||||||
def run(self, opts):
|
def run(self, opts):
|
||||||
path = self.j(self.SRC, 'calibre', 'manual', 'plugin_examples')
|
path = self.j(self.SRC, '..', 'manual', 'plugin_examples')
|
||||||
for x in glob.glob(self.j(path, '*')):
|
for x in glob.glob(self.j(path, '*')):
|
||||||
self.build_plugin_example(x)
|
self.build_plugin_example(x)
|
||||||
|
|
||||||
check_call(' '.join(['rsync', '-z', '-r', '--progress',
|
check_call(' '.join(['rsync', '-z', '-r', '--progress',
|
||||||
'src/calibre/manual/.build/html/',
|
'manual/.build/html/',
|
||||||
'bugs:%s'%USER_MANUAL]), shell=True)
|
'bugs:%s'%USER_MANUAL]), shell=True)
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|