diff --git a/scripts/mw2html_audacity/303.css b/scripts/mw2html_audacity/303.css index 3e2fbf2df..28a6f0586 100644 --- a/scripts/mw2html_audacity/303.css +++ b/scripts/mw2html_audacity/303.css @@ -8,6 +8,13 @@ ** Michael Zeltner and Geir Bækholt) ** All you guys rock :) */ +body { + font: x-small sans-serif; + background: #f9f9f9 url(../headbg.jpg) 0 0 no-repeat; + color: black; + margin: 0; + padding: 0; +} #column-content { width: 100%; diff --git a/scripts/mw2html_audacity/audio.png b/scripts/mw2html_audacity/audio.png new file mode 100644 index 000000000..1c56bdc8d Binary files /dev/null and b/scripts/mw2html_audacity/audio.png differ diff --git a/scripts/mw2html_audacity/bullet.gif b/scripts/mw2html_audacity/bullet.gif new file mode 100644 index 000000000..b43de48a4 Binary files /dev/null and b/scripts/mw2html_audacity/bullet.gif differ diff --git a/scripts/mw2html_audacity/external.png b/scripts/mw2html_audacity/external.png new file mode 100644 index 000000000..419c06fb9 Binary files /dev/null and b/scripts/mw2html_audacity/external.png differ diff --git a/scripts/mw2html_audacity/external_rtl.png b/scripts/mw2html_audacity/external_rtl.png new file mode 100644 index 000000000..c5cd84db0 Binary files /dev/null and b/scripts/mw2html_audacity/external_rtl.png differ diff --git a/scripts/mw2html_audacity/headbg.jpg b/scripts/mw2html_audacity/headbg.jpg new file mode 100644 index 000000000..5491c6e4a Binary files /dev/null and b/scripts/mw2html_audacity/headbg.jpg differ diff --git a/scripts/mw2html_audacity/mw2html.py b/scripts/mw2html_audacity/mw2html.py index 2c059413e..25f8a50ac 100644 --- a/scripts/mw2html_audacity/mw2html.py +++ b/scripts/mw2html_audacity/mw2html.py @@ -196,7 +196,6 @@ def monobook_fix_html(doc, page_url): # Obselete substitutions. # doc = remove_tag(doc, '
', '
', '', '', '', '', '', '', '', '', '', '', 'Navigation menu', r'', doc) + return doc @@ -299,16 +301,24 @@ def pos_html_transform(doc, url,filename): # Add back relevant stylesheet. top_level_dir = config.outdir - if( os.path.dirname(os.path.dirname( filename )) == config.outdir ): - doc = re.sub(r'', '\n', doc, flags=re.DOTALL) + if (os.path.dirname(os.path.dirname(filename)) == config.outdir): + doc = re.sub(r'', + '\n', doc, + flags=re.DOTALL) + elif (os.path.dirname(os.path.dirname(os.path.dirname(filename))) == config.outdir): + doc = re.sub(r'', + '\n', + doc, + flags=re.DOTALL) else: doc = re.sub(r'', - '\n', doc, - flags=re.DOTALL) + '\n', + doc, + flags=re.DOTALL) # Replace remaining text with footer, if available (this needs to be done after parse_html to avoid rewriting of urls if config.footer is not None: - s1 = '