A quick and easy diff generator with support for plaintext and formatted diffs of markdown.
Go to file
Adam Brown f15069f42d minor fix readme 2016-11-04 10:46:45 -04:00
client add option to display as plain text 2015-05-26 10:41:06 -04:00
e2e/main initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
server cleanup old docker cruft 2016-11-03 19:16:54 -04:00
test initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
.bowerrc initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
.buildignore initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
.editorconfig initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
.gitattributes initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
.gitignore remove docker files 2015-04-17 23:17:12 -04:00
.travis.yml initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
.yo-rc.json initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
Gruntfile.js update server port and set new dubdiff method 2016-11-03 22:28:51 +00:00
LICENSE Initial commit 2015-02-06 10:35:22 -05:00
README.md minor fix readme 2016-11-04 10:46:45 -04:00
bower.json initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
karma.conf.js initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00
markdown-format-wdiff.sublime-project add rough client interface \n complete server interface for adding revisions \n remove scaffolding examples 2015-02-07 13:49:04 -05:00
markdown-format-wdiff.sublime-workspace changes to diff algo 2016-05-24 10:56:13 -04:00
package.json add option to display as plain text 2015-05-26 10:41:06 -04:00
protractor.conf.js initial check-in with working wdiff server-side api 2015-02-06 10:46:55 -05:00

README.md

dubdiff

A diff viewer for markdown-formatted documents.

Uses the wdiff tool as a diffing engine. This produces an output that is more useful for copy-editing tasks. This wdiff comparison is then processed in a way that is aware of markdown formatting. The resulting output attempts to show differences of copy within the final document format (rather than differences of format).

The markdown-sensitive processing of the wdiff comparison is at server/components/wdiff/index.js, for the curious.

Live Version

The tool is live at http://dubdiff.com, feel free to use it there.

Provisioning

You'll need the following:

  • node & npm
  • grunt and bower (npm install -g grunt bower)
  • ruby (apt install ruby)
  • sass (gem install sass)
  • wdiff (apt install wdiff)

The wdiff binary should be placed in the bin subfolder, or a link should be made to the binary. Eg. ln -s /usr/bin/wdiff bin/wdiff.

npm install && bower install
mkdir data

Low-memory environments

On a low-memory machine, eg. a DigitalOcean 512MB instance, you will need to enable virtual memory. Use this guide:

How To Configure Virtual Memory (Swap File) on a VPS

Start on boot

To make the application start on boot, run the following:

pm2 start grunt --name dubdiff -- serve:dist
pm2 startup systemd
pm2 save

Digital Ocean: How To Set Up a Node.js Application for Production on Ubuntu 16.04