1
0
Fork 0
Commit Graph

18 Commits (bea28c6ab9b54aef5755d05aca2d9f71a7f268d2)

Author SHA1 Message Date
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