Published:
Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.
While browsing a repository in a web browser it quickly becomes appearent that the default styling is a bit bland. Fortunately we can style the repository listing up by using "SVNIndexXSLT".
SVNIndexXSLT allows us to call a xsl transformation on the repository listing to apply css styling. This file and its associated files (ie css) must exist in yourdomain.com outside of the repositories path. I put them in the root htdocs of yourdomain.com, but they can as easily be in "/htdocs/svnstyles/".
You can find an example of svnindex.xsl in the "/tools/xslt" directory of the subversion download.
<VirtualHost *:80>
ServerName yourdomain.com
DocumentRoot "/htdocs"
<Location "/snv">
Dav svn
SVNListParentPath on
SVNParentPath "/svn/"
SVNIndexXSLT "/htdocs/svnindex.xsl"
---snip---
</Location>
</VirtualHost>
Now when you browse your repositories you should see some nice styling.
Reader Comments