forked from learningequality/ka-lite
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: kalite/distributed/static/js/distributed/software-keyboard.js kalite/version.py
- Loading branch information
Showing
4,014 changed files
with
489,925 additions
and
329,356 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Please include the following information when opening an issue: | ||
* The branch you found the issue on | ||
* The current date / the build that the issue affects | ||
* Expected behavior | ||
* Actual behavior | ||
* Steps to reproduce (be detailed!) | ||
|
||
If opening a PR, please observe the following guidelines | ||
* If you're fixing a bug, write a regression test (or have a really good reason for not writing one... and I mean **really** good!). Additionally, add in a "Fixes `issue number`" for PRs that address a certain issue (e.g. "Fixes #3390"). | ||
* If your PR changes or adds to the User Interface, please include screenshots in either the description or the comments. | ||
* Give a brief summary of your changes in the PR description. Add in any other notes that are important for the reviewer to know. | ||
* Update the documentation if your changes affect it (don't just assume they don't) | ||
* Double check your own code for good style |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
Deprecations in kalite 0.13 | ||
=========================== | ||
|
||
Why in RST, reStructuredText? Because our future sphinx will run on RST. | ||
|
||
This is a working copy for making notes on deprecations until the documentation | ||
structure is here. | ||
|
||
Purging *pyc files | ||
------------------ | ||
Previously, kalite would look for ``*pyc`` files every time it was launched, | ||
and that was quite a waste since its only useful when upgrading. In dev | ||
environments, we recommend that the developer keeps track of these issues | ||
on his/her own as with any other project. | ||
|
||
Tips: | ||
http://blog.daniel-watkins.co.uk/2013/02/removing-pyc-files-coda.html | ||
|
||
> Luckily, it's pretty easy to fix this in git, using hooks, specifically the | ||
> post-checkout hook. To do that, add the following to .git/hooks/post-checkout, and make the file executable: | ||
|
||
:: | ||
|
||
#!/bin/bash | ||
find $(git rev-parse --show-cdup) -name "*.pyc" -delete | ||
|
||
For the normal user, reset assured that the upgrade notes contain more | ||
info. | ||
|
||
TODO: Check that a git pull from an older release does not leave behind any | ||
problematic *pyc files and possibly dump this whole thing. | ||
Which version can I upgrade from? | ||
--------------------------------- | ||
|
||
benjaoming: Certainly not 0.9 since I've removed the line that moves content files. | ||
|
||
|
||
Changes in scripts/ | ||
------------------- | ||
|
||
The ``scripts/`` directory now has everything OSX-specific in ``mac/`` | ||
and Windows stuff in ``win/``. | ||
|
||
These scripts are intended to all deprecate sooner down the road as such | ||
platform-specific logic will be maintained in separate distribution projects. | ||
|
||
Scripts have been modified to continue to work but you are encouraged to | ||
make your system setup only invoke the `kalite` in the `bin/` directory. | ||
|
||
|
||
Starting and stopping kalite | ||
---------------------------- | ||
|
||
Starting and stopping kalite is now performed from the new command line interface | ||
`kalite`. Examples:: | ||
|
||
kalite start # Starts the server | ||
kalite stop # Stops the server | ||
kalite restart # Restarts the server | ||
kalite status # Returns the current status of kalite, 0=stopped, 1=running | ||
kalite manage # A proxy for the manage.py command. | ||
kalite manage shell # Gives you a django shell | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | ||
VAGRANTFILE_API_VERSION = "2" | ||
|
||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
|
||
# Every Vagrant virtual environment requires a box to build off of. | ||
config.vm.box = "trusty64" | ||
|
||
# Create a forwarded port mapping which allows access to a specific port | ||
# within the machine from a port on the host machine. In the example below, | ||
# accessing "localhost:8080" will access port 80 on the guest machine. | ||
config.vm.network "forwarded_port", guest: 8008, host: 38008 | ||
|
||
# Create a private network, which allows host-only access to the machine | ||
# using a specific IP. | ||
config.vm.network "private_network", ip: "192.168.33.10" | ||
|
||
# Create a public network, which generally matched to bridged network. | ||
# Bridged networks make the machine appear as another physical device on | ||
# your network. | ||
# config.vm.network "public_network" | ||
|
||
# Share an additional folder to the guest VM. The first argument is | ||
# the path on the host to the actual folder. The second argument is | ||
# the path on the guest to mount the folder. And the optional third | ||
# argument is a set of non-required options. | ||
config.vm.synced_folder ".", "/vagrant", type: "nfs" | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Everything in here will end up in the host OS' path so it can be executed | ||
directly, example: | ||
|
||
$ kalite start | ||
|
||
Since the kalite command resolves many different things like where kalite is | ||
installed and which python interpretor to run, you might wanna look a | ||
different place for implementing new things :) | ||
|
||
## Distributing on Mac/OSX | ||
|
||
Rather than running the executable directly, you can also: | ||
|
||
1. Symlink it from somewhere in your path, e.g. | ||
|
||
cd /usr/bin | ||
ln -s /path/to/kalite/bin/kalite . | ||
|
||
2 . Copy `kalite` (the file in `bin/`) directly to `/usr/bin`. This is probably | ||
what you want to do for a distribution. Then, you need to setup the following | ||
env variables: | ||
|
||
- KALITE_DIR: The root directory of the installation | ||
- KALITE_PYTHON: If you want kalite run with a diffent python than the one | ||
in your path (optional) or if `python` is not found in the system's path. | ||
|
||
|
||
## Windows | ||
|
||
Have a look in the `windows/` directory, there's some stuff for you. Also, | ||
change your operating system :P | ||
|
||
To have the new command `kalite` registered, double-click or execute | ||
`windows/setup.bat`. | ||
|
||
To run directly (assuming you're in the root folder), use `python.exe bin/kalite`. | ||
|
||
### Distributing for Windows | ||
|
||
Make sure that during the installation, the `bin/windows/setup.bat` command | ||
is run. |
Oops, something went wrong.