1
0
mirror of synced 2025-12-13 10:04:07 +08:00

patch(#142): added examples README.md

This commit is contained in:
Jamie Peabody
2021-04-29 20:24:21 +01:00
parent 747bcacf2c
commit d2c41d1ee1
3 changed files with 36 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
# Changes # Changes
## 4.2.4
* patch: fixes [#142](https://github.com/wickedest/Mergely/issues/142). Added README.md to examples.
## 4.2.3 ## 4.2.3
* patch: fixes [#147](https://github.com/wickedest/Mergely/issues/147). Fixes the css style for the currently selected change. * patch: fixes [#147](https://github.com/wickedest/Mergely/issues/147). Fixes the css style for the currently selected change.

32
examples/README.md Normal file
View File

@@ -0,0 +1,32 @@
# Mergely examples
To run these examples, you need to run:
```bash
$ npm start
```
This runs Mergely in a hot dev-server for development.
## Main example
http://localhost:8080
Shows basic functionality.
## Ajax example
http://localhost:8080/examples/ajax.html
Who still says "ajax" these days? Anyway, this example demonstrates how to load your left-hand and right-hand sources from external URL, and also how to skin your own editor, and provide drop-file functionality.
## Simple example
This example demonstrates how to load your left-hand and right-hand sources from static text.
http://localhost:8080/examples/simple.html
## Size example
This example demonstrates how to size your editors, and also how to have multiple editors on the same page.
http://localhost:8080/examples/size.html

View File

@@ -1,6 +1,6 @@
{ {
"name": "mergely", "name": "mergely",
"version": "4.2.3", "version": "4.2.4",
"description": "A javascript UI for diff/merge", "description": "A javascript UI for diff/merge",
"directories": { "directories": {
"doc": "doc", "doc": "doc",