Skip to content

Commit

Permalink
#1: Removed redundant leading spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
antacerod committed Sep 3, 2014
1 parent 1aa8639 commit d34fc8d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/site/apt/html-validator-local-instance.apt.vm
Original file line number Diff line number Diff line change
Expand Up @@ -47,38 +47,38 @@ W3C HTML Java Validator (Local)
Install required packages.

+--
apt-get install w3c-markup-validator mercurial subversion python default-jdk
apt-get install w3c-markup-validator mercurial subversion python default-jdk
+--

Compile/install the HTML5 validator (not included in W3 validator).

+--
mkdir /usr/share/html5-validator
cd /usr/share/html5-validator
mkdir /usr/share/html5-validator
cd /usr/share/html5-validator
+--

Set the <<<JAVA_HOME>>> path.

+--
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
+--

Clone the latest validator source.

+--
hg clone https://bitbucket.org/validator/build build
hg clone https://bitbucket.org/validator/build build
+--

Start the build (If you encounter a Java exception, run the build script again).

+--
python build/build.py all
python build/build.py all
+--

Configuring the w3c-validator to allow private networks in <<</etc/w3c/validator.conf>>>.

+--
Allow Private IPs = yes
Allow Private IPs = yes
+--

Enable the HTML5 validator by uncommenting the following.
Expand All @@ -94,26 +94,26 @@ W3C HTML Java Validator (Local)
Create the upstart script to start the HTML5 validator at boot.

+--
vim /etc/init/html5-validator.conf
vim /etc/init/html5-validator.conf
+--

Contents.

+--
description "Validator.nu HTML5 Validator"
description "Validator.nu HTML5 Validator"

start on (local-filesystems and net-device-up)
stop on runlevel [016]
start on (local-filesystems and net-device-up)
stop on runlevel [016]

chdir /usr/share/html5-validator
exec python build/build.py --control-port=8889 run
respawn
chdir /usr/share/html5-validator
exec python build/build.py --control-port=8889 run
respawn
+--

Save and start it.

+--
start html5-validator
start html5-validator
+--

Afterwards you can access your validator via <<<http://server/w3c-validator>>> and set the URI in your code.
Expand Down

0 comments on commit d34fc8d

Please sign in to comment.