commit cbb36e087c1bcf1c81de53e920baf0c681abfd87 Author: Alberto Bertogli Date: Mon Oct 1 21:25:11 2018 +0100 Implement a "patch" view This commit implements a "patch" view, with a simple plain-text representation of a commit, that can be used as a patch file. commit 722d765973ab368a313455d2179d7b3d67ec25cb Author: Alberto Bertogli Date: Sun Mar 4 20:53:35 2018 +0000 markdown: Handle local links By default, the markdown generator creates links for local files transparently. For example, "[text](link.md)" will generate "text". This works fine for absolute and external links, but breaks for links relative to the repository itself, as git-arr links are of the form "dir/f=file.ext.html". So this patch adds a markdown extension to rewrite the links. It uses a heuristic to detect them, which should work for the vast majority of common cases. commit 5e75a1e7a10a0485f5aa339abf055bad94a0a353 Author: Alberto Bertogli Date: Sun Mar 4 19:06:41 2018 +0000 Tune markdown CSS to increase readability The default CSS is not very comfortable for markdown, as for example the links are hidden. This patch makes the markdown CSS tunable by wrapping it into a div, and then adjusting the default styles to increase readability. commit e1349d418ce4bd5957f8fe657c2ce80d2b502b81 Author: Alberto Bertogli Date: Sun Aug 27 19:35:08 2017 +0100 views: In the summary, make the sections toggable As an experiment, make the sections of the summary to be toggable. This can help readability, although it's unclear if it's worth the additional complexity and could be removed later. commit 5def4c9e01c87073d743a71827fee1be0ee41881 Author: Alberto Bertogli Date: Sun Aug 27 19:17:26 2017 +0100 views: Include the root tree in the summary Including the tree as part of the summary gives a bit more information and provides an easy path into the tree. It does clutter things a bit, so this is an experiment and may be removed later. commit 891a9443817329492c75ad99b8ff8899c460dee1 Author: Alberto Bertogli Date: Sun Aug 27 17:37:12 2017 +0100 git: Don't use an empty pathspec when listing An empty string as a pathspec element matches all paths, but git has recently started complaining about it, as it could be problematic for some operations like rm. In the future, it will be considered an error. So this patch uses "." instead of the empty pathspec, as recommended. https://github.com/git/git/commit/d426430e6ec2a05bf0a4ee88c319dd6072908504 commit d7f0e4a2650734581d88b5c949868a8e7bcf788d Author: Alberto Bertogli Date: Sun Aug 27 16:11:47 2017 +0100 views: Change the "repository" line into "git clone" We display the location of the repository, but the entire row is not convenient for copy-pasting. This patch changes the wording to "git clone" so the entire row can be copied and pasted into a terminal. There's a trick, because if we just changed the wording to: git clone https://example.com/repo that would get copied as: git clone\thttps://example.com/repo which does not work well when pasted into a terminal (as the \t gets "eaten" in most cases). So this patch changes the HTML to have a space after "clone": git clone https://example.com/repo and the CSS to preserve the space, so the following gets copied: git clone \thttps://example.com/repo which works when pasting on a terminal. commit 56b0b34930dd3a0ec90035ea2db381fda63a24f8 Author: Alberto Bertogli Date: Sun Aug 27 15:27:47 2017 +0100 style: In the index, make the project names explicit links For readability, make the project names in the index to be explicit links. commit 9b21bd6f191fab943ffea791285b8dfb97ec95ef Author: Alberto Bertogli Date: Sun Aug 27 15:26:01 2017 +0100 style: Normal font sizes, and use monospace for listings There's a significant amount of overrides to make the font sizes smaller, but that can hurt readability in some cases. We should try to use the "natural" sizes as much as possible. This patch does that, removing a lot of the font sizes and bringing them to be based on the normal sizes. It also changes listings to use monospace, for readability. commit c96d0dbea6f233125aa2f18984db44412901a0a3 Author: Alberto Bertogli Date: Sun Aug 27 14:46:52 2017 +0100 style: Make line numbers grey When using pygments, make the line numbers grey. This was the intention all along, but the style overrides the
style and the grey colour does not take effect. This patch fixes the problem by setting the style specifically to within the line numbers div. commit 9c8a6d2408ea3d3ea241767444a5921144867e7e Author: Alberto Bertogli Date: Sun Jul 30 20:33:37 2017 +0100 Add a "prefix" configuration option This patch adds a "prefix" configuration option, so repositories created with recursion are named with a prefix. This can be useful to disambiguate between repositories that are named the same but live in different directories. commit 53155e566a5a4affa836f14a842dba465c7127f0 Author: Alberto Bertogli Date: Thu Nov 3 01:45:46 2016 +0000 markdown: Enable table and fenced code extensions This patch enables the table and fenced code extensions in markdown processing. Signed-off-by: Alberto Bertogli commit c648cfb593f345f0a1d07f43c34905643fc073e1 Author: Alberto Bertogli Date: Wed Nov 18 00:05:13 2015 +0000 views: Improve display on mobile browsers This patch moves the pages to HTML5, and adds some simple meta tags and CSS media constraints so things render better on mobile browsers, while leaving the desktop unaffected. It's still not ideal, though. Signed-off-by: Alberto Bertogli commit cacf2ee2cc9f291e5759b854126d25216ee01cd4 Author: Alberto Bertogli Date: Sat Nov 7 11:54:22 2015 +0000 git-arr: Implement an "ignore" option When having symbolic links to the same repositories (e.g. if you have "repo" and a "repo.git" linking to it), it can be useful to ignore based on regular expressions to avoid having duplicates in the output. Signed-off-by: Alberto Bertogli commit c4e6484bb00e93b55e1f94f3464a40a3bd12f01f Author: Alberto Bertogli Date: Sat Nov 7 11:43:01 2015 +0000 git-arr: Always generate the top level index The top level index contains a "last updated" field, but it doesn't get updated if using the --only option, which is very common in post-update hooks, and causes the date to be stale. This patch fixes that by always generating the top level index, even if --only was given. Signed-off-by: Alberto Bertogli commit 88dd6fab76231a7cefbb0959a960099352d93c16 Author: Eric Sunshine Date: Fri Jan 23 17:14:25 2015 -0500 views/tree: signify root directory in page title The page title in a root tree displays as "git >> repo >> branch >>", which looks odd and fails to convey the fact that the page represents a tree. Appending a '/' (for example "git >> repo >> branch >> /") makes it more obvious that the page shows a tree, in general, and the root tree, in particular. Signed-off-by: Eric Sunshine Signed-off-by: Alberto Bertogli commit 84d628c690357578a7a43e5485e9c4e01c5c9ea2 Author: Eric Sunshine Date: Fri Jan 23 17:14:24 2015 -0500 views/blob: suppress double-slash in page title For blobs in subdirectories, the page title always includes a double slash between the final directory component and the filename (for example, "git >> repo >> branch >> doc//readme.txt"). This is unsightly. git-arr:blob() ensures that the directory passed to views/blob always has a trailing slash, so we can drop the slash inserted by views/blob between the directory and the filename. As a side-effect, this also changes the page title for blobs in the root directory. Instead of "git >> repo >> branch >> /readme.txt", the title becomes "git >> repo >> branch >> readme.txt", which is slightly more aesthetically pleasing. Signed-off-by: Eric Sunshine Signed-off-by: Alberto Bertogli