Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 2 additions & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ params:
editURL: "https://github.com/sourcebots/docs/tree/master/content/"
ordersectionsby: "title"

pythonVersion: 3.5

menu:
shortcuts:
- name: "<i class='fa fa-github'></i> Github Repo"
Expand Down
2 changes: 2 additions & 0 deletions content/api/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Python API
---

Programming your robot is done in [Python](https://www.python.org/), specifically version {{% python_version %}}. You can learn more about Python from their [docs](https://docs.python.org/{{% python_version %}}/), and our [whirlwind tour](/tutorials/python-whirlwind-tour).

## Setup
The following two lines are required to setup the robot.

Expand Down
2 changes: 1 addition & 1 deletion content/tutorials/python-whirlwind-tour.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Python: A Whirlwind Tour"
---
In this tutorial, we'll introduce the basic concepts of programming, which will be central to the programs that you will run on your robot. There are many different languages in which computers can be programmed, all with their advantages and disadvantages, but we use [Python](https://www.python.org/), specifically version 3. We chose Python because it's easy to learn, but also elegant and powerful.
In this tutorial, we'll introduce the basic concepts of programming, which will be central to the programs that you will run on your robot. There are many different languages in which computers can be programmed, all with their advantages and disadvantages, but we use [Python](https://www.python.org/), Specifically {{% python_version %}}. We chose Python because it's easy to learn, but also elegant and powerful.

At the end of the tutorial are exercises. The first ones for each section should be quite easy, while the higher-numbered exercises will be harder. Some will be very hard; try these if you're up for a challenge.

Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/python_version.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{ .Site.Params.pythonVersion }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I see the point of this indirection?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a little syntactic sugar. Means you can use {{% python_version %}} where it's needed rather than `{{ .Site.Params.pythonVersion }}