From ff2a730bdad1d70144e12ca026b96e320cfc798e Mon Sep 17 00:00:00 2001 From: RobertoRoos Date: Thu, 28 Nov 2024 11:05:33 +0100 Subject: [PATCH] WIP - Started with auto vs manual test --- tests/roots/test-plc-auto-vs-manual/conf.py | 16 ++++++++++++++++ tests/roots/test-plc-auto-vs-manual/index.rst | 14 ++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 tests/roots/test-plc-auto-vs-manual/conf.py create mode 100644 tests/roots/test-plc-auto-vs-manual/index.rst diff --git a/tests/roots/test-plc-auto-vs-manual/conf.py b/tests/roots/test-plc-auto-vs-manual/conf.py new file mode 100644 index 0000000..c02a049 --- /dev/null +++ b/tests/roots/test-plc-auto-vs-manual/conf.py @@ -0,0 +1,16 @@ +import os +import sys + +sys.path.insert(0, os.path.abspath(".")) + +extensions = ["plcdoc"] + +# The suffix of source filenames. +source_suffix = ".rst" + +nitpicky = True + +plc_sources = [ + os.path.join(os.path.abspath("."), item) + for item in ["src_plc/*.TcPOU", "src_plc/*.TcDUT"] +] diff --git a/tests/roots/test-plc-auto-vs-manual/index.rst b/tests/roots/test-plc-auto-vs-manual/index.rst new file mode 100644 index 0000000..eb6d2cb --- /dev/null +++ b/tests/roots/test-plc-auto-vs-manual/index.rst @@ -0,0 +1,14 @@ + +.. Functions ----------------------------- + +.. plc:autofunction:: RegularFunction + +.. plc:autofunction:: PlainFunction + + +.. Function Blocks ----------------------------- + +.. plc:autofunctionblock:: PlainFunctionBlock + +.. plc:autofunctionblock:: FB_MyBlock + :members: