https://github.com/schnatterer/drupal2gollum
Drupal (html) to gollum (markdown) migration
https://github.com/schnatterer/drupal2gollum
drupal drupal-7 gollum gollum-wiki
Last synced: 8 months ago
JSON representation
Drupal (html) to gollum (markdown) migration
- Host: GitHub
- URL: https://github.com/schnatterer/drupal2gollum
- Owner: schnatterer
- License: mit
- Created: 2017-09-19T20:11:09.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-04T11:58:58.000Z (about 8 years ago)
- Last Synced: 2025-01-13T01:37:07.565Z (9 months ago)
- Topics: drupal, drupal-7, gollum, gollum-wiki
- Language: Groovy
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drupal2gollum
A basicly working drupal (html) to [gollum](https://github.com/gollum/gollum) (markdown) migration.
100% groovy.## Usage
* Make sure to have Java Platform installed on your machine
* Download drupal2gollum from [here](https://github.com/schnatterer/drupal2gollum/releases) and extract.
* Exemplary call:
```
bin/drupal2gollum jdbc:mariadb://localhost:3306/databse?user=root&password=pw targetFolder drupalFilesFolder "Git author" "git-em@i.l"
```## More Details
I built this to be just enough to fulfil my needs of converting a 10-year old Drupal CMS (with ~400 pages and some plugins) to a gollum wiki.
The program was rather hacked on a couple of afternoons try-and-error-style just to get my data ASAP to the new system with as less errors as possible. Not my best work.Having said that, drupal2gollum still offers a couple of features. So it might be a starting point for others.
☑ Converts all drupal node revisions to Git revisions (HTML files)
☑ Converts all drupal files to gollum uploads
☑ Converts lastest node revision HTML to Markdown
☑ Converts HTML links to drupal files into links to gollum files (also for images)
☑ Converts taxonomy (latest revision only) to `Tag` heading at the end of each markdown page. The individual tags are converted to a list starting in `tag=` so you can use the gollum search to find tags using `tag=...` as search term.
☑ Converts [Link node plugin](https://www.drupal.org/project/link_node) syntax to gollum links
☑ Converts [Footnode plugin](https://www.drupal.org/project/link_node) syntax to links
☑ Converts [Table of Concent plugin](https://www.drupal.org/project/tableofcontents) to [gollum TOC tag](https://github.com/gollum/gollum/wiki#table-of-contents-toc-tag)
☑ Converts [Syntax highliger plugin](https://www.drupal.org/project/syntaxhighlighter) syntax to Fenced Code Blocks. Example: `{syntaxhighlighter brush: java}` or `