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 => '' },