Skip to content

Commit

Permalink
basedir for non-stable branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Luciano Bello committed Dec 7, 2019
1 parent 04a8f6f commit 9e8de16
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ serve:
bundle exec guard

build:
bundle exec jekyll build
touch _site/.nojekyll
bash build.sh
14 changes: 14 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

user=delapuente
org=qiskit-community
repo=community.qiskit.org
path=textbook

if [[ $TRAVIS_BRANCH != "stable" ]] && [[ $TRAVIS_BRANCH != "" ]]
then
path="${path}-${TRAVIS_BRANCH}"
fi

bundle exec jekyll build --baseurl "${path}"
touch _site/.nojekyll

0 comments on commit 9e8de16

Please sign in to comment.