Browse Source

Working on build infrastructure

Signed-off-by: moxiegirl <mary@blockstack.com>
feat/clarity-updates
moxiegirl 6 years ago
parent
commit
f60b595367
  1. 16
      .gitignore
  2. 17
      collections.json
  3. 50
      get-content.sh

16
.gitignore

@ -0,0 +1,16 @@
# downstream content
_core
_browser
_android
_ios
_gaia
# OS or Editor folders
.DS_Store
node_modules
# Jekyllg
_site
.sass-cache
.jekyll-metadata

17
collections.json

@ -0,0 +1,17 @@
{
"version": "THEVERSION",
"collections": [
{
"name": "core",
"repo": "https://github.com/blockstack/blockstack-core"
},
{
"name": "android",
"repo": "https://github.com/moxiegirl/blockstack-android"
},
{
"name": "browser",
"repo": "https://github.com/blockstack/blockstack-browser"
}
]
}

50
get-content.sh

@ -0,0 +1,50 @@
#!/bin/bash
# get the content from the downstream repos
# needs jq "brew install jq"
collectionList=$(<collections.json)
for collection in $(echo "$collectionList" | jq -r '.collections[] | @base64'); do
# Get the collection structure
_jq() {
echo ${collection} | base64 --decode | jq -r ${1}
}
theName=$(echo $(_jq '.name'))
theRepo=$(echo $(_jq '.repo'))
echo "Getting the _$theName"
rm -rf _$theName
svn checkout $theRepo/trunk/docs _$theName
#
# sed -i "" "s/THETITLE/${theTitle}/g" ${DIR}/pdfconfigs/config_mydoc_pdf.yml
#
# for code in $(echo $(_jq '.codes') | jq -r '.[]'); do
# theCode=${code}
# sed -i "" "s/${code}/pdf/g" ${DIR}/_data/sidebars/mydoc_sidebar.yml
# done
#
# echo 'Killing all Jekyll instances'
# kill -9 $(ps aux | grep '[j]ekyll' | awk '{print $2}')
# clear
#
# echo "Building PDF-friendly HTML site for Mydoc ...";
# bundle exec jekyll serve --detach --config _config.yml,pdfconfigs/config_mydoc_pdf.yml;
# echo "done";
#
# echo "Building the PDF ...";
# prince --javascript --pdf-keywords=prince-no-fallback --input-list=_site/pdfconfigs/prince-list.txt -o pdf/${theName}_${theVersion}.pdf;
#
#
# ## Reset everything for the next collection
# git checkout -- ${DIR}/collection-list.json
# git checkout -- ${DIR}/pdfconfigs/config_mydoc_pdf.yml
# git checkout -- ${DIR}/_data/sidebars/mydoc_sidebar.yml
done
Loading…
Cancel
Save