Skip to content

Commit

Permalink
Add new Documentation for Contributing New Blocks (#256)
Browse files Browse the repository at this point in the history
* Update website home page

* Update documentation page to give more relevant info

* Update top nav-bar

* Add developer names

* Add skeleton of basic tutorial

* Add new getting_started example

* Fix typo

* Update HomePage to reflect new getting started page

* Updates for getting started

* Add basic info about contributing new blocks

* Rename files and add sample request

* Add Vacuum Cleaner Exercise

* Add index page to link to solved exercises

* Add subheading

* Change Follow Road to Exercises

* Improve style of tutorials page
  • Loading branch information
toshan-luktuke authored Nov 6, 2023
1 parent c32f4d0 commit 7c44305
Show file tree
Hide file tree
Showing 12 changed files with 568 additions and 7 deletions.
39 changes: 39 additions & 0 deletions docs/_pages/custom_contribute.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
title: Custom Blocks
layout: posts
permalink: /custom_contribute/

collection: posts

classes: narrow

sidebar:
nav: "docs"
---

Thanks for taking the time to contribute blocks to Visual Circuit's Library.
To create a block and add it, simply follow the steps given below:

## Creating the block
Create the block in Visual Circuit and test it in your custom environment

## Save As
![Save As]({{ "assets/images/custom_contribute/save_as.png" | absolute_url }})

## Add as Block
![Add Block]({{ "assets/images/custom_contribute/add_block.png" | absolute_url }})

![Sample Block]({{ "assets/images/custom_contribute/sample_block.png" | absolute_url }})

## Example of Added Block Display
![Block Added]({{ "assets/images/custom_contribute/block_added.png" | absolute_url }})


## Contributing upstream
Create a Pull Request on the VisualCircuit-resources repo. The Pull Request must include:
- Content of the blocks as a .vc3 file,
- An explantion of its utility
- A short video of its working
- Expected input and output

![Sample Request]({{ "assets/images/custom_contribute/sample_request.png" | absolute_url }})
24 changes: 24 additions & 0 deletions docs/_pages/exercises.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
title: Exercises
layout: posts
permalink: /exercises/

collection: posts

classes: narrow

sidebar:
nav: "docs"
---

A list of sample exercises of Robotics Academy solved using VisualCircuit are:

### Tutorials

1. [Follow Road](/follow_road/)
2. [Vacuum Cleaner with FSM](/vacuum_cleaner)

### YouTube Links:

1. [Labyrinth Escape](https://www.youtube.com/watch?v=Xs3iAPYRtVQ&list=PLGlX46StCA-SKzpnScwDv4D8_zeVadaOY&index=12)
2. [Visual Lander](https://www.youtube.com/watch?v=J1JhnNOKe1o&list=PLGlX46StCA-SKzpnScwDv4D8_zeVadaOY&index=13)
8 changes: 4 additions & 4 deletions docs/_pages/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ feature_row:
btn_label: "Learn more"

- image_path: /assets/images/follow_road/follow_road.jpg
alt: "Follow Road"
title: "Follow Road"
excerpt: "Solving the Follow Road Excercise with Visual Circuit"
url: "/follow_road/"
alt: "Exercises"
title: "Exercises"
excerpt: "Robotics Academy Exercises Solved with VisualCircuit"
url: "/exercises/"
btn_class: "btn--primary"
btn_label: "Learn more"

Expand Down
8 changes: 5 additions & 3 deletions docs/_pages/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ sidebar:
nav: "docs"
---

## Designing an application on VisualCircuit3
## 1. Designing an application on VisualCircuit3

{% include video id="uK725Y-Y9_c" provider="youtube" %}

## Building a custom block on VisualCircuit3
## 2. Building a custom block on VisualCircuit3

{% include video id="haW_oEOjKh8" provider="youtube" %}
{% include video id="haW_oEOjKh8" provider="youtube" %}

## 3. [For a detailed guide on how to contribute custom blocks](/custom_contribute)
Loading

0 comments on commit 7c44305

Please sign in to comment.