Commit 9c9f5d55 authored by Martin Vician's avatar Martin Vician

copyright, version

parent 089030c1
Pipeline #27340710 failed with stage
in 53 seconds
......@@ -2,7 +2,7 @@ image: python:alpine
before_script:
- apk update
- apk add rsync openssh-client
- apk add rsync openssh-client git
- pip install mkdocs mkdocs-material
- mkdir -p $HOME/.ssh
- chmod 700 $HOME/.ssh
......@@ -19,6 +19,9 @@ test:
deploy:
script:
- sed -i "s/©/\© $(date +%Y)/g" mkdocs.yml
- sed -i "s/REF/#$(git log --pretty=format:'%h' -n 1)/g" mkdocs.yml
- sed -i "s/HASH/$(git rev-parse HEAD)/g" mkdocs.yml
- mkdocs build
- rsync -e "ssh" -avz --delete --exclude="\.*" site/* $SSH_USER@$SSH_HOST:$SSH_ROOT/
artifacts:
......
......@@ -20,8 +20,3 @@ clean:
mkdocs build --clean
restart: stop clean start
deploy: build
ssh vf.vician.cz "sudo chown -R martin:www-data /var/www/wiki.vician.cz/"
rsync -avz --delete --exclude="\.*" site/* vf.vician.cz:/var/www/wiki.vician.cz/
ssh vf.vician.cz "sudo chown -R www-data:www-data /var/www/wiki.vician.cz/"
site_name: Martin Vician's wiki
site_author: Martin Vician
theme:
name: material
......@@ -21,8 +22,13 @@ extra:
social:
- type: 'twitter'
link: 'https://twitter.com/ptvician'
- type: 'gitlab'
link: 'https://gitlab.com/vician'
- type: 'linkedin'
link: 'https://www.linkedin.com/in/ptvician/'
search:
language: 'en, cs'
repo_name: 'vician/wiki'
repo_url: 'https://gitlab.com/vician/wiki'
copyright: "&copy; Martin Vicián <a href='https://gitlab.com/vician/wiki/commit/HASH'>REF</a>"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment