diff --git a/docs/conf.py b/docs/conf.py index 14bd2b8a58171..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') + ] } @@ -332,7 +336,7 @@ 'pyboard': ['pyb'], 'wipy': ['wipy'], 'esp8266': ['esp'], - 'openmvcam': ['pyb', 'sensor', 'image', 'time', 'mjpeg', 'gif', 'fir', 'lcd', 'cpufreq'] + 'openmvcam': ['pyb'] } modindex_exclude = [] @@ -340,6 +344,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 += { 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 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 @@ - +