forked from ludoza/DokuWiki-to-Markdown-Converter
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hacked and most probably broken some part to help me convert DokuWiki…
… to Markdown.
- Loading branch information
Ludolph Neethling
committed
Feb 19, 2012
1 parent
2e0427f
commit 2eb7d53
Showing
5 changed files
with
50 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
.DS_Store | ||
.DS_Store | ||
/en | ||
/output | ||
/run.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
# SilverStripe Documentation Restructuring Project | ||
# Liquibase DokuWiki to Markdown Converter | ||
|
||
Tools to convert the original SilverStripe documentation wiki (based on DokuWiki syntax) | ||
to the new Markdown-driven [doc.silverstripe.org](http://doc.silverstripe.org). | ||
## Introduction | ||
|
||
**UPDATE: The conversion has been completed. Please apply any content changes against the [github.com/silverstripe/sapphire](http://github.com/silverstripe/sapphire) and [github.com/silverstripe/silverstripe-cms](http://github.com/silverstripe/silverstripe-cms) repositories.** | ||
|
||
* [Mailinglist](http://groups.google.com/group/silverstripe-documentation) | ||
* [Planning wiki page](http://doc.silverstripe.org/tmp:documentation-restructuring) | ||
* [TODO list and bugtracker](http://open.silverstripe.org/query?status=inprogress&status=new&status=replyneeded&status=reviewed&component=Documentation&order=priority&col=id&col=summary&col=status&col=type&col=priority&col=milestone&col=component) | ||
|
||
## Contact | ||
|
||
* Documentation questions: Ingo Schommer (ingo at silverstripe dot com) | ||
* Markdown Conversion: Mark Stephens (mark at silverstripe dot com) | ||
Tools to convert the DokuWiki syntax to Markdown syntax. Please note it has some specific Liquibase regular expressions in `scripts/DocuwikiToMarkdownExtra.php`. | ||
|
||
## Usage | ||
|
||
*Note: The following scripts should no longer be used, as they were designed for an earlier stage in the project.* | ||
|
||
### Import DokuWiki files | ||
|
||
Note: This is only possible by SilverStripe staff. | ||
I don't have a idea how DokuWiki store its files so I'm leaving this note here if it might help. | ||
|
||
Note: This is only possible by SilverStripe staff. | ||
|
||
scp -P 2222 -r <username>@doc.silverstripe.org:/sites/ss2doc/www/assets/data/pages/* input/ | ||
|
||
### Convert to Markdown files | ||
|
||
cd scripts | ||
php TranslateSSDocs.php ../input ../output | ||
php TranslateSSDocs.php ../input <../output> < template.txt> | ||
|
||
`../output` - if output is not supplied it will print the conversion to `stdout`. | ||
|
||
`template.txt` - at the moment it only prepends the content of the template to each file it converts. | ||
|
||
## Credit | ||
|
||
This project was shamelessly forked from the [SilverStripe Documentation Restructuring Project](https://github.com/chillu/silverstripe-doc-restructuring) and was hacked/broken apart to add some extra functionality. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
layout: liquibase | ||
lang: en | ||
--- |