Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cscott/mediawiki-extensions-togetherjs
A mediawiki extension to incorporate real time collaboration using Mozilla's TowTruck project.
https://github.com/cscott/mediawiki-extensions-togetherjs
Last synced: about 2 months ago
JSON representation
A mediawiki extension to incorporate real time collaboration using Mozilla's TowTruck project.
- Host: GitHub
- URL: https://github.com/cscott/mediawiki-extensions-togetherjs
- Owner: cscott
- License: gpl-2.0
- Created: 2013-08-23T14:21:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-29T16:20:19.000Z (over 10 years ago)
- Last Synced: 2024-05-02T00:05:42.241Z (8 months ago)
- Language: JavaScript
- Size: 1.47 MB
- Stars: 8
- Watchers: 5
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Mediawiki TogetherJS extension
This is a [MediaWiki][] extension which adds real-time collaborative
editing using Mozilla's [TogetherJS][] project. It enables real-time
collaboration on both the wikitext source for an article, as well as
when editing using the [VisualEditor][].## Developing and installing
For information on installing this extension on a local wiki, please
see https://www.mediawiki.org/wiki/Extension:TogetherJS. You might
also like to install VisualEditor; for that, see
https://www.mediawiki.org/wiki/Extension:VisualEditor .## Rebuilding TogetherJS
The sources in `js/togetherjs.js` are built from the TogetherJS
sources on github. The [history of that file][] should state how
the file was last build, and from what upstream commit. To rebuild,
check out TogetherJS from github, switch to the appropriate upstream
branch (development happens on the `develop` branch, and gets merged
to `master` on release), and build as follows:
```sh
$ git clone https://github.com/mozilla/togetherjs.git
$ cd togetherjs
$ git checkout develop # or other appropriate branch
$ npm install
$ npm install grunt-cli
$ node_modules/.bin/grunt build --base-url //togetherjs.wmflabs.org/extensions/TogetherJS/togetherjs --hub-url https://togetherjs-hub.wmflabs.org --no-hardlink --dest mw-ext
```
Then copy the files from `mw-ext`. Assuming your newly-built copy of
togetherjs is in `$TJS/mw-ext`, change back to this repository and:
```sh
$ git rm -rf togetherjs
$ cp $TJS/mw-ext/togetherjs.js js/
$ cp -r $TJS/mw-ext/togetherjs ./
$ git add js/togetherjs.js togetherjs
```
Note that we don't bother to copy the minified version of TogetherJS,
since the Mediawiki resource loader will take care of minifying all
of our sources when appropriate.[MediaWiki]: https://www.mediawiki.org/wiki/MediaWiki
[TogetherJS]: https://togetherjs.mozillalabs.com/
[VisualEditor]: https://www.mediawiki.org/wiki/VisualEditor
[history of that file]: https://github.com/cscott/mediawiki-extensions-togetherjs/commits/master/js/togetherjs.js