|
Cookbook /
ExportHTML(redirected from Cookbook.PmWiki2HTML-usingWGET) Summary: Export PmWiki pages as "static" HTML pages
Version: 2007-01-12
Prerequisites: any
Status:
Maintainer: Pm
Categories: SystemTools, Administration
Questions answered by this recipe
DescriptionPmWiki does not come with a built-in export to HTML feature, but other tools can be used to grab a "static" copy of PmWiki pages. Here's at least two options. 1. Export using wgetThe following wget(1) command will grab all of the pages from a site, fixing up links to be relative as needed. wget -r -k -np -p -l 0 http://example.org/wiki If running with wget -r -k -np -p -l 0 http://example.org/wiki/SomeGroup Here's the meaning of the options to wget: -r Recursive retrieval. Wget will follow any links it finds in
the document
-k Link adjustment. After retrieving the pages, wget will convert
all of the downloaded files to have relative links instead
of absolute ones.
-np No parent. Wget will restrict itself to the path
given on the command line (in the above case, it would
only download the pages of SomeGroup).
-p Prerequisites. Wget will retrieve local copies of any .css
files or gif images needed to display the static copy of the
page locally.
-l 0 Infinite follow. Wget will follow all of the links it encounters
(subject to the -np restriction above), so that it will completely
spider the group.
NotesIf you want the retrieved pages to have .html extensions automatically added to them, see the HtmlUrls recipe. How can I login using AuthUser and wget? PmWiki doesn't use HTTP Basic authentication (i.e., Comments
2. Integrated Export ToolThe following tool allows you to export your PmWiki into static HTML files and push them using FTP, SCP, or plain file copying. For example exported website, see: http://www.physics.ox.ac.uk/users/santoso Dependencies:
Installation:
See AlsoContributors |