1
0
Fork 0
Commit Graph

29 Commits (2b3ffdcb65b9730f24a22e990bb381b2b79804be)

Author SHA1 Message Date
Mike Gerwitz 6c95ba243a
Include author and email in commit list 2015-05-22 00:37:03 -04:00
Mike Gerwitz 2ff9b89452
Added html_head env var to templates 2013-06-16 13:03:03 -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 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 efa0adc41b index template will output commit-id line only if available 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 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 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 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 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 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 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 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 8ac9aa9531
Simple target highlighting for refs
Will add configurable background color later on
2013-01-30 22:37:33 -05:00
Mike Gerwitz 5cb939fe0a
Title, description, copyright and license are now configurable
Warnings will be output to stderr if any are not provided.
2012-10-07 16:44:12 -04:00
Mike Gerwitz 033baae96a
Using shell script for commit template
The majority of the data is exposed via the environment and the actual body is
piped to the script. This change allows for a great deal of flexibility with
regards to templating---users may write "templates" in whatever language they
choose to generate whatever output they wish.

We should do as much processing beforehand as possible so that the template does
not need to, for example, start snooping through the repos (which will be more
complicated once we support multiple VCSs).
2012-10-07 11:01:32 -04:00
Mike Gerwitz 7965009bd4
Initial repo2html concept
Certain things are thrown in place just to demonstrate the concept. Many things
are also hard-coded that should be configurable (such as the title, copyright
and RSS item count).

Licensed under the GPLv3 instead of the AGPLv3 because the license does not
apply to generated content unless that content uses a portion of the program.
2012-10-07 10:04:42 -04:00