Martin A. Brown
a488ae53de
add testing support for new format Asciidoc
2016-03-09 08:09:52 -08:00
Martin A. Brown
0c433d7306
removing text (will be supported by asciidoc)
2016-03-09 07:54:55 -08:00
Martin A. Brown
885d6a12f3
adding support for format asciidoc
...
simply using DocBook4XML to provide most of the effort
2016-03-09 07:39:14 -08:00
Martin A. Brown
ffe327ced0
removing boilerplate; go from asciidoc to docbook45
2016-03-08 09:16:33 -08:00
Martin A. Brown
62c9cef32f
docbooksgml needs to know about --script mode
2016-03-08 09:16:12 -08:00
Martin A. Brown
ca8b8e211f
minor cosmetic improvements to generated shell file
2016-03-08 09:11:09 -08:00
Martin A. Brown
814dfec181
pep8/pyflakes fixes
2016-03-07 12:12:34 -08:00
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
c390e71b4a
removing all chdir() and resource copying logic
...
the logic for making sure to chdir() into the build directory has been
sequestered into doctypes/common.py (and output.py); additionally, it is
smarter to put the resource copying logic, there, as well
2016-03-07 10:20:55 -08:00
Martin A. Brown
fc4c83307f
do not mkdir() if we are in --script mode
2016-03-07 10:01:26 -08:00
Martin A. Brown
99d6232259
simplify text in commented lines
2016-03-07 10:00:51 -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
b30e2af282
require exact signature match; stop with .lower()
...
was comparing for case insensitive matches when locating signatures; probably
a bad idea; better to simply require an exact match
2016-03-07 09:11:35 -08:00
Martin A. Brown
e6b6ea7b40
add support for --doctypes and --statustypes
...
provide CLI-discoverable listing of supported source document types and status
types
2016-03-06 11:29:13 -08:00
Martin A. Brown
bfd6c1a0a1
tldp/doctypes/docbook4xml.py
...
correct dependency listings for validated source removal
2016-03-05 19:24:05 -08:00
Martin A. Brown
760cd392f4
use newer, simpler topo-sort for dependency tracking
2016-03-05 17:08:33 -08:00
Martin A. Brown
4c01ae4af7
simplify topological dependency solution
...
This patch prepares the way for simplifying the topological sort solution for
the classes which implement the document building logic. Formerly, each
doctype class had to import networx itself and the @depends decorator stuffed
the dependencies into a graph in the class variable.
Now, each method tracks its dependencies (same decorator trick), but the
topological sort is not computed until just before running the job. This is
more flexible, more obvious, simpler and features less code replication.
The next commit or two will convert the remaining doctype classes to use this
techinque.
2016-03-05 17:04:45 -08:00
Martin A. Brown
7d287b44e5
the required items should say asciidoc_
2016-03-05 15:58:26 -08:00
Martin A. Brown
93fb5b3356
quote that argument
2016-03-04 21:34:44 -08:00
Martin A. Brown
d8f14c9e55
initial support for asciidoc format
2016-03-04 17:10:30 -08:00
Martin A. Brown
f617cca3d3
add support for Asciidoc detection
2016-03-04 17:10:21 -08:00
Martin A. Brown
2a0e383c26
run the xinclude first, then validate document
2016-03-04 11:46:17 -08:00
Martin A. Brown
3e1b732b32
correct the help string for docbook.rng
2016-03-04 08:53:53 -08:00
Martin A. Brown
92e7c8bc89
lowering verbosity on reporting tool/data detection
2016-03-04 07:58:03 -08:00
Martin A. Brown
bba998b7b9
adding NS XSL fs locations for Debian
2016-03-04 07:53:29 -08:00
Martin A. Brown
0ae4fd4806
flesh out support for DocBook 5.0
...
this is the main commit which provides support for generating documents from
sources written in DocBook 5.0.
2016-03-03 23:45:20 -08:00
Martin A. Brown
9a5bd5fd05
scripts look stupid without a final newline
2016-03-03 23:45:05 -08:00
Martin A. Brown
0ee742b64b
add internal support for dumping shellscript
...
added support to the BaseDoctype class so that it can dump a script instead of
executing the script
2016-03-03 11:22:09 -08:00
Martin A. Brown
6ac2699fbf
removing reference to unused variable buildorder
2016-03-02 23:52:29 -08:00
Martin A. Brown
369d53eb35
be louder about the signature finding (or not)
2016-03-02 23:51:27 -08:00
Martin A. Brown
17772e948c
call xmllint before doing any other work
...
important to validate the document before processing it;
Note! Adding this feature flushed out a number of sketchy corners of a few of
our documents, but almost everything validated already.
2016-03-02 23:50:19 -08:00
Martin A. Brown
2094199462
pyflakes/pep8 fixes
2016-03-01 22:58:37 -08:00
Martin A. Brown
97181b167a
temporarily forgetting about other doctypes
2016-03-01 21:50:58 -08:00
Martin A. Brown
d28460aaff
bump up verbosity of failed excute() to logger.info
2016-03-01 21:38:16 -08:00
Martin A. Brown
17ffc0434f
make the sought text more obvious in logging output
2016-03-01 19:51:19 -08:00
Martin A. Brown
8792b4c83a
make individual assertions
2016-03-01 08:20:57 -08:00
Martin A. Brown
36e92b83d9
perform the processor prebuild check first
...
it is smarter to perform the non-destructive check first, rather than blowing
away the output directory and then reporting that it is impossible to rebuild
the document output tree
2016-02-27 11:13:58 -08:00
Martin A. Brown
5f11427f38
remove pipe from script
2016-02-27 10:46:18 -08:00
Martin A. Brown
55cc7d5775
improve visual grouping of --help output
...
use argparse's ArgumentGroups to separate the argparse options for each of the
processors
2016-02-27 09:45:32 -08:00
Martin A. Brown
eac92b5354
add the document stem to the __repr__
2016-02-26 23:18:50 -08:00
Martin A. Brown
9137946a05
adding timing to a few methods
2016-02-26 23:02:00 -08:00
Martin A. Brown
1c4f283482
handle the images and resources during publication
2016-02-26 22:18:02 -08:00
Martin A. Brown
39c4a13d88
repair logic for when there is no index.sgml
2016-02-26 19:04:51 -08:00
Martin A. Brown
f739e365c0
do not bother generating index.sgml unless desirable/necessary
2016-02-26 18:15:27 -08:00
Martin A. Brown
f1bc2121a6
moving hook_build_{success,failure} to BaseDoctype
2016-02-26 12:08:05 -08:00
Martin A. Brown
80d692efba
massive simplification of generate() method
...
move hook_build_success() and hook_build_failure() into BaseDoctype;
subclasses can always override, if need be
2016-02-26 12:06:34 -08:00
Martin A. Brown
89d8f14231
pyflakes fix
2016-02-26 12:06:27 -08:00
Martin A. Brown
3a0bb65961
switch to the DAG model
2016-02-26 12:06:17 -08:00
Martin A. Brown
84477c0f45
move cleanup() method to BaseDoctype
2016-02-26 11:58:56 -08:00