====== Page Export ====== Single wiki pages can be exported to various formats with the ''export'' [[devel:action_modes|action]]. ===== Default export formats ===== The following export options are available by default: * ''export_raw'' * Returns the page's source as ''text/plain'' * Example: https://www.dokuwiki.org/export?do=export_raw * If DokuWiki uses it as link to a new page wiki:export_do_export_raw then switch in the configuration area '' URL rewriting'' to DokuWiki. * ''export_xhtml'' * Returns the rendered page as simple XHTML without any navigational elements * Example: https://www.dokuwiki.org/export?do=export_xhtml * Example 2: https://www.dokuwiki.org/doku.php?id=export&do=export_xhtml * ''export_xhtmlbody'' * Returns the rendered XHTML of the page only. * No head or body tags are added. No contenttype headers are sent. * Useful to include the rendered output into some other website * Example: https://www.dokuwiki.org/export?do=export_xhtmlbody ===== Other export format ===== Export formats can be extended through render [[plugins|plugins]]. Also check the [[tips]] section to find other export formats. * The [[plugin:odt|ODT plugin]] uses ''export_odt'' * The [[plugin:text|text plugin]] uses ''export_text'' * All available [[plugintype>8#extension__table|Render Plugins]] ===== Configuration ===== * Please be sure the ''export'' action is not [[config:disableactions|disabled]] * You can specify the ''do'' parameter as an HTTP header called ''X-DOKUWIKI-DO'', too. This may be useful for creating a static dump with a website spider. * Example: wget -E -r http://wiki.foo.tld/doku.php?id=start -l 0 --header="X-DokuWiki-Do: export_xhtml"