A free open source stylesheet for the Subversion index web page. The XSLT and CSS is fully customizable. There is icons for folders and many different filetypes. Install Repos Style as it is or use is as a sample XSLT to design your own. A simple log viewer is also included.
You need the repository configured in Apache. See the Subversion book. Repos Style is installed using the SVNIndexXSLT directive. To use the log viewer you need PHP.
The advantages of using XSLT instead of a viewer like ViewSVN is that it is lightweight and that you use the real URLs in the directory listing. There is no viewer for older revisions, but you can customize the stylesheet to link to other tools.
View samples here.
|
Start by verifying that your http repository is up and running.
SVNIndexXSLT "/repos-web/view/repos.xsl"/repos-web to something else.SVNIndexXSLT directive in Apache conf.xsl:param "static" to your new folder name.Check the configuration section in the XSL files.
It is good practice to have a start page on the repository host with links to each project's trunk, branches, tags folder(s).
That way you don't need to give read access to repository root (which would be inherited to new projects by default).
Repos Style XSLT has a startpage property to set a URL for the toolbar's "home" button.
To customize the menu, edit the commandbar section of the xsl.
To customize the buttons displayed on each row, edit the actions section of the dir and file xsl templates.
See the development section on how to contribute changes.
Get a zipped distribution from the » download « folder.
repos-web to avoid conflict with common svn parent path /repos.
In the listings: changed from divs to the more semantically correct ul/li.
This project is open source. You chan check out the contents at labs.repos.se. It is Apache 2.0 license, while the icons are Creative Commons ShareAlike 2.0. At present the maintainers are Staffan Olsson and Ermin Catic.
For support and discussion please use the mailing list.