-
Java JDK 8 or newer
-
clone this repository
-
go to the directory into which this repository has been cloned in the previous step
-
run
$ ./gradlew assembleDist
-
transfer one of the archives under
build/distributions/
to your SVN server, extract the archive and place the resulting directory’s content into the document root of your SVN serving Apache HTTP Server -
configure mod_dav_svn to use Pretty SVN Index:
httpd.conf (example)<Location /svn> DAV svn # [...] # use Pretty SVN Index for displaying the SVN repository via a web browser SVNIndexXSLT /pretty-svn-index.xsl # [...] </Location>
-
restart the Apache HTTP Server
The following options are available for the build:
-
--Psass.debug
: compile into non-minimized CSS with embedded source maps -
--Psass.executable=<path to Sass executable>
: pass the location of the Sass executable to use to the build script
Pretty SVN Index supports customizing its style via variables.
To do so, go to directory src/scss/
and add a new file named pretty-svn-index-customized.scss
and load the pretty-svn-index
module into it:
@use "pretty-svn-index" with ( $title-background-color: #44a100, $title-text-color: rgba(0,28,87,0.9), );
The following table lists all available variables and their type:
Variable | Type | Description |
---|---|---|
|
color |
The color of the background outside the content page. |
|
boolean |
Whether the background shall look like a sheet of graph paper. |
|
color |
The color of the graph paper’s lines (only useful if |
|
color |
The color of the page header’s background. |
|
color |
The color of the content page header’s text. |
|
color |
The color of the content page’s background. |
|
color |
The color of the content page’s shadow. |
|
color |
The color of the content page’s text. |
|
color |
The color of the page footer’s background. |
|
color |
The color of the page footer’s text. |
Pretty SVN Index ships with a Dockerfile which can be used to create Docker images demonstrating various aspects of the theme. To build and run the image do the following:
./gradlew installDist \ && docker build -f ./docker/Dockerfile -t pretty-svn-index-demo:1.0 . \ && docker run --rm -dit --name pretty-svn-index-demo -p 127.0.0.1:8080:80 pretty-svn-index-demo:1.0
After the commands above finished successfully the Pretty SVN Index demo can be accessed by http://localhost:8080/svn/
.
Pretty SVN Index wouldn’t be half as good without the beautiful Lato font family, and the awesome icon set Font Awesome. The styling works would also have been much less enjoyable if it wasn’t for the great Sass CSS extension language.