Martin A. Brown
76fd27d1fa
pep8/pyflakes fixes
2016-03-07 12:10:49 -08:00
Martin A. Brown
dfc20c5617
move directory-handling logic to the processor
...
In preparation for supporting a separate --builddir (allowing minimal
disruption of real output directory during rebuild) factor all output
directory handling logic into the main processor object (BaseDoctype).
Simplify the generate() method.
Centralize all pre-build logic in hook_build_prepare().
Remove all hook logic from the OutputDirectory.
2016-03-07 11:34:09 -08:00
Martin A. Brown
98b19ac5ce
do not mkdir() if we are in --script mode
2016-03-07 10:01:42 -08:00
Martin A. Brown
f87458c461
rearranging and renaming build setup methods
...
in preparation for supporting a build-directory, moving the os.chdir() and the
copying of image files into tldp/doctypes/common.py and adding a few hooks in
the main logic for building
2016-03-07 09:50:22 -08:00
Martin A. Brown
50af88ebde
switch to os.path.exists(), prep for chunked is own subdir
2016-03-04 17:07:36 -08:00
Martin A. Brown
e2aff4f388
add alternate constructor
2016-03-03 11:21:54 -08:00
Martin A. Brown
83e1c7a57b
needed output.validsource for DocBook XML xmllint validation
2016-03-02 23:52:50 -08:00
Martin A. Brown
ee88d451a8
pyflakes/pep8 fixes
2016-03-01 22:53:07 -08:00
Martin A. Brown
51250d4a47
add a tiny bit more verbosity to output detail
2016-03-01 20:17:23 -08:00
Martin A. Brown
08ef4c35bf
only say we are removing, if removing
2016-03-01 18:38:58 -08:00
Martin A. Brown
65a80f1339
add __name__ to getLogger() calls
2016-02-25 12:29:55 -08:00
Martin A. Brown
859b7f893f
pull logger straight from logging; use abs imports
2016-02-25 11:39:18 -08:00
Martin A. Brown
03881d20de
use case-insensitive sorting
2016-02-25 09:31:49 -08:00
Martin A. Brown
4c7e92ca17
a wee bit more logging and better emphasis on the word SUCCESS
2016-02-23 22:54:57 -08:00
Martin A. Brown
c6ebbf8a64
make a bit less noise in routine operation
2016-02-23 21:59:20 -08:00
Martin A. Brown
2fef28a299
adjust the logging information
2016-02-23 12:25:54 -08:00
Martin A. Brown
53c91eebe6
rename the hooks so they start with hook_
2016-02-23 11:58:29 -08:00
Martin A. Brown
7bb5e35aeb
add detail method to source and output documents
...
the detail method produces some output listing about the
document and will soon include more verbosity
2016-02-23 08:44:16 -08:00
Martin A. Brown
01acf2dfa6
add a property/function for reporting missing files
2016-02-22 21:21:48 -08:00
Martin A. Brown
25add163cb
rely on LDPDocumentCollection
2016-02-22 20:02:12 -08:00
Martin A. Brown
28f7a8468c
minor documentation fixes
2016-02-18 13:58:30 -08:00
Martin A. Brown
bf768d0277
adding basic docstrings
2016-02-18 13:22:48 -08:00
Martin A. Brown
d643883e50
change name_index to name_indexhtml; adapt tests
...
also minor logging adjustments for clarity and consistency
2016-02-18 09:15:47 -08:00
Martin A. Brown
d3b6ad8e56
add iscomplete property to OutputDirectory
2016-02-17 19:19:48 -08:00
Martin A. Brown
eed25efbba
simplify cleaning; add (unused) name_epub
2016-02-17 19:04:21 -08:00
Martin A. Brown
fd3b931423
include hooks for prebuild and postbuild states
2016-02-17 18:31:51 -08:00
Martin A. Brown
2bcb55e2a0
flipping the stem/dirname arguments
2016-02-17 13:50:06 -08:00
Martin A. Brown
9301a54ab2
switch to using statfiles
2016-02-17 11:19:48 -08:00
Martin A. Brown
dab2f1f8b1
adding support for documents to know their status
2016-02-17 00:17:49 -08:00
Martin A. Brown
8a1afb6e24
allow creation of empty OutputCollection; fixes
...
Allow creation of an empty OutputCollection so that the object can be handed
around in driver.py for higher-level document wrangling.
Also, repair one inobvious statement, thank you pep8/pyflakes
2016-02-16 23:43:07 -08:00
Martin A. Brown
fbb6e56929
fixes found during testing
...
should standardize on IOError for errno.ENOENT across the package
adhere to standard choice of logging message
make sure to skip a non-directory in OutputCollection ("continue")
2016-02-16 14:13:17 -08:00
Martin A. Brown
82a0fce575
initial test script for outputs.py
2016-02-15 23:52:52 -08:00
Martin A. Brown
8163efa0a5
converting OutputTree to behave like a dict
2016-02-15 21:55:58 -08:00
Martin A. Brown
68e3b2f0cb
improving cleaning, esp. index.html
2016-02-15 21:04:41 -08:00
Martin A. Brown
b6076fec82
create OutputDirectory and OutputTree
...
an OutputTree must exist already, contains all of the OutputDocuments
an OutputDocument determines the stem from the dirname and depends on
the OutputNamingConvention for choosing names for the primary files of each
generated output type
2016-02-15 14:01:55 -08:00
Martin A. Brown
eb4de2f877
prettier __repr__ for OutputDir
2016-02-12 10:32:09 -08:00
Martin A. Brown
bbe1985a81
changing to __future__ (consistency across project)
2016-02-11 11:29:00 -08:00
Martin A. Brown
6de9aee212
changing names to sourcedir and outputdir
2016-02-11 09:28:31 -08:00
Martin A. Brown
035ff36afb
adding OutputDir to outputs.py
2016-02-11 09:15:22 -08:00
Martin A. Brown
701657e54b
initial commit
2016-02-10 19:22:23 -08:00