Mike Gerwitz
9cf68f2bdc
A number of changes for templates and modularity
2013-06-04 22:48:00 -04:00
Mike Gerwitz
3ef6714551
Ensuring url_root will always contain forward slash when concatenated with cref
...
Trailing slash, if any, is stripped and explicitly added.
2013-06-04 22:42:47 -04:00
Mike Gerwitz
f04c9f24a8
Altered hashcache retrieve function to return only the second field rather than 2+
...
This change is necessary since we now store the title in addition to the URL.
This will not be a problem because the URL will not contain spaces.
2013-06-04 22:39:45 -04:00
Mike Gerwitz
2b143a5d90
Added support for strong emphasis with double-star notation (msgfmt)
2013-06-04 22:29:36 -04:00
Mike Gerwitz
dec4ad6a79
Remaining log/data files generated by repo2html will now take into account path_root
...
This ensures that all logs are available in the directory in which repo2html is
invoked, which makes reference easier (this is also necessary if repo2html is
located in a directory that the user cannot write to, such as /usr/local/bin).
Furthermore, this makes more sense if repo2html is used with multiple
repositories on the machine.
2013-06-02 11:58:18 -04:00
Mike Gerwitz
31461e7236
hashcache will now output commit subject to cache
...
The script currently provides no abstraction for retrieving this value---this
will be added in the future. For the meantime, this is useful for any scripts
that wish to reference the cache directly, though this is of course discouraged
(in case the format changes).
2013-06-02 11:56:00 -04:00
Mike Gerwitz
d14eda464e
hashcache will now take into account path_root when determining cache location
2013-06-02 11:55:30 -04:00
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