GithubHelp home page GithubHelp logo

hybridgroup / gobot-site Goto Github PK

View Code? Open in Web Editor NEW
9.0 8.0 19.0 17.26 MB

Website for Gobot - Golang framework/set of libraries for robotics and physical computing

Home Page: http://gobot.io/

Ruby 5.31% HTML 17.50% JavaScript 1.35% Haml 54.93% SCSS 20.92%

gobot-site's Introduction

Gobot Website

This is the code for the website for Gobot (http://gobot.io) a framework for robotics, drones, and the Internet of Things (IoT) written using the Go programming language (http://golang.org/)

If you are looking for the actual Gobot code itself, it is at https://github.com/hybridgroup/gobot

This site is built using Middleman

To run locally:

  bundle install
  bundle exec middleman

Documentation

This project uses HAML.

If you want to help us with the documentation of the site, you can follow this steps :

    1. Download the zip of the branch "master" or clone the project with git.

       git clone [email protected]:hybridgroup/gobot-site.git "name"
      
    1. Create a new branch for the project and switch to that new branch.

       git branch "new_name"
       git checkout "new_name"
      

    or

    git checkout -b "new_name"
    
    1. Open the project with your favourite text editor.
    1. Go to the file source/documentation , which has all the documentation of the site.

Platforms

All of the page content is generated from the platform's github repo. To add new documentation to any platform, edit the readme in the respective Gobot module's repository.

In order for the readme to be properly extracted, the content being pushed to the site must:

  • include a ## How to Install section following the platform introduction
  • have a new line after each code block

To import platforms from the main Gobot repository, run the bin/import_platforms script. You'll need to have Git installed.

This script will:

  • clone down the Gobot repos
  • extract all platform readmes
  • convert github markdown syntax to be haml compatible
  • save the platform documentation to source/documentation/platforms/partials

Drivers

To add new information to any driver, do this :

    1. Go to the file source/documentation/drivers , and select the driver you want to edit.

Examples

To import examples from the main Gobot repository, run the bin/import_examples script. You'll need to have Git installed.

This script will:

  • clone down the Gobot repo
  • extract all examples
  • create missing example pages and remove those that have also been removed from the main repo
  • create/update examples index page

Repo Docs

To import docs partials from Gobot adaptor repositories, run the bin/import_repo_docs script.

This script will:

  • clone down Gobot adaptor repositories
  • extract all docs/*.md documents
  • add them as partials to source/documentation/drivers/partials

If you want to only import docs from a single repo:

bin/import_repo_docs hybridgroup/gobot-gpio

or

bin/import_repo_docs https://github.com/hybridgroup/gobot-gpio.git

Images

To add images for platforms or devices:

  • remove entire background
  • the image should be 800 width x 600 height
  • layer effect: White color overlay with blend mode HUE

Background color is #F3F1EB

To replace background color using GIMP:

https://www.gimp.org/tutorials/Changing_Background_Color_1/

Send your Pull Request

When you have your code ready, create a new PR : base: master and compare:"your_branch"

Deploy

middleman-gh-pages gem is being used to build the webpage and deploy to gh-pages branch.

For deploying the webpage, your must be in 'master' branch and run the following command:

  rake publish

You must not have any uncomitted or untracked files in the site dirs, or the publish operation will fail with a message such as Directory not clean.

If the publish fails, you might need to remove the build dir before trying to run rake publish again.

gobot-site's People

Contributors

albertogg avatar alecthegeek avatar cathalgarvey avatar colemanserious avatar deadprogram avatar dhruvasagar avatar dportalesr avatar eripa avatar geetarista avatar hunsin avatar jdogherman avatar jpetitcolas avatar juliancheal avatar ksputo avatar marioricalde avatar mrbuk avatar obec avatar roverwire avatar sks avatar stewart avatar tmcarr avatar trevrosen avatar wfernandes avatar xixebombilla avatar zankavrogin avatar zankich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gobot-site's Issues

Spark Core imcompatible to Servo

There is an issue open on the gobot repo from december 2014.
While not working, the spark core should not be listed to be compatible with the servo.

Improve Getting Started docs

It would be very nice to be able to have some explanation of the major features and architectural components/abstractions right off the bat. I'm creating this issue as a discussion venue for some improvements in that area.

Convert site to Hugo

I'm very interested in converting the site generation code from Middleman to Hugo. Anyone want to help with this? :)

Syntax error in example on landing page

The example for The "Hello, World" Of Things contains a syntax error.

Corresponding file: source/index.html.haml

Trying to build the example results in:

./main.go:21: undefined: robot
./main.go:27: undefined: robot in robot.Start

robot needs to be declared. It is fixed by changing = to :=

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.