Site with the Resources of the Linguistic Convergence Laboratory.
The system should have R, quarto and the following R packages: tidyverse, ymlthis, and yaml. It would be good to have GNU Make too, but it is also possible to complile the website without it.
In order to compile you can clone the repository, cd to it and type make.
If you do not have GNU Make on the system, you can compile the English and Russian versions of the website manually:
a) English version
quarto render ./
b) Russian version
quarto render ./ru
- To update the website you will need to update information in
data.tsv. In case you need to change the text of the website, seeindex.qmd,resources.qmd,ru/index.qmd, andru/resources.qmd. - After the update you will need to run the R script stored in
scripts/create_ymls.R. This script will create a bunch of.ymlfiles in the./ymlsfolder including two general.ymlfiles:_quarto-english.ymland_quarto-russian.yml. - After the update of the
.ymlfiles you will need to replace the files in the./and./rufolders:
cp ymls/_quarto-english.yml ./_quarto.yml
cp ymls/_quarto-russian.yml ru/_quarto.yml
- Once
_quarto.ymlis updated in all folders, we can render the site as in the compilation section.
- Create an archive of the docs folder:
tar -cf site.tar docs/*
- Pull the archive to the server:
rsync -avz /path/to/your/archive/site.tar lingconlab.ru:/home/your_username/
- Log in to the server and extract data from the archive
tar -xvf site.tar
- Move everything to the
/var/www/htmlfolder.
sudo rsync -a _site/* /var/www/html/
- Clean:
rm -dr _site/
rm site.tar