1
0
Fork 0
Commit Graph

48 Commits (a94e1cb223adeb4be7a4caa7f6e98a2967a7382b)

Author SHA1 Message Date
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
Mike Gerwitz ba4eed71be
Added -R option to repo2html getopts (flag support was there, but option was not recognized) 2013-03-09 10:11:42 -05:00
Mike Gerwitz e7fadb3513
Added cref tag support to msgfmt, permitting ref of previous commits 2013-03-09 09:59:29 -05:00
Mike Gerwitz a096f7ea19
hashcache now permits partial hash matches (common practice in git) 2013-03-09 09:44:37 -05:00
Mike Gerwitz 3c06dfc763
Added hashcache
This will be used to generate links to previous commits (to avoid putting full URLs in the articles themselves)
2013-03-05 23:51:44 -05: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 16993151a8
Hyperlink-related enhancements to msgfmt
- Removing <> delimiters from links
- Stripping punctuation from the end of links

Yes, Perl would be easier, but I'd prefer to avoid the dependency if at all
possible. If this gets too much more complicated, Perl may be a necessity to
prevent a maintinance nightmare.
2012-10-28 00:03:40 -04:00
Mike Gerwitz ba85af8b52
msgfmt will now properly handle adjacent blockquote paragraphs 2012-10-27 23:18:45 -04:00
Mike Gerwitz a570abc87a
Moved ampersand escaping in msgfmt to occur before other replacements
Oops
2012-10-27 23:09:03 -04:00
Mike Gerwitz 7c5fb75352
Added configurable RSS count (default all) 2012-10-19 20:13:53 -04:00
Mike Gerwitz 7c3e1cae31
msgfmt is now configurable
The scripts that use it will still provide defaults for direct invocation
2012-10-19 20:09:35 -04:00
Mike Gerwitz 1cb7c53b6e
Altered README
Accidentally committed README of the repo from this which project originated
2012-10-16 23:04:29 -04:00
Mike Gerwitz c5cc5c4ffa
Added emphasis support to msgfmt 2012-10-16 23:01:20 -04:00
Mike Gerwitz 3adf4a836a
Added blockquote support to msgfmt 2012-10-16 22:49:46 -04:00
Mike Gerwitz ff237bbc6f
RSS feed no longer outputs HTML entities in the title 2012-10-13 00:42:29 -04:00
Mike Gerwitz 81356e4104
Ignoring commits with ':' subject prefix
This will later be configurable.
2012-10-11 00:48:57 -04:00
Mike Gerwitz 0ea280a430
References in text are now converted into hyperlinks
References are bracketed---they are converted into superscripts. If text
immediately preceeding the reference is bracketed, it is also hyperlinked.
2012-10-09 23:31:40 -04:00
Mike Gerwitz 6916c2bfc8
Corrected day output on index page 2012-10-09 19:01:14 -04:00
Mike Gerwitz 64c9dfc20a
Corrected RSS link path (year) 2012-10-09 19:00:32 -04:00
Mike Gerwitz 54856a5412
Corrected output path directory creation 2012-10-08 23:08:38 -04:00
Mike Gerwitz b29accaa03
Replaced bash %()T printf (which requires 4.2) with date
Bash 4.2 is still relatively new.
2012-10-08 23:08:29 -04:00
Mike Gerwitz 4eb2b2f348
Integrated RSS feed
The RSS feed does not yet fully validate with the W3C feed validation service
2012-10-08 22:19:55 -04: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 dd6c1679e5
The processor is now VCS-agnostic
Git calls have been abstracted such that any detected VCS may be used. Of
course, I only have interest in Git at present, so it is my hope that anyone
else interested in this project will contribute.
2012-10-07 12:01:40 -04:00
Mike Gerwitz 9bf3831c28
Corrected copyright notice
..this is what happens when you copy notices from other projects blindly (at
least it was my own)
2012-10-07 11:22:49 -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