From f277b86817a04f92e40566c0088e922ac58f8b88 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Sat, 11 Nov 2006 23:26:38 +0000 Subject: [PATCH] fetch_doc.rb: * Fixed URL * Added doc/configuring * Removed dokuwiki blocks --- fetch_doc.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fetch_doc.rb b/fetch_doc.rb index 8f2a746..c7c2b2a 100755 --- a/fetch_doc.rb +++ b/fetch_doc.rb @@ -8,9 +8,9 @@ require 'open-uri' -BASE_URI = 'http://www.pamusb.org/doku/doc/' +BASE_URI = 'http://www.pamusb.org/wiki/doc/' DOC_PATH = './pam_usb/doc/' -DOCS = [ 'install', 'upgrading' ] +DOCS = [ 'install', 'upgrading', 'configuring' ] REPLACE_LIST = [ # Extract text area from xhtml document. @@ -26,6 +26,8 @@ REPLACE_LIST = [ { :pattern => /</, :with => '<' }, { :pattern => />/, :with => '>' }, { :pattern => /"/, :with => '"' }, + { :pattern => /.*\n/, :with => '' }, + { :pattern => /<\/code>.*\n/, :with => '' }, # Remove trailing whitespaces { :pattern => /^ /, :with => '' },