https://github.com/oxzi/pmwiki-pagefileformat-go
Go library for PmWiki's PageFileFormat and a PmWiki-to-git converter with full history.
https://github.com/oxzi/pmwiki-pagefileformat-go
pagefileformat pmwiki
Last synced: about 1 year ago
JSON representation
Go library for PmWiki's PageFileFormat and a PmWiki-to-git converter with full history.
- Host: GitHub
- URL: https://github.com/oxzi/pmwiki-pagefileformat-go
- Owner: oxzi
- Created: 2020-11-07T16:21:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-07T16:21:24.000Z (over 5 years ago)
- Last Synced: 2023-07-11T08:18:52.820Z (almost 3 years ago)
- Topics: pagefileformat, pmwiki
- Language: Go
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSES/CC0-1.0.txt
Awesome Lists containing this project
README
# PmWiki's PageFileFormat in Go
[](https://godoc.org/github.com/oxzi/pmwiki-pagefileformat-go) 
A somewhat overengineered programming library to handle PmWiki's [PageFileFormat][pagefileformat] in [Go][golang].
Revision history can also be evaluated to provide file progress information.
Lexer and parser included.
## pmwiki-to-git
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.
## License
GNU GPLv3 or later.
[golang]: https://golang.org/
[pagefileformat]: https://www.pmwiki.org/wiki/PmWiki/PageFileFormat