Martin A. Brown
4658f3101e
pep8 improvement
2016-03-28 11:09:43 -07:00
Martin A. Brown
deaee034fc
make an end run around the XSL/fop problem
...
teach the DocBook4 XML utility itself to set fop.extensions = 0 and
fop1.extensions = 1 until such time as the upstream ldp-docbook-xsl packages
can be repaired and/or adjusted
2016-03-27 00:44:00 -07:00
Martin A. Brown
f2ef7d2184
support --script mode anywhere and don't chdir()
2016-03-24 09:00:20 -07:00
Martin A. Brown
d094e9365a
specify the footer to use
2016-03-16 16:12:25 -07:00
Martin A. Brown
3f92a7a95c
everybody gets unicode_literals
2016-03-14 22:18:09 -07:00
Martin A. Brown
dcb8b3a217
switch to codecs.open and expect UTF-8 data
2016-03-14 21:42:31 -07:00
Martin A. Brown
26de64a2bb
stop leaking FDs when guessing doctypes
2016-03-14 20:32:42 -07:00
Martin A. Brown
01756a16ec
add support for sgmlcheck (linuxdoc)
2016-03-13 09:41:55 -07:00
Martin A. Brown
d59850d433
skip adding to removals if in --script mode
2016-03-10 11:42:59 -08:00
Martin A. Brown
f7505627a5
pep8/pyflakes fixes
2016-03-10 11:17:09 -08:00
Martin A. Brown
c214724fcb
group methods a bit more by their similarity
...
and change naming slightly so log lines at loglevel INFO align
2016-03-10 10:25:39 -08:00
Martin A. Brown
8a99c39d93
switched to set(), use .add() instead of .append()
2016-03-10 08:49:37 -08:00
Martin A. Brown
f0cb2c3dfe
only try to remove files once
2016-03-10 08:49:03 -08:00
Martin A. Brown
46d16f4ccb
complete the propagation of **kwargs
2016-03-09 20:41:18 -08:00
Martin A. Brown
94ab1ac5d2
pass **kwargs through all processor tools
...
adjust all processor tools so they take runtime parameters through **kwargs
2016-03-09 18:08:56 -08:00
Martin A. Brown
2d75d3c4de
remove old boilerplate from markdown and rst stock code
2016-03-09 18:08:18 -08:00
Martin A. Brown
c581980aaf
remove old boilerplate from markdown and rst stock code
2016-03-09 18:07:52 -08:00
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