-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from AleksandarPetrov/master19
Docs updates
- Loading branch information
Showing
43 changed files
with
596 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
docs/build | ||
*pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Minimal makefile for Sphinx documentation | ||
# | ||
|
||
# You can set these variables from the command line, and also | ||
# from the environment for the first two. | ||
SPHINXOPTS ?= | ||
SPHINXBUILD ?= sphinx-build | ||
SOURCEDIR = source | ||
BUILDDIR = build | ||
|
||
# Put it first so that "make" without argument is like "make help". | ||
help: | ||
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
||
.PHONY: help Makefile | ||
|
||
# Catch-all target: route all unknown targets to Sphinx using the new | ||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
%: Makefile | ||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) -T $(O) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@ECHO OFF | ||
|
||
pushd %~dp0 | ||
|
||
REM Command file for Sphinx documentation | ||
|
||
if "%SPHINXBUILD%" == "" ( | ||
set SPHINXBUILD=sphinx-build | ||
) | ||
set SOURCEDIR=source | ||
set BUILDDIR=build | ||
|
||
if "%1" == "" goto help | ||
|
||
%SPHINXBUILD% >NUL 2>NUL | ||
if errorlevel 9009 ( | ||
echo. | ||
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx | ||
echo.installed, then set the SPHINXBUILD environment variable to point | ||
echo.to the full path of the 'sphinx-build' executable. Alternatively you | ||
echo.may add the Sphinx directory to PATH. | ||
echo. | ||
echo.If you don't have Sphinx installed, grab it from | ||
echo.http://sphinx-doc.org/ | ||
exit /b 1 | ||
) | ||
|
||
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
goto end | ||
|
||
:help | ||
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O% | ||
|
||
:end | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# This file only contains a selection of the most common options. For a full | ||
# list see the documentation: | ||
# http://www.sphinx-doc.org/en/master/config | ||
|
||
# -- Path setup -------------------------------------------------------------- | ||
|
||
# If extensions (or modules to document with autodoc) are in another directory, | ||
# add these directories to sys.path here. If the directory is relative to the | ||
# documentation root, use os.path.abspath to make it absolute, like shown here. | ||
# | ||
import os | ||
import sys | ||
sys.path.insert(0, os.path.abspath('.')) | ||
sys.path.insert(0, os.path.abspath('..')) | ||
sys.path.insert(0, os.path.abspath('../../packages/')) | ||
print(sys.path) | ||
|
||
|
||
# -- Project information ----------------------------------------------------- | ||
|
||
project = 'duckiebot-interface' | ||
copyright = '2019, Duck Quackermann' | ||
author = 'Duck Quackermann' | ||
|
||
# The full version, including alpha/beta/rc tags | ||
release = '0.0.1' | ||
|
||
|
||
# -- General configuration --------------------------------------------------- | ||
|
||
|
||
# Napoleon (for Google-style docstrings) | ||
extensions = ['sphinxcontrib.napoleon'] | ||
|
||
# Autodocs | ||
extensions += ['sphinx.ext.autodoc'] | ||
|
||
|
||
# Add intersphynx to connect with the base ROS | ||
# extensions += ['sphinx.ext.intersphinx'] | ||
# intersphinx_mapping = {'ros': | ||
# ('http://otamachan.github.io/sphinxros/indigo/', None)} | ||
|
||
# Autodocs Configuration | ||
with open('mock_imports') as f: | ||
autodoc_mock_imports = f.readlines() | ||
for idx in range(len(autodoc_mock_imports)): | ||
autodoc_mock_imports[idx] = autodoc_mock_imports[idx].strip(' ').strip('\n') | ||
print(autodoc_mock_imports) | ||
|
||
autodoc_default_flags = {'members': True, | ||
'member-order': 'bysource', | ||
'undoc-members': True} | ||
|
||
# Napoleon settings | ||
napoleon_google_docstring = True | ||
napoleon_numpy_docstring = False | ||
napoleon_include_init_with_doc = False | ||
napoleon_include_private_with_doc = False | ||
napoleon_include_special_with_doc = False | ||
napoleon_use_admonition_for_examples = True | ||
napoleon_use_admonition_for_notes = True | ||
napoleon_use_admonition_for_references = True | ||
napoleon_use_ivar = False | ||
napoleon_use_param = False | ||
napoleon_use_rtype = True | ||
napoleon_use_keyword = True | ||
napoleon_custom_sections = [('Subscribers', 'Parameters'), | ||
('Subscriber', 'Parameters'), | ||
('Publishers', 'Parameters'), | ||
('Publisher', 'Parameters'), | ||
('Services', 'Parameters'), | ||
('Service', 'Parameters') | ||
] | ||
|
||
|
||
# Add any paths that contain templates here, relative to this directory. | ||
templates_path = ['_templates'] | ||
|
||
# List of patterns, relative to source directory, that match files and | ||
# directories to ignore when looking for source files. | ||
# This pattern also affects html_static_path and html_extra_path. | ||
exclude_patterns = [] | ||
|
||
# Set the index page | ||
master_doc = 'index' | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
|
||
# The theme to use for HTML and HTML Help pages. See the documentation for | ||
# a list of builtin themes. | ||
# | ||
html_theme = 'sphinx_rtd_theme' | ||
|
||
html_theme_options = { | ||
# 'canonical_url': '', | ||
# 'analytics_id': 'UA-XXXXXXX-1', # Provided by Google in your dashboard | ||
# 'logo_only': False, | ||
# 'display_version': True, | ||
'prev_next_buttons_location': 'bottom', | ||
# 'style_external_links': False, | ||
# 'vcs_pageview_mode': '', | ||
'style_nav_header_background': '#fbc10b', | ||
# Toc options | ||
'collapse_navigation': False, | ||
'sticky_navigation': True, | ||
'navigation_depth': 4, | ||
'includehidden': False, | ||
'titles_only': False, | ||
# 'github_url': True | ||
} | ||
|
||
html_logo = "logo_textonly.png" | ||
html_favicon = "favicon.png" | ||
# html_style = 'dt_style.css' | ||
|
||
|
||
|
||
# Add any paths that contain custom static files (such as style sheets) here, | ||
# relative to this directory. They are copied after the builtin static files, | ||
# so a file named "default.css" will overwrite the builtin "default.css". | ||
html_static_path = ['_static'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import 'theme.css' | ||
|
||
p.caption, h1, h2 { | ||
color: #f14720; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.. duckiebot-interface documentation master file, created by | ||
sphinx-quickstart on Fri Jul 19 20:26:50 2019. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Welcome to duckiebot-interface's documentation! | ||
=============================================== | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:caption: Contents: | ||
|
||
packages | ||
|
||
|
||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
cv2 | ||
numpy | ||
rospy | ||
Adafruit_PWM_Servo_Driver | ||
camera_driver | ||
sensor_msgs | ||
cv_bridge | ||
picamera | ||
thread | ||
yaml | ||
duckietown_msgs | ||
wheels_driver | ||
Adafruit_MotorHAT | ||
yaml | ||
std_msgs | ||
led_emitter.srv | ||
Adafruit_GPIO | ||
Adafruit_I2C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Packages | ||
======== | ||
|
||
.. toctree:: | ||
:glob: | ||
:maxdepth: 4 | ||
|
||
packages/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
adafruit\_drivers package | ||
========================= | ||
|
||
.. automodule:: adafruit_drivers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
camera\_driver package | ||
====================== | ||
|
||
.. automodule:: camera_driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
led\_emitter package | ||
==================== | ||
|
||
.. automodule:: led_emitter | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
rgb\_led package | ||
================ | ||
|
||
.. automodule:: rgb_led |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
wheels\_driver package | ||
====================== | ||
|
||
.. automodule:: wheels_driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
The `adafruit_driver` package blablabla | ||
.. contents:: | ||
Quick start | ||
----------- | ||
TODO: WRITE STUFF | ||
Included libraries | ||
------------------ | ||
.. automodule:: adafruit_drivers.include | ||
""" | ||
|
||
from .include import * |
11 changes: 10 additions & 1 deletion
11
packages/adafruit_drivers/include/Adafruit_GPIO/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
""" | ||
Adafruit_GPIO | ||
------------- | ||
.. automodule:: adafruit_drivers.include.Adafruit_GPIO.GPIO | ||
:show-inheritance: | ||
""" | ||
|
||
from __future__ import absolute_import | ||
|
||
from Adafruit_GPIO.GPIO import * | ||
from .GPIO import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
""" | ||
Adafruit_I2C | ||
------------ | ||
.. automodule:: adafruit_drivers.include.Adafruit_I2C | ||
""" | ||
|
||
from .Adafruit_I2C import Adafruit_I2C |
8 changes: 8 additions & 0 deletions
8
packages/adafruit_drivers/include/Adafruit_MotorHAT/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
""" | ||
Adafruit_MotorHAT | ||
----------------- | ||
.. automodule:: adafruit_drivers.include.Adafruit_MotorHAT | ||
""" | ||
|
||
from .Adafruit_MotorHAT import Adafruit_StepperMotor, Adafruit_DCMotor, Adafruit_MotorHAT | ||
|
Oops, something went wrong.