-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: Add template pages with plugin examples
- Loading branch information
1 parent
7e8273c
commit 2508120
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ Templates | |
:numbered: | ||
|
||
template-command | ||
template-dnf5-plugin | ||
template-libdnf5-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
DNF5 Plugin Template | ||
==================== | ||
|
||
Below is a template code for a DNF5 plugin. For the complete tutorial on writing | ||
DNF5 plugins, refer to :ref:`dnf5 plugins tutorial`. | ||
|
||
``dnf5-plugins/template_plugin/template_cmd_plugin.cpp`` | ||
|
||
.. literalinclude:: dnf5-plugin/template_cmd_plugin.cpp | ||
:language: c++ | ||
:linenos: | ||
|
||
``dnf5-plugins/template_plugin/CMakeLists.txt`` | ||
|
||
.. literalinclude:: dnf5-plugin/CMakeLists.txt | ||
:language: cmake | ||
:linenos: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
LIBDNF5 Plugin Template | ||
======================= | ||
|
||
Below is a template code for a LIBDNF5 plugin. For the complete tutorial | ||
on writing LIBDNF5 plugins, refer to :ref:`libdnf5 plugins tutorial`. | ||
|
||
``libdnf5-plugins/template/template.cpp`` | ||
|
||
.. literalinclude:: libdnf5-plugin/template.cpp | ||
:language: c++ | ||
:linenos: | ||
|
||
``libdnf5-plugins/template/CMakeLists.txt`` | ||
|
||
.. literalinclude:: libdnf5-plugin/CMakeLists.txt | ||
:language: cmake | ||
:linenos: | ||
|
||
``libdnf5-plugins/template/template.conf`` | ||
|
||
.. literalinclude:: libdnf5-plugin/template.conf | ||
:language: cfg | ||
:linenos: |