WSRF Release: 07-07-21 (#109)

This commit is contained in:
Glenn Penridge
2021-07-07 11:04:28 +10:00
committed by GitHub
parent a8afec0a4f
commit 5c982ae805
4 changed files with 28 additions and 11 deletions
+1
View File
@@ -5,6 +5,7 @@ _data/nav_api.*
_site
_config-prod.yml
_config-local.yml
_config-environment.yml
node_modules
api
vendor
+1 -1
View File
@@ -211,7 +211,7 @@
</div>
{% include_remote {{ site.origin }}/_docs/footer.html css="body > *" %}
{% include_remote {{ site.origin }}/_docs/footer.html %}
<script src="{{ site.shared_baseurl }}{{ site.baseurl }}/scripts/common.min.js"></script>
<script src="{{ site.shared_baseurl }}{{ site.baseurl }}/scripts/docs.min.js"></script>
+2 -4
View File
@@ -12,12 +12,10 @@
<title>TinyMCE | {{ page.meta_title | or:page.title }}</title>
<link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet"/>
<link href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" rel="stylesheet" media="print" onload="this.media='all'; this.onload=null;" />
<link href="{{ site.shared_baseurl }}{{ site.baseurl }}/css/common.min.css" rel="stylesheet">
<link href="{{ site.shared_baseurl }}{{ site.baseurl }}/css/docs.min.css" rel="stylesheet">
<link href="//fast.fonts.net/cssapi/5d4ae438-4aca-4c75-8249-d9486d12b12e.css" rel="stylesheet">
{% include_remote {{ site.origin }}/_docs/head.html css="head > *" %}
{% include_remote {{ site.origin }}/_docs/head.html %}
{% assign tinymce_script_tag_included = false %}
+24 -6
View File
@@ -2,12 +2,30 @@
set -e
BASEURL="$(_scripts/get-baseurl.sh)"
BASE_URL="$(_scripts/get-baseurl.sh)"
STAGING_ORIGIN="https://www.staging.tiny.cloud"
echo -e "\n > setting baseurl to: $BASEURL"
echo "baseurl: \"$BASEURL\"" > _config-prod.yml
echo -e "\n > setting base url to: $BASE_URL"
echo "baseurl: \"$BASE_URL\"" > _config-environment.yml
echo -e " > builidng documentation\n"
bundle exec jekyll build --config _config.yml,_config-prod.yml
#
# Due to how the workflow for docs builds runs in Wercker, we have
# to check specifically for the develop branch to override the
# origin -- we need to do this for the template imports on the
# head, footer and newsletter parts of the docs.
#
if [[ -z "${WERCKER_GIT_BRANCH}" ]]; then
echo -e " > local build - using default origin in config.yml"
else
if [[ $WERCKER_GIT_BRANCH = "develop" ]]; then
echo -e " > staging build - setting origin to: $STAGING_ORIGIN"
echo "origin: \"$STAGING_ORIGIN\"" >> _config-environment.yml
else
echo -e " > production/feature branch build - using default origin in config.yml"
fi
fi
echo ""
echo -e " > building documentation\n"
bundle exec jekyll build --config _config.yml,_config-environment.yml
echo ""