Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logo for Dunner #15

Open
wants to merge 11 commits into
base: pull-or-clone
Choose a base branch
from
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# dunner-website
[![Netlify Status](https://api.netlify.com/api/v1/badges/511f3bcd-19c2-459d-bb4d-27c86df161f2/deploy-status)](https://app.netlify.com/sites/nifty-bohr-6ae691/deploys)
[![Build Status](https://travis-ci.org/leopardslab/dunner-website.svg?branch=develop)](https://travis-ci.org/leopardslab/dunner-website)

Dunner website built using [Gatsby](https://www.gatsbyjs.org) framework based on React.

Expand All @@ -9,4 +11,5 @@ Dunner website built using [Gatsby](https://www.gatsbyjs.org) framework based on
* To build and start the development server, run `gatsby develop` or `npm run start`
* Build project as `gatsby build` or `npm run build`
* To fetch documentation and other git submodules, run `npm run get-wiki`
* To fetch CookBook run `npm run get-cookbook`

6 changes: 5 additions & 1 deletion get_recipes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! /bin/sh
set -e

COOKBOOK_CLONE_URL="https://github.com/leopardslab/dunner-cookbook.git"
CLONE_TEMP_DIR=`mktemp -d`
Expand All @@ -9,7 +10,10 @@ git clone --depth 1 https://github.com/leopardslab/dunner-cookbook.git $CLONE_TE
for d in "$CLONE_TEMP_DIR/recipes/*/"; do
recipe_name="$(echo $(basename $d))"
echo "Copying recipe: $recipe_name"
recipe_content="$(<"$CLONE_TEMP_DIR/recipes/$recipe_name/.dunner.yaml")"
echo "Dunner task file:"
cat "$CLONE_TEMP_DIR/recipes/$recipe_name/.dunner.yaml"
recipe_content="$(echo "$(cat $CLONE_TEMP_DIR/recipes/$recipe_name/.dunner.yaml)")"
echo "Recipe content: $recipe_content"
recipe_readme="$CLONE_TEMP_DIR/recipes/$recipe_name/README.md"
echo "\n# Recipe\n\n\`\`\`\n$(echo "$recipe_content")\n\`\`\`\n" >> "$recipe_readme"
cp "$recipe_readme" "$DEST_DIR/$recipe_name.md"
Expand Down