Template for publishing collections of treebanks.
The treebanks themselves live in the ./public/xml
directory.
All other configuration is done using ./src/config.json
.
https://perseids-publications.github.io/treebank-template/
git clone git@github.com:perseids-publications/treebank-template.git my-trees
cd my-trees
git remote rename origin source
git remote add origin <my-trees origin>
git push -u origin master
- Copy all your trees into
public/xml
- Update the
src/config.json
file - Update
name
andhomepage
inpackage.json
- Update the information in
.env
git pull source master
- Fix merge conflicts
git push origin master
yarn install
yarn start
Before creating a production build you need to know the path where it will be accessed.
Then run the command PUBLIC_URL='./path/of/app' yarn build
.
This will generate a set of static files in the build/
directory that you can serve.
For example, if you want to deploy it at www.example.com/
then run PUBLIC_URL='./' yarn build
.
If you want to deploy it at www.example.com/lexica/lsj
then run
PUBLIC_URL='./lexica/lsj' yarn build
.
yarn deploy
The code is licensed under the MIT license (see LICENSE
file).
The treebanks are licensed under the CC0 1.0 license (see TREEBANK_LICENSE
file).