-
Notifications
You must be signed in to change notification settings - Fork 95
[SKIP CI] Updating the script that copies changes to gh-pages from vmware/master #1863
[SKIP CI] Updating the script that copies changes to gh-pages from vmware/master #1863
Conversation
How about renaming to publish_document.sh/update_gh_pages.sh? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address some minor comments.
misc/scripts/updateGHpages.sh
Outdated
Following script copies the markdown files from vmware:master to gh-pages | ||
Local copy of vDVS project is needed before running this script (git clone https://github.com/vmware/docker-volume-vsphere.git) | ||
Script has to be run from the docker-volume-vsphere/ | ||
e.g. ./misc/scripts/updateGHpages.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: ./misc/scripts/updateGHpages.sh
=> ./misc/scripts/<script_name>
.. it will be outdated soon when script name got rename.
misc/scripts/updateGHpages.sh
Outdated
# e.g. ./misc/scripts/updateGHpages.sh | ||
|
||
set -e | ||
: ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:
??
misc/scripts/updateGHpages.sh
Outdated
Script has to be run from the docker-volume-vsphere/ | ||
e.g. ./misc/scripts/updateGHpages.sh | ||
|
||
Before executing this script, its important to have two git remotes : origin and vmware |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would suggest to move this pre-requisite before line#6
misc/scripts/updateGHpages.sh
Outdated
@@ -1,10 +1,21 @@ | |||
#!/bin/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed the script to updateGHpages.sh
How about renaming to publish_document.sh/update_gh_pages.sh?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Please address 2 minor comments before merging.
misc/scripts/update_gh_pages.sh
Outdated
@@ -50,18 +73,22 @@ rm -rf $BACKUP_DIR | |||
|
|||
echo "Performing steps to generate customer facing document" | |||
cd jekyll-docs/ | |||
|
|||
# generating the html pages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: generating => Generating .. the same as line#61
misc/scripts/update_gh_pages.sh
Outdated
docker run --rm --volume=$(pwd):/srv/jekyll -it jekyll/jekyll:stable jekyll build | ||
rm -rvf ../documentation | ||
mv _site ../documentation | ||
|
||
#updating documentation/index.html | ||
# updating documentation/index.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
Addressed all the review comments. Merging the changes. |
Following changes have been made to the script: