Skip to content
Snippets Groups Projects
Commit e140e254 authored by Bart's avatar Bart
Browse files

full deploy

parent d8b9af10
Branches
No related tags found
No related merge requests found
deploy.sh 100644 → 100755
#!/bin/bash
#=====================================================================================
#=======================================================================================
#title :Unlock docs deploy
#description :Deploy Unlock Documentation including metadatafields and ontology docs
#description :Deploy Unlock Documentation including metadata fields and ontology docs
#author :Bart Nijsse & Jasper Koehorst
#date :2021
#version :0.0.1
#=====================================================================================
#=======================================================================================
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Build metadata docs
if ! [ -d $DIR/metadata_docs ]; then
git clone https://git.wur.nl/unlock/metadata_docs.git
fi
# Build metadata docs
cd $DIR/metadata_docs
git pull
rm -rf $DIR/metadata_docs/site $DIR/metadata_docs/mkdocs.yml $DIR/metadata_docs/docs $DIR/metadata_docs/mkdocs_nav.yml
./build.sh $DIR/MetadataFields/unlock_metadata.xlsx
# Build ontology
cd $DIR
if ! [ -d $DIR/ontology ]; then
git clone https://git.wur.nl/unlock/ontology.git
fi
git pull
cd $DIR/ontology/unlock_docs
./build.sh
#Build docs.m-unlock.nl
cd $DIR
rm -rf site
mkdocs build
cp -r $DIR/MetadataFields $DIR/site/
#mv $DIR/metadata_docs/site/* $DIR/site/MetadataFields/
#mv $DIR/site $DIR/unlock_docs
# add ontology docs
cp -r $DIR/ontology/unlock_docs/site $DIR/site/ontology
# add metadata docs
cp -r $DIR/MetadataFields $DIR/site/
cp -r $DIR/metadata_docs/site/* $DIR/site/MetadataFields/
# cd $DIR
# rm -rf ontology
# git clone https://git.wur.nl/unlock/ontology.git
# cd ontology
# cd unlock_docs
# ./build.sh
# mkdocs serve --dev-addr 127.0.0.1:8003 &
mv $DIR/site $DIR/unlock_docs
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment