development

Using Subversion on a pre-existing directory

There are plenty of tutorials explaining how to setup Subversion on a Windows machine. Not so many good tutorials on how to actually use Subversion in the real world. In the rel world you sometimes need to apply Subversion to a bunch of files and folders that already exist. Applying Subversion to an already existing directory is more obfuscated than it needs to be. The user manual would have you believe that you need to Import, delete the directory, do a Checkout.

But what if you don't want to Import all files and sub-folders? It's the kind of thing you need to do very rarely, but when you do, it's always a pain to remember exactly the best way to go about it. But it's actually pretty simple: the key is to use SVN Add files rather than the SVN Import functionality.

Continue reading...

jqTOC: jQuery meets Table of Contents

A jQuery plugin that creates a table of contents for all header elements within the parent DOM element provided. (Based on original jqPageContent by Dimitri Spassov.)

By default, jqTOC produces a fixed, floating div box with the title "Content", in the top right of the browser window. When the box is clicked a new div will display a list of all H1, H2, H3 elements within scope of the parameter element. Each TOC element is a clickable link to the title in the document.

Start and end heading levels can be specified. All heading levels 1, 2, 3, is the default.

Continue reading...