From 259d3ef972d3f12b04b10f6f21751f78d5044dd6 Mon Sep 17 00:00:00 2001
From: Rodrigo Fernandes
Date: Wed, 12 Oct 2016 22:52:59 +0100
Subject: [PATCH] Add diff output options
---
docs/demo.html | 417 ---
docs/index.html | 6 +-
docs/url.html | 167 +-
docs/url.js | 561 ++++
docs/url.min.js | 1 +
package.json | 5 +-
scripts/release-website.sh | 31 +
.../pages/demo/demo-assets.partial.html | 5 -
.../pages/demo/demo-scripts.partial.html | 258 --
.../templates/pages/demo/demo.partial.html | 9 -
.../templates/pages/index/index.partial.html | 4 +-
.../pages/url/url-scripts.partial.html | 123 +-
website/templates/pages/url/url.js | 163 +
website/templates/pages/url/url.partial.html | 42 +-
website/templates/template.mustache | 2 +-
yarn.lock | 2818 +++++++++++++++++
16 files changed, 3658 insertions(+), 954 deletions(-)
delete mode 100644 docs/demo.html
create mode 100644 docs/url.js
create mode 100644 docs/url.min.js
create mode 100755 scripts/release-website.sh
delete mode 100644 website/templates/pages/demo/demo-assets.partial.html
delete mode 100644 website/templates/pages/demo/demo-scripts.partial.html
delete mode 100644 website/templates/pages/demo/demo.partial.html
create mode 100644 website/templates/pages/url/url.js
create mode 100644 yarn.lock
diff --git a/docs/demo.html b/docs/demo.html
deleted file mode 100644
index 8b9147f..0000000
--- a/docs/demo.html
+++ /dev/null
@@ -1,417 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
- diff2html
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Line by Line
-
-
-
-
-
Side by Side
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/docs/index.html b/docs/index.html
index 5841247..b668362 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -72,7 +72,7 @@
- Demo
+ Demo
@@ -101,11 +101,11 @@
-
+
-
+
diff --git a/docs/url.html b/docs/url.html
index 8f51e1a..78b5f99 100644
--- a/docs/url.html
+++ b/docs/url.html
@@ -79,7 +79,7 @@
- Demo
+ Demo
@@ -100,15 +100,42 @@
or any other git or unified compatible diff and we will render a pretty html representation of it
with code syntax highlight and line similarity matching for better code reviews.
+ Options:
+
+
Output:
+ Format
+
+ Line by Line
+ Side by Side
+
+
+ Show Files
+
+
+ Matching:
+ Type
+
+ Lines
+ Words
+ None
+
+
+ Words Threshold
+
+
+ Maximum Comparisons
+
+
+
- Line by Line
-
-
+
Help:
@@ -128,14 +155,17 @@
Can I send a custom url for a friend, colleague or co-worker?
- Just add a url parameter called diff to current url using as value your Commit, Pull Request, Merge Request, Diff or Patch url.
- ex: https://diff2html.xyz/url?diff=https://github.com/rtfpessoa/diff2html/pull/106
+ Just add a url parameter called diff to current url using as value your Commit, Pull Request, Merge Request, Diff
+ or Patch url.
+ ex: https://diff2html.xyz/url?diff=https://github.com/rtfpessoa/diff2html/pull/106
+
You can also use an hashtag (# or #! or #!/) in the end of the url.
This will be overridden if you click any href id and for that reason not advised.
Why can't I paste a diff?
- diffy.org is an amazing tool created by pbu88
+
diffy.org is an amazing tool created by pbu88
to share your diffs and uses diff2html under the hood.
Also, diff2html cli can directly publish diffs to diffy.org
@@ -203,128 +233,7 @@
-
+