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

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
32dbe76
[#3] Add installation and build steps for project
apoorvam Aug 7, 2019
4438d8e
Set author
apoorvam Aug 7, 2019
75a6415
Update readme and set dunner url
apoorvam Aug 7, 2019
0d3e6aa
Remove duplicate pages in docs: clone docs to docs dir instead of wiki
apoorvam Aug 8, 2019
f3398fa
Merge pull request #5 from leopardslab/add-build-steps
agentmilindu Aug 8, 2019
8b13a52
[#6] Add cookbook recipes page to dunner website
apoorvam Aug 8, 2019
1d71006
Merge branch 'develop' into add-build-steps
apoorvam Aug 8, 2019
aa6bef3
[#4] Integrate with travis
apoorvam Aug 8, 2019
aac43ca
use npm script instead of gatsby directly
apoorvam Aug 8, 2019
a372ec2
get docs wiki before build in travis pipeline
apoorvam Aug 9, 2019
6f35c78
Remove generated recipe file
apoorvam Aug 9, 2019
8592c90
install deps before build
apoorvam Aug 9, 2019
9b3a311
test: remove docs folder
apoorvam Aug 9, 2019
3d2479c
Merge pull request #8 from leopardslab/integrate-travis
agentmilindu Aug 10, 2019
086812e
Merge pull request #7 from leopardslab/add-recipes
agentmilindu Aug 11, 2019
a28feb1
Remove gh-pages plugin
agentmilindu Aug 12, 2019
50a9daa
Update package.json
agentmilindu Aug 12, 2019
5819f60
Update README.md
agentmilindu Aug 13, 2019
21d1523
Add logic for pull or clone
agentmilindu Aug 13, 2019
a9a723f
Add missing end if statement
agentmilindu Aug 13, 2019
769f05e
Merge pull request #10 from leopardslab/pull-or-clone
agentmilindu Aug 14, 2019
7a3a728
Merge pull request #9 from leopardslab/Update-README
agentmilindu Aug 14, 2019
701c4ed
Add Netlify badge
agentmilindu Aug 14, 2019
df69677
Add travis badge
apoorvam Aug 17, 2019
612c26f
Set script to fail on command failure
apoorvam Aug 17, 2019
8ecd2d9
test: print task file
apoorvam Aug 17, 2019
bd77250
test: print recipe
apoorvam Aug 18, 2019
bf3d733
Merge pull request #13 from leopardslab/add-badge
agentmilindu Aug 18, 2019
0d43d77
fix issue #11
Mr-Wiredancer Jan 1, 2020
b73761b
Merge pull request #25 from MarkChenYutian/issue11
apoorvam Jan 1, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: node_js

node_js:
- "stable"

cache:
directories:
- node_modules

before_script:
- "npm i -g gatsby-cli"
- "npm install"

script:
- npm run get-wiki
- npm run build
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
# dunner-website
# 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.

## Build from source

* Install `node` and `npm`
* Install [gatsby-cli](https://www.gatsbyjs.org/docs/gatsby-cli/) as `npm install -g gatsby-cli`
* 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`

9 changes: 7 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const config = {
gatsby: {
pathPrefix: "/",
siteUrl: "https://dunner.com",
siteUrl: "https://dunner.io",
gaTrackingId: null
},
header: {
Expand All @@ -12,6 +12,10 @@ const config = {
tweetText: "",
links: [
{ text: "Docs", link: "/docs" },
{
text: "Cookbook Recipes",
link: "/cookbook-recipes"
},
{
text: "Releases",
link: "https://github.com/leopardslab/dunner/releases"
Expand All @@ -26,7 +30,8 @@ const config = {
"/docs/introduction-to-dunner",
"/docs/installation-guide",
"/docs/user-guide",
"/docs/developer-guide"
"/docs/developer-guide",
"/cookbook-recipes"
],
links: [{ text: "", link: "" }]
},
Expand Down
25 changes: 25 additions & 0 deletions content/cookbook-recipes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: "Dunner Cookbook Recipes"
metaTitle: "Dunner Recipes"
metaDescription: "Dunner-Cookbook is a collection of Dunner task recipes"
---

# Dunner Cookbook

Dunner cookbook is a collection of Dunner recipes, which can be used as templates during initialization of Dunner in a project.

You can initialize with these recipes as:

```
dunner init <recipe_name>
```

You can list all available recipes from command-line as:

```
dunner list-recipes
```

## How to add your Dunner recipe to Cookbook?

Send us a Pull Request with your Dunner task file in the format of a Dunner recipe described in [Cookbook](https://github.com/leopardslab/dunner-cookbook#how-to-add-your-dunner-recipe).
Empty file.
1 change: 0 additions & 1 deletion content/docs
Submodule docs deleted from 373260
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
26 changes: 26 additions & 0 deletions get_recipes.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#! /bin/sh
set -e

COOKBOOK_CLONE_URL="https://github.com/leopardslab/dunner-cookbook.git"
CLONE_TEMP_DIR=`mktemp -d`
DEST_DIR="./content/cookbook-recipes"

git clone --depth 1 https://github.com/leopardslab/dunner-cookbook.git $CLONE_TEMP_DIR

for d in "$CLONE_TEMP_DIR/recipes/*/"; do
recipe_name="$(echo $(basename $d))"
echo "Copying recipe: $recipe_name"
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"
done

rm -rf $CLONE_TEMP_DIR

echo "Done"


Loading