Skip to content

Commit e00d4af

Browse files
author
Brendan Whitfield
committed
started using mkdocs
1 parent 1d9a3f0 commit e00d4af

4 files changed

Lines changed: 41 additions & 7 deletions

File tree

docs/Custom Commands.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Custom OBD Commands
2+
===================
3+
14
If the command you need is not in python-OBDs tables, you can create a new `OBDCommand` object. The constructor accepts the following arguments (each will become a property).
25

36
| Argument | Type | Description |

docs/OBD Commands.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
An `OBDCommand` in python-OBD is an object used to query information from the vehicle. They contain all of the information neccessary to perform the query, and decode the cars response. Python-OBD has built in tables for the most common commands. They can be looked up by name, or by mode/PID (for a full list, see [Command Tables](https://github.com/brendanwhitfield/python-OBD/wiki/Command-Tables)).
1+
# OBD Commands
2+
3+
---
4+
5+
An `OBDCommand` is an object used to query information from the vehicle. They contain all of the information neccessary to perform the query, and decode the cars response. Python-OBD has built in tables for the most common commands. They can be looked up by name, or by mode/PID (for a full list, see [Command Tables](https://github.com/brendanwhitfield/python-OBD/wiki/Command-Tables)).
26

37
```python
48
import obd
@@ -14,15 +18,17 @@ c = obd.commands['RPM']
1418
c = obd.commands[1][12] # mode 1, PID 12 (RPM)
1519
```
1620

17-
## Methods
21+
# Methods
22+
23+
---
1824

19-
##### Commands.has_command(command):
25+
## has_command(command)
2026

2127
Checks the internal command tables for the existance of the given `OBDCommand` object. Commands are compared by mode and PID value.
2228

23-
- - -
29+
---
2430

25-
##### Commands.has_name(name):
31+
## has_name(name)
2632

2733
Checks the internal command tables for a command with the given name. This is also the function of the `in` operator.
2834

@@ -36,9 +42,9 @@ obd.commands.has_name('RPM') # True
3642
'RPM' in obd.commands # True
3743
```
3844

39-
- - -
45+
---
4046

41-
##### Commands.has_pid(mode, pid):
47+
## has_pid(mode, pid)
4248

4349
Checks the internal command tables for a command with the given mode and PID.
4450

docs/index.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Welcome to MkDocs
2+
3+
For full documentation visit [mkdocs.org](http://mkdocs.org).
4+
5+
## Commands
6+
7+
* `mkdocs new [dir-name]` - Create a new project.
8+
* `mkdocs serve` - Start the live-reloading docs server.
9+
* `mkdocs build` - Build the documentation site.
10+
* `mkdocs help` - Print this help message.
11+
12+
## Project layout
13+
14+
mkdocs.yml # The configuration file.
15+
docs/
16+
index.md # The documentation homepage.
17+
... # Other markdown pages, images and other files.

mkdocs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
site_name: python-OBD
2+
repo_url: https://github.com/brendanwhitfield/python-OBD
3+
repo_name: GitHub
4+
pages:
5+
- Home: 'index.md'
6+
- Commands:
7+
- 'OBD Commands': 'OBD Commands.md'
8+
- 'Custom Commands': 'Custom Commands.md'

0 commit comments

Comments
 (0)