1
0
Fork 0
Commit Graph

76 Commits (e69f16e908190d939386fe4e03051ccb21f2d6cd)

Author SHA1 Message Date
Mike Gerwitz e69f16e908 Removed path_root export and reassignment in processor
This is not longer used by templates (url_root used instead); path_root is supposed to represent
the cwd of the caller of repo2html.
2013-06-02 11:54:37 -04:00
Mike Gerwitz 2ff069be4f Added -uU options for repo and commit URLs; used by commit template
Will be added to index in the future as well
2013-05-30 23:15:01 -04:00
Mike Gerwitz 3fae735d0b Index copyright notice in footer now includes license 2013-05-30 21:25:26 -04:00
Mike Gerwitz 1d4c1a1d18 Templates now enclose content in a content div
Useful for styling
2013-05-30 21:25:16 -04:00
Mike Gerwitz 111980f233 Root URL in index template will now default to "/" 2013-05-30 21:15:58 -04:00
Mike Gerwitz 5c923940e4 Corrected root url set when in raw mode 2013-05-30 21:15:43 -04:00
Mike Gerwitz 21aec4fb13 Corrected message formatter configuration path 2013-05-29 20:20:36 -04:00
Mike Gerwitz 11236d4c27 Corrected msgfmt em formatting with asterisks 2013-05-29 20:20:36 -04:00
Mike Gerwitz c98071832d Title now links to $url_root (and "return to index" link now does as well) 2013-05-29 20:20:36 -04:00
Mike Gerwitz 5f8b1417f8 Subject line will now be included as an h3 in index template if do-index is undefined
Intended for use with raw (-i) mode
2013-05-29 20:20:35 -04:00
Mike Gerwitz 53f6e4f97e Added subject to title, if available, separated by $html_tsep (mdash by default) 2013-05-29 20:20:35 -04:00
Mike Gerwitz dd870f933c Added $html_body_class support to templates 2013-05-29 20:20:35 -04:00
Mike Gerwitz f776c8f918 Moved template functions/procedures into their own file
In particular, this makes resume-default available to raw (-i) mode
2013-05-29 20:20:35 -04:00
Mike Gerwitz 80b466694b Added -P option to msgfmt and moved addition of beginning and ending p tags from commit2html to msgfmt
This not only makes more sense, but allows raw (-i) mode to work properly
2013-05-29 20:20:31 -04:00
Mike Gerwitz efa0adc41b index template will output commit-id line only if available 2013-05-27 16:57:16 -04:00
Mike Gerwitz bea28c6ab9 Added -i option for raw input to specified template
This is useful for integrating external document into a site generated by
repo2html. -i was chosen for "input raw" instead of -r because -r is
traditionally meant to denote "recursive"; there is also no way to be certain
that a recursive option may be unneeded in the future. Furthermore, -p for
"passthru" was rejected because it is traditionally used for "pretend".
2013-05-27 16:57:16 -04:00
Mike Gerwitz eadb86cd6a index template will now default to accepting input from stdin if do-index is undefined 2013-05-27 16:57:15 -04:00
Mike Gerwitz b60623d005 Formatting fix in repo2html script (indentation) 2013-05-27 16:57:15 -04:00
Mike Gerwitz 9a8803f707 Added license to index and commit templates 2013-05-27 16:57:15 -04:00
Mike Gerwitz 82c6539306 do-index now accepts command names for heading, line and footer outputs for index sections 2013-05-27 16:57:15 -04:00
Mike Gerwitz 3be799da5c Removed extra indentation from do-index in processor 2013-05-27 16:57:15 -04:00
Mike Gerwitz a261314df3 Added index and commit classes to respective body tags of templates 2013-05-27 16:57:15 -04:00
Mike Gerwitz 40fb165b53 Added html_pre_index var for templates 2013-05-27 16:57:15 -04:00
Mike Gerwitz cde17bbf02 Added path_root export for templates 2013-05-27 16:57:13 -04:00
Mike Gerwitz e0f32a9228
HTML character encoding is now explicitly specified as utf-8
This resolves display issues that may result from using UTF-8 chars in commit messages.
2013-05-23 19:52:07 -04:00
Mike Gerwitz d117372ea9
Added -o option for output directory override 2013-05-21 22:38:32 -04:00
Mike Gerwitz 0f5561e893
Added support for custom HTML extension (or omission); adds -e and -E options
-E will create the effect of a URL rewriting scheme without having to actually use rewriting on the server
2013-05-21 17:36:21 -04:00
Mike Gerwitz 73a462cfd2
Added title and desc classes to index template 2013-05-20 06:35:29 -04:00
Mike Gerwitz a94e1cb223
Added html_index_footer, renamed {commit_html,html_commit}_footer 2013-05-20 06:35:15 -04:00
Mike Gerwitz e7f7e3cc01
Added custom template .config file support 2013-05-19 17:07:55 -04:00
Mike Gerwitz 540d8b4c38
Additional configuration changes to default templates, including html_footer 2013-05-19 17:07:29 -04:00
Mike Gerwitz f11b3ecdee
Added external css configuration var and -C option 2013-05-19 17:06:53 -04:00
Mike Gerwitz f620de709c
Added resume-default as abstraction for invoking default templates from custom overrides 2013-05-19 16:19:21 -04:00
Mike Gerwitz 6cea4d3426
Commit template application now makes user of apply-template function 2013-05-19 16:04:25 -04:00
Mike Gerwitz 02993716c7
Added .gitignore containing misc. build dotfiles 2013-05-19 16:01:14 -04:00
Mike Gerwitz 01ea10f0bf
Separated index HTML into its own template 2013-05-19 16:01:03 -04:00
Mike Gerwitz 67bd586ecd
Added commit_html_* references to commit template, along with classes to support additional styling
This allows for simple configuration of the commit template. The intended use is
to either use a configuation script to export these values, or set a custom
template path and have the commit template set the values before exec'ing or
otherwise running the default script.

The template also now makes use of HTML5 tags, such as <article>.
2013-05-19 15:54:59 -04:00
Mike Gerwitz 397d8837a9
Added configurable template path via path_tpl env var (-T option to repo2html)
The .sh extension was removed from the commit filename to recognize the fact
that configurable templates may be any type of executable.
2013-05-17 23:11:21 -04:00
Mike Gerwitz dc99621cc1
Corrected issue whereby reprocessing would cause a duplicate index template output 2013-03-15 16:38:13 -04:00
Mike Gerwitz 818a595e85
Reduced font size of sup tag in template (for references)
Was strongly impacting the line height, which was rather ugly.
2013-03-15 16:31:52 -04:00
Mike Gerwitz 8b6e57709d
Enclosed text in reference hyperlinks must not begin with a non-numeric character
This is not the best of solutions, but will at least help to eliminate the problem of multiple adjacent references.
2013-03-15 16:26:05 -04:00
Mike Gerwitz 91c85b1091
RSS was resulting in cref error duplicates; suppressing 2013-03-12 22:48:24 -04:00
Mike Gerwitz 35b390dc37
Corrected cref_errlog output from msgfmt (was overwriting) 2013-03-12 22:48:14 -04:00
Mike Gerwitz a0b1186d12
Pattern processing (caret insertion) logic removed from msgfmt and put where it rightfully belongs 2013-03-12 22:30:59 -04:00
Mike Gerwitz 0982212464
Output prefixes are now handled by parent script
As they should be.
2013-03-10 22:54:21 -04:00
Mike Gerwitz 84f3c589de
rss will now log when its input limit has been reached 2013-03-10 22:40:52 -04:00
Mike Gerwitz 8dc8d8b3b9
repo2html will no longer return a non-zero exit status when cref-bad is empty
This bug was introduced by the last commit.
2013-03-10 21:54:01 -04:00
Mike Gerwitz 3cec847866
Added cref-errlog to post-process cref errors rather than priming the hashcache
This is more performant, contains additional logging and will properly output
invalid crefs.
2013-03-10 21:51:08 -04:00
Mike Gerwitz 6f9001740c
hashcache will now exit with non-zero status if requested item cannot be found 2013-03-10 16:14:14 -04:00
Mike Gerwitz 01bdca9422
hashcache is now primed before processing
This is a temporary implementation to ensure crefs work properly; will optimize
in future commits.
2013-03-10 16:12:56 -04:00