Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build docs immediately include wraith add updater script update README use wraith with phantomjs fix updater script clean up runthedocs and README add docker version file verisoning and other improvements
- Loading branch information
alexfornuto
committed
Jul 5, 2018
1 parent
8477e69
commit 024b6b0
Showing
7 changed files
with
131 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ source 'https://rubygems.org' | |
gem 'html-proofer' | ||
gem 'bundler' | ||
gem 'rake' | ||
gem 'wraith' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
#/bin/bash | ||
|
||
printf "Creating the Docker container... \n" | ||
|
||
# Invoke the docker image with a shared volume for source. | ||
if docker run -p 8000:8000 --name=pantheon-docs -v $(pwd)/source:/documentation/source -dit pantheonsystems/documentation; then | ||
printf "Container built and running \n" | ||
if docker run -p 8000:8000 --name=pantheon-docs -v $(pwd)/source:/documentation/source -dit pantheonsystems/documentation > /dev/null 2>&1; then | ||
printf "Container built and running. 👍👍 \n" | ||
else | ||
printf "Container exists... \n" | ||
printf "Container exists, restarting... \n" | ||
docker container start pantheon-docs | ||
printf "\n" | ||
printf "Container restarted. 👍👍 \n" | ||
fi | ||
|
||
printf "Building the latest docs... \n" | ||
docker exec pantheon-docs /documentation/node_modules/.bin/grunt --force > /dev/null | ||
docker exec pantheon-docs /documentation/bin/sculpin generate --env=dev | ||
|
||
# Start app script, which invokes grunt, the watch script, and a simple PHP web server | ||
docker exec pantheon-docs /documentation/scripts/app.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#/bin/bash | ||
|
||
printf "Stopping any running pantheon-docs containers... \n \n" | ||
|
||
docker container stop pantheon-docs | ||
|
||
printf "Removing old container.. \n \n" | ||
|
||
docker container rm pantheon-docs | ||
|
||
printf "Pulling latest image... \n \n" | ||
|
||
docker image pull pantheonsystems/documentation | ||
|
||
printf "\n Done! Execute runthedocs.sh to start the application. \n \n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters