Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docs.m-unlock.nl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNLOCK
docs.m-unlock.nl
Commits
e140e254
Commit
e140e254
authored
4 years ago
by
Bart
Browse files
Options
Downloads
Patches
Plain Diff
full deploy
parent
d8b9af10
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
deploy.sh
+20
-16
20 additions, 16 deletions
deploy.sh
with
20 additions
and
16 deletions
deploy.sh
100644 → 100755
+
20
−
16
View file @
e140e254
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment