Skip to content

Commit e960f7e

Browse files
committed
docs
1 parent 30731ec commit e960f7e

11 files changed

+12
-205
lines changed

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 137 deletions
This file was deleted.

README.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ Usage Example
4848
Please see the ``slider_simpletest.py`` example for initial reference
4949

5050

51-
Contributing
52-
============
53-
54-
Contributions are welcome! Please read our `Code of Conduct
55-
<https://github.com/jposada202020/CircuitPython_slider/blob/main/CODE_OF_CONDUCT.md>`_
56-
before contributing to help this project stay welcoming.
57-
5851
Documentation
5952
=============
6053

README.rst.license

Lines changed: 0 additions & 2 deletions
This file was deleted.

docs/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Slider Library
2+
===============
13

24
.. automodule:: slider
35
:members:

docs/api.rst.license

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/conf.py

Lines changed: 9 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,24 @@
66

77
import os
88
import sys
9+
import datetime
910

1011
sys.path.insert(0, os.path.abspath(".."))
1112

1213
# -- General configuration ------------------------------------------------
1314

14-
# Add any Sphinx extension module names here, as strings. They can be
15-
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
16-
# ones.
1715
extensions = [
1816
"sphinx.ext.autodoc",
1917
"sphinx.ext.intersphinx",
2018
"sphinx.ext.napoleon",
21-
"sphinx.ext.todo",
19+
"sphinx.ext.viewcode",
2220
]
2321

24-
# TODO: Please Read!
25-
# Uncomment the below if you use native CircuitPython modules such as
26-
# digitalio, micropython and busio. List the modules you use. Without it, the
27-
# autodoc module docs will fail to generate with a warning.
22+
intersphinx_mapping = {
23+
"python": ("https://docs.python.org/3", None),
24+
"CircuitPython": ("https://docs.circuitpython.org/en/latest/", None),
25+
}
26+
2827
autodoc_mock_imports = [
2928
"digitalio",
3029
"vectorio",
@@ -37,27 +36,11 @@
3736
"adafruit_displayio_layout",
3837
]
3938

40-
41-
intersphinx_mapping = {
42-
"python": ("https://docs.python.org/3.4", None),
43-
"adafruit_displayio_layout": (
44-
"https://circuitpython.readthedocs.io/projects/displayio-layout/en/latest/",
45-
None,
46-
),
47-
"CircuitPython": ("https://circuitpython.readthedocs.io/en/latest/", None),
48-
}
49-
50-
# Show the docstring from both the class and its __init__() method.
5139
autoclass_content = "both"
52-
5340
# Add any paths that contain templates here, relative to this directory.
5441
templates_path = ["_templates"]
55-
5642
source_suffix = ".rst"
57-
58-
# The master toctree document.
5943
master_doc = "index"
60-
6144
# General information about the project.
6245
project = " CircuitPython slider Library"
6346
copyright = "2021 Jose David M."
@@ -72,13 +55,8 @@
7255
# The full version, including alpha/beta/rc tags.
7356
release = "1.0"
7457

75-
# The language for content autogenerated by Sphinx. Refer to documentation
76-
# for a list of supported languages.
77-
#
78-
# This is also used if you do content translation via gettext catalogs.
79-
# Usually you set "language" from the command line for these cases.
8058
language = "en"
81-
59+
autoclass_content = "both"
8260
# List of patterns, relative to source directory, that match files and
8361
# directories to ignore when looking for source files.
8462
# This patterns also effect to html_static_path and html_extra_path
@@ -90,24 +68,11 @@
9068
"CODE_OF_CONDUCT.md",
9169
]
9270

93-
# The reST default role (used for this markup: `text`) to use for all
94-
# documents.
95-
#
9671
default_role = "any"
97-
98-
# If true, '()' will be appended to :func: etc. cross-reference text.
99-
#
10072
add_function_parentheses = True
101-
102-
# The name of the Pygments (syntax highlighting) style to use.
10373
pygments_style = "sphinx"
104-
105-
# If true, `todo` and `todoList` produce output, else they produce nothing.
10674
todo_include_todos = False
107-
108-
# If this is True, todo emits a warning for each TODO entries. The default is False.
109-
todo_emit_warnings = True
110-
75+
todo_emit_warnings = False
11176
napoleon_numpy_docstring = False
11277

11378
# -- Options for HTML output ----------------------------------------------

docs/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Ensure your device works with this simple test.
55

66
.. literalinclude:: ../examples/slider_simpletest.py
77
:caption: examples/slider_simpletest.py
8-
:linenos:
8+
:lines: 9-

docs/examples.rst.license

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/index.rst.license

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/slider.png.license

Lines changed: 0 additions & 3 deletions
This file was deleted.

slider.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,8 @@ def when_selected(self, touch_point):
307307
"""
308308

309309
if touch_point[0] <= self.x + self._knob_width:
310-
print("maayor", touch_point[0])
311310
touch_x = touch_point[0] - self.x
312311
else:
313-
print("menor", touch_point[0])
314312
touch_x = touch_point[0] - self.x - self._knob_width
315313

316314
touch_y = touch_point[1] - self.y

0 commit comments

Comments
 (0)