A somewhat overengineered programming library to handle PmWiki's PageFileFormat in Go. Revision history can also be evaluated to provide file progress information. Lexer and parser included.
Based on this library, the pmwiki-to-git
program converts the PmWiki wiki.d
directory into a git repository.
# Clone this repository and build the tool
git clone https://github.com/oxzi/pmwiki-pagefileformat-go
cd pmwiki-pagefileformat-go
go build ./cmd/pmwiki-to-git
# Create a new git repository
git init pmwiki-git
# Start the conversion
./pmwiki-to-git -pmwiki ~/pmwiki/wiki.d -git pmwiki-git
This may log some errors. But as long as the program does not abort, these are negligible. PmWiki is sometimes very quirky.
GNU GPLv3 or later.