Add readthedocs

dev-linux
Ivan Maslov 3 years ago
parent db6fdba231
commit 25a3e7fa00

@ -0,0 +1,20 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: Sources/GuideSphinx/conf.py
# Optionally build your docs in additional formats such as PDF
formats:
- pdf
# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
# - requirements: docs/requirements.txt

@ -0,0 +1,34 @@
####################################
2. Defs
####################################
**************************************************
pyOpenRPA.Robot.UIDesktop
**************************************************
.. code-block:: python
# EXAMPLE 1
from pyOpenRPA.Robot import UIDesktop
UIDesktop.UIOSelector_Get_UIO(
inSpecificationList=[
{"title":"notepad.exe"},{"title":"OK"}],
inElement=None,
inFlagRaiseException=True)
.. automodule:: pyOpenRPA.Robot.UIDesktop
:members:
:autosummary:
**********
References
**********
`reStructuredText`_
.. target-notes::
.. _`reStructuredText`: http://docutils.sourceforge.net/rst.html

@ -103,6 +103,14 @@ mDefaultPywinautoBackend="win32"
#inFlagRaiseException - Флаг True - выкинуть ошибку в случае обнаружении пустого списка
#old name - PywinautoExtElementsGet
def UIOSelector_Get_UIOList (inSpecificationList,inElement=None,inFlagRaiseException=True):
'''
Get the UIO list by the selector
:param inSpecificationList: UIO Selector
:param inElement: Входной элемент - показатель, что не требуется выполнять коннект к процессу
:param inFlagRaiseException: Флаг True - выкинуть ошибку в случае обнаружении пустого списка
:return:
'''
#Создать копию входного листа, чтобы не менять массив в других верхнеуровневых функциях
inSpecificationList=copy.deepcopy(inSpecificationList)
lResultList=[]

Loading…
Cancel
Save