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 #14

Open
wants to merge 12 commits into
base: Update-README
Choose a base branch
from
2 changes: 2 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 Down
3 changes: 2 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ module.exports = {
},
{
resolve: "gatsby-remark-copy-linked-files"
}
},
"gatsby-remark-autolink-headers"
],
extensions: [".mdx", ".md"]
}
Expand Down
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"gatsby-plugin-react-helmet": "3.0.12",
"gatsby-plugin-sharp": "^2.2.10",
"gatsby-plugin-sitemap": "^2.0.12",
"gatsby-remark-autolink-headers": "^2.1.21",
"gatsby-remark-copy-linked-files": "^2.0.11",
"gatsby-remark-images": "3.0.10",
"gatsby-source-filesystem": "^2.0.29",
Expand All @@ -46,7 +47,7 @@
"main": "n/a",
"scripts": {
"start": "gatsby develop",
"get-wiki": "git clone --depth 1 https://github.com/leopardslab/dunner.wiki.git content/docs",
"get-wiki": "if cd content/docs; then git pull; else git clone --depth 1 https://github.com/leopardslab/dunner.wiki.git content/docs; fi",
"get-cookbook": "sh ./get_recipes.sh",
"update-content": "get-wiki && get-cookbook",
"build": "gatsby build --prefix-paths",
Expand Down
2 changes: 1 addition & 1 deletion src/components/rightSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const SidebarLayout = ({ location }) => (
return (
<ListItem
key={index}
to={`#${innerItem.title}`}
to={`${innerItem.url}`}
level={1}
>
{innerItem.title}
Expand Down