From 1797c98967880d30c989c516522d2dee65461e0e Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Tue, 5 Dec 2017 21:38:05 -0800 Subject: [PATCH 1/3] Fixed missing pyb module index --- docs/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 14bd2b8a58171..c2f21028c5cd6 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -332,7 +332,7 @@ 'pyboard': ['pyb'], 'wipy': ['wipy'], 'esp8266': ['esp'], - 'openmvcam': ['pyb', 'sensor', 'image', 'time', 'mjpeg', 'gif', 'fir', 'lcd', 'cpufreq'] + 'openmvcam': ['pyb'] } modindex_exclude = [] @@ -340,6 +340,8 @@ for p, l in modules_port_specific.items(): if p != micropy_port: modindex_exclude += l +for module in modules_port_specific[micropy_port]: + modindex_exclude.remove(module) # Exclude extra modules per port modindex_exclude += { From c647ca03d0c9a11d1421f04dcfc3e3bd8de50d98 Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Tue, 5 Dec 2017 21:54:16 -0800 Subject: [PATCH 2/3] Add chinese translation --- docs/conf.py | 4 ++++ docs/templates/versions.html | 26 ++++++++++++++++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index c2f21028c5cd6..20cdbae8fd9aa 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -52,6 +52,10 @@ 'downloads':[ ('PDF', url_pattern % (micropy_version, 'micropython-%s.pdf' % micropy_port)), ], + 'all_languages':[ + ('English', 'http://docs.openmv.io'), + (u'中文', 'http://doc.singtown.cc/openmv_zh') + ] } diff --git a/docs/templates/versions.html b/docs/templates/versions.html index 58372b4dafcb2..a17bf3e1f8105 100644 --- a/docs/templates/versions.html +++ b/docs/templates/versions.html @@ -1,4 +1,3 @@ - +
+
Language
+ {% for slug, url in all_languages %} +
{{ slug }}
+ {% endfor %} +

External links
- micropython.org + openmv.io +
+
+ forums.openmv.io +
+
+ github.com/openmv/openmv +
+
+ micropython.org +
+
+ forum.micropython.org
- GitHub + github.com/micropython/micropython
- From df5ae60263379171b038d273fbeead1e3e861131 Mon Sep 17 00:00:00 2001 From: "Kwabena W. Agyeman" Date: Tue, 5 Dec 2017 23:44:26 -0800 Subject: [PATCH 3/3] Fix get regression name --- docs/library/omv.image.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/library/omv.image.rst b/docs/library/omv.image.rst index 9ae69482a709e..faa382fc8cdb1 100644 --- a/docs/library/omv.image.rst +++ b/docs/library/omv.image.rst @@ -1915,7 +1915,7 @@ Methods ``roi``, ``bin_count``, and etc. are keyword arguments which must be explicitly invoked in the function call by writing ``roi=``, etc. -.. method:: image.get_linear_regression(thresholds, [roi=Auto, x_stride=2, y_stride=1, invert=False, robust=False]) +.. method:: image.get_regression(thresholds, [roi=Auto, x_stride=2, y_stride=1, invert=False, robust=False]) Computes a linear regression on all the thresholded pixels in the image. The linear regression is computed using least-squares normally which is fast but