Reformat addon instructions a bit
This commit is contained in:
parent
45133a0a64
commit
a7c230c4bb
15
README.md
15
README.md
@ -72,20 +72,19 @@ create a file named `__init__.py` containing the code below and put it in
|
|||||||
|
|
||||||
import anki.sync
|
import anki.sync
|
||||||
|
|
||||||
anki.sync.SYNC_BASE = 'http://127.0.0.1:27701/%s'
|
addr = "http://127.0.0.1:27701/" # put your server address here
|
||||||
|
anki.sync.SYNC_BASE = addr + "%s"
|
||||||
|
|
||||||
### Anki 2.0
|
### Anki 2.0
|
||||||
|
|
||||||
To make Anki use ankisyncd as its sync server, create a file (name it something
|
Create a file (name it something like ankisyncd.py) containing the code below
|
||||||
like ankisyncd.py) containing the code below and put it in `~/Anki/addons`.
|
and put it in `~/Anki/addons`.
|
||||||
|
|
||||||
import anki.sync
|
import anki.sync
|
||||||
|
|
||||||
anki.sync.SYNC_BASE = 'http://127.0.0.1:27701/'
|
addr = "http://127.0.0.1:27701/" # put your server address here
|
||||||
anki.sync.SYNC_MEDIA_BASE = 'http://127.0.0.1:27701/msync/'
|
anki.sync.SYNC_BASE = addr
|
||||||
|
anki.sync.SYNC_MEDIA_BASE = addr + "msync/"
|
||||||
Replace 127.0.0.1 with the IP address or the domain name of your server if
|
|
||||||
ankisyncd is not running on the same machine as Anki.
|
|
||||||
|
|
||||||
[Anki]: https://apps.ankiweb.net/
|
[Anki]: https://apps.ankiweb.net/
|
||||||
[dsnopek's Anki Sync Server]: https://github.com/dsnopek/anki-sync-server
|
[dsnopek's Anki Sync Server]: https://github.com/dsnopek/anki-sync-server
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user