Table of Contents

Wiki customizations

In addition to the many Plugins that have been employed, several changes have been made to the wiki itself. These are mostly cosmetic CSS tweaks, but there are a couple other hacks as well.

Template

Bootstrap3

The template in use is based on the Bootstrap3 template by Giuseppe Di Terlizzi. The entirety of that template has been copied into another folder to which additions have been made in two stages.

This template in turn implements Bootstrap version 3.4.1, which is a framework for web page development. This is not the most recent version, but it's enough to keep us busy for the nonce. Many of the cosmetic tweaks that have been made are really to values provided here rather than by the template.

The Bootstrap3 template does add an unofficial bootswatch theme that is not present in the bootstrap framework: Solar. A fork to that theme's assets is available here.

Schmootstrap3

This is the first layer of customization, and it provides the bulk of the changes. For the most part, these are CSS adjustments to make the dark themes look better and work better with several of the plugins. It has been done separately in order to support more general use and leave Hârn-specific elements to a subsequent template.

Colors

The general approach has been to make a file of color constants for each theme to be modified. The colors have been derived from each theme's Default, Danger, Info, Primary, Success, and Warning colors along with various panels, borders, and other page elements. To these have been added Light, Lighter, and sometimes Lightest shades for optional use.

General code highlighting tweaks were added for several languages. This cleaned up the light themes that hadn't gotten the more extensive attention devoted to rendering the dark ones in theme colors.

At this time, the following themes have been adjusted.

These constants are then used in the other CSS files for each theme. There was a thought of making these other files more general to avoid duplicating them, but this required that all of the unaddressed themes be dealt with first. The present editor put that off to another day.

Why would this have to be done? Well, certain elements in the dark themes looked pretty bad. For instance, monospace text is rendered in the same red-on-pale-pink in every single theme. That came straight from the framework. Also, many plugins, like the Media Managers, change the text to white but keep their white backgrounds.

Other adjustments

Harnstrap3

As Schmootstrap3 is built on Bootstrap3, Harnstrap3 is built on Schmootstrap3. It supplies the following additional changes.

Extra adjustments

Updates to the template properly confine themselves to the template's directory under/lib/tpl in the wiki. HârnWiki, however, has other additions as well. These are contained in separate zip files.

If updating the files present in the wiki, care should be taken not to overwrite any changes made by admins, particularly in Configuration Settings held in local.php. Even without access to the wiki back end, the Advanced plugin can allow for editing and creating the .local.conf files as well.

Schmootstrap3 extras

Harnstrap3 extras

Archive files

One of these days, the present editor will have to learn how to properly use GitHub to fork Bootstrap3 and store current versions of these templates and extras. Until then, copies (possibly current) are linked below. These are not the complete templates but rather just the additions and overwrites, which makes it simpler to incorporate them into updated versions of Bootstrap3.

To assemble a fresh template, well, the present editor runs a Python script in the text editor with which he edits these things. Barring that, a procedure like the following should work.

  1. Create a directory to stand in for the wiki root directory.
  2. Obtain a copy of the latest Bootstrap3 template and put its contents in /lib/tpl/bootstrap3.
  3. Copy that directory to /lib/tpl/schmootstrap3
  4. Unzip schmootstrap3.zip to the root directory.
  5. If desired, unzip schmootstrap3_extras.zip to the root directory. This likely won't need to be done for an existing instance of HârnWiki that presumably has all this already, but there may be occasional additions here.
  6. Copy or rename /lib/tpl/schmootstrap3 to /lib/tpl/harnstrap3
  7. Unzip harnstrap3.zip to the root directory.
  8. If desired, unzip harnstrap3_extras to the root directory.

Downloads