Skip to content

Commit

Permalink
add pydoc
Browse files Browse the repository at this point in the history
  • Loading branch information
SJulianS committed Jun 4, 2024
1 parent 4cb3085 commit 9db66cf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/xilinx_toolbox/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
option(PL_XILINX_TOOLBOX "PL_XILINX_TOOLBOX" OFF)

if(PL_XILINX_TOOLBOX OR BUILD_ALL_PLUGINS)

file(GLOB_RECURSE XILINX_TOOLBOX_INC ${CMAKE_CURRENT_SOURCE_DIR}/include/*.h)
file(GLOB_RECURSE XILINX_TOOLBOX_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp)
file(GLOB_RECURSE XILINX_TOOLBOX_PYTHON_SRC ${CMAKE_CURRENT_SOURCE_DIR}/python/*.cpp)
Expand All @@ -8,5 +10,6 @@ if(PL_XILINX_TOOLBOX OR BUILD_ALL_PLUGINS)
SHARED
HEADER ${XILINX_TOOLBOX_INC}
SOURCES ${XILINX_TOOLBOX_SRC} ${XILINX_TOOLBOX_PYTHON_SRC}
)
PYDOC SPHINX_DOC_INDEX_FILE ${CMAKE_CURRENT_SOURCE_DIR}/documentation/xilinx_toolbox.rst
)
endif()
8 changes: 8 additions & 0 deletions plugins/xilinx_toolbox/documentation/xilinx_toolbox.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Xilinx Toolbox
==========================

.. automodule:: xilinx_toolbox
:members: split_luts, split_shift_registers, parse_xdc_file

.. autoclass:: xilinx_toolbox.XilinxToolboxPlugin
:members:

0 comments on commit 9db66cf

Please sign in to comment.