Commit Graph

363 Commits

Author SHA1 Message Date
Martin A. Brown 8cbdeab558 provide directory existence feedback to user
instead of bailing with an obnoxious error message, or silently ignoring a
command-line option of a directory, squawk to STDERR with the problem and
provide (possibly redundant, but maybe informative) traceback
2016-03-28 11:11:22 -07:00
Martin A. Brown 8de5158eb7 flakes noticed an extra import, removing 2016-03-28 11:10:45 -07:00
Martin A. Brown c442debc51 specify default loglevel in function signature 2016-03-28 11:10:27 -07:00
Martin A. Brown 4658f3101e pep8 improvement 2016-03-28 11:09:43 -07:00
Martin A. Brown 9c3ed36bc2 fix publish function so it propagates return code 2016-03-27 02:26:42 -07:00
Martin A. Brown c0233a73b2 deal with 2/3 naming for stringy things 2016-03-27 01:02:44 -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 746197d954 match up the detail method on the OutputDirectory with the SourceDocument 2016-03-18 20:06:52 -07:00
Martin A. Brown d094e9365a specify the footer to use 2016-03-16 16:12:25 -07:00
Martin A. Brown e4b5c5d8bb need to fall back to iso-8859-1 for SGML docs 2016-03-15 13:26:03 -07:00
Martin A. Brown dfd65b43f3 use an empty (unicode_literal) string to trick future print() [function] to producing unicode strings rather than Py2 byte strings 2016-03-14 22:27:15 -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 2afbc7a147 switch to codecs.open and expect UTF-8 data 2016-03-14 21:42:21 -07:00
Martin A. Brown bb7fbccc6b switch to codecs.open and expect UTF-8 data 2016-03-14 21:42:07 -07:00
Martin A. Brown 2c4f8407b5 convert explicitly to a list before return (Python3) 2016-03-14 21:41:46 -07:00
Martin A. Brown f20fb1c481 no point in using makefh() now; remove 2016-03-14 20:51:55 -07:00
Martin A. Brown 26de64a2bb stop leaking FDs when guessing doctypes 2016-03-14 20:32:42 -07:00
Martin A. Brown a2daee9425 use absolute_import here, too (Python 3) 2016-03-14 20:32:09 -07:00
Martin A. Brown 5af0c2a955 use the proper Python 3.x name for [Safe]ConfigParser 2016-03-14 20:11:04 -07:00
Martin A. Brown 6227e7d8da adjusting the reporting of discovered document counts 2016-03-14 10:34:44 -07:00
Martin A. Brown 01756a16ec add support for sgmlcheck (linuxdoc) 2016-03-13 09:41:55 -07:00
Martin A. Brown 61d55a9f69 CLI-tool friendly handling of EPIPE and INT
And, correcting from the name of the Python class to the format name processed
by the Python class (class.__name__ vs. class.formatname).
2016-03-11 14:21:56 -08:00
Martin A. Brown 5f6ff9ca3d report the output directory first 2016-03-10 11:55:55 -08: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 90f8d6e690 add format name to --list output (for sources) 2016-03-10 10:38:40 -08:00
Martin A. Brown 7fbe4b80ec add width entry for doctype (output formatting) 2016-03-10 10:38:20 -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 7bd32896eb create variable DEFAULT_CONFIGFILE
so that at runtime (during testing), it can be overridden
2016-03-10 08:50:31 -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 c978cf5dff report on documents by document format, too 2016-03-09 23:41:50 -08:00
Martin A. Brown e2532d4ffb use the already written darned function 2016-03-09 20:53:21 -08:00
Martin A. Brown 46d16f4ccb complete the propagation of **kwargs 2016-03-09 20:41:18 -08:00
Martin A. Brown 29d5739d1e send runtime parameters to processors 2016-03-09 18:10:23 -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 a06e1955b7 tweak logging outputs, lower some to debug() 2016-03-09 10:06:59 -08:00
Martin A. Brown 68b16b42d8 simplify function docbuild: logging by caller
make the core docbuild function even simpler; have it determine the result
and return it, as well as the individual build success/failure vector
move all logging logic into the caller function, so that script(), publish()
and build() can log whatever they like
2016-03-09 10:00:25 -08:00
Martin A. Brown f4367e943f improve testing coverage of driver.py
adjust calling pattern for prepare_{script,build}_mode so that they are easier
to test
embed the creation of build directories into the prepare_build_mode
2016-03-09 09:33:04 -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 7aa99ec502 moving sameFilesystem to utils.py 2016-03-08 09:45:54 -08:00
Martin A. Brown ea2139373c simplify docbuild function; factor out logic
remove the logic from the docbuild function which executes both the --script
generation and the --build generation as the core loop over the document set.
create ancillary functions to prepare the document set for --script mode or
--build mode
add functions to create and remove the build directories in --build mode
add a --publish cleanup function to leave our --builddir clean (unless there
was a failure)
2016-03-08 09:16:46 -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