Skip to content

Commit

Permalink
Feat submodule (#107)
Browse files Browse the repository at this point in the history
* chore(submodules): update submodules with new repos and paths, adjust workflow for api build

* chore(submodules): remove outdated submodules and adjust workflow for api build

* (chore(submodules): remove outdated submodules and adjust workflow for api build)

* chore(submodules): add new submodule echo and update workflow for api build

* chore(submodules): add new submodules TRPGNivis, HydroRollCore, GetPlayerCard, conventional_role_play, DiceParser and update workflow for api build

* chore(submodules): add new submodules DiceParser, infini and update workflow for api build

* chore(submodules): move submodules, update api docs build and remove old ones

* chore(submodules): move submodules, update api docs build and remove old ones

* chore(submodules): update submodules with new repos and paths, adjust workflow for api build

* chore(submodules): move submodules, update api docs build and remove old ones

* chore(submodules): update submodules with new repos and paths, adjust workflow for api build

* chore(docs): update api docs with sphinx-apidoc

* chore(submodules): update api docs build workflow with combined commands

* chore(docs): update api docs with sphinx-apidoc

* chore(submodules): move submodules, update api docs build and remove old ones again

* chore(submodules): update submodules with new repos and paths, adjust workflow for api build

* chore(docs): update api docs with sphinx-apidoc

* chore(submodules): remove submodules and update api docs build workflow

* chore(submodules): move submodules, update api docs build and remove old ones again

* chore(submodules): move submodules again, adjust api docs build workflow

* chore(docs): update api docs with sphinx-apidoc

---------

Co-authored-by: HsiangNianian <[email protected]>
  • Loading branch information
HsiangNianian and HsiangNianian authored Sep 8, 2024
1 parent 9cd70c8 commit 0131dda
Show file tree
Hide file tree
Showing 113 changed files with 1,087 additions and 42 deletions.
2 changes: 0 additions & 2 deletions .git-blame-ignore-revs

This file was deleted.

1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

24 changes: 20 additions & 4 deletions .github/workflows/build-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,29 @@ jobs:
- name: Remove API Doc
run: rm -rf docs/source/api

- name: Build API Doc
- name: Clone Submodule
run: |
pdm run sphinx-apidoc -o docs/source/api hydro_roll -f -e --tocfile index
shell: bash
git submodule update --init --recursive
- name: Moving Submodule
run: |
mkdir -p modules
mv DiceParser/src/oneroll modules/OneRoll
mv GetPlayerCard/get_pc modules/GetPlayerCard
mv HydroRollCore/hrc modules/HydroRollCore
mv TRPGNivis/nivis_python modules/TRPGNivisSDK
- name: Build API Doc For HydroRoll
run: |
cp -r hydro_roll modules/HydroRoll
pdm run sphinx-apidoc -o docs/source/api modules -f -e --tocfile index
- name: Remove Temp Folder
run: |
rm -rf modules
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
branch: ${{ github.event.branch }}
commit_message: "chore(docs): update api docs with sphinx-apidoc"
25 changes: 19 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
[submodule "hydro_roll_core"]
path = hydro_roll_core
url = https://github.com/HydroRoll-Team/HydroRollCore
branch = main
[submodule "echo"]
path = echo
url = https://github.com/HydroRoll-Team/echo
[submodule "TRPGNivis"]
path = TRPGNivisSDK
path = TRPGNivis
url = https://github.com/HydroRoll-Team/TRPGNivis
branch = main
[submodule "HydroRollCore"]
path = HydroRollCore
url = https://github.com/HydroRoll-Team/HydroRollCore
[submodule "GetPlayerCard"]
path = GetPlayerCard
url = https://github.com/HydroRoll-Team/GetPlayerCard
[submodule "conventional_role_play"]
path = conventional_role_play
url = https://github.com/HydroRoll-Team/conventional_role_play
[submodule "DiceParser"]
path = DiceParser
url = https://github.com/HydroRoll-Team/DiceParser
[submodule "infini"]
path = infini
url = https://github.com/HydroRoll-Team/infini
1 change: 1 addition & 0 deletions DiceParser
Submodule DiceParser added at 9fe3f0
1 change: 1 addition & 0 deletions GetPlayerCard
Submodule GetPlayerCard added at 7d50ad
1 change: 1 addition & 0 deletions HydroRollCore
Submodule HydroRollCore added at 9e18d7
1 change: 1 addition & 0 deletions TRPGNivis
Submodule TRPGNivis added at 97245a
1 change: 1 addition & 0 deletions conventional_role_play
Submodule conventional_role_play added at e5681a
18 changes: 18 additions & 0 deletions docs/source/api/GetPlayerCard.get_pc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
GetPlayerCard.get\_pc package
=============================

Submodules
----------

.. toctree::
:maxdepth: 4

GetPlayerCard.get_pc.version

Module contents
---------------

.. automodule:: GetPlayerCard.get_pc
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/GetPlayerCard.get_pc.version.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
GetPlayerCard.get\_pc.version module
====================================

.. automodule:: GetPlayerCard.get_pc.version
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
hydro\_roll package
===================
GetPlayerCard package
=====================

Subpackages
-----------

.. toctree::
:maxdepth: 4

hydro_roll.models
GetPlayerCard.get_pc

Submodules
----------

.. toctree::
:maxdepth: 4

hydro_roll.cli
hydro_roll.config
hydro_roll.exceptions
hydro_roll.typing
hydro_roll.utils
GetPlayerCard.version

Module contents
---------------

.. automodule:: hydro_roll
.. automodule:: GetPlayerCard
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/GetPlayerCard.version.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
GetPlayerCard.version module
============================

.. automodule:: GetPlayerCard.version
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.cli module
====================

.. automodule:: HydroRoll.cli
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.config module
=======================

.. automodule:: HydroRoll.config
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.exceptions module
===========================

.. automodule:: HydroRoll.exceptions
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.hydro_roll.cli.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.hydro\_roll.cli module
================================

.. automodule:: HydroRoll.hydro_roll.cli
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.hydro_roll.config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.hydro\_roll.config module
===================================

.. automodule:: HydroRoll.hydro_roll.config
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.hydro_roll.exceptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.hydro\_roll.exceptions module
=======================================

.. automodule:: HydroRoll.hydro_roll.exceptions
:members:
:undoc-members:
:show-inheritance:
18 changes: 18 additions & 0 deletions docs/source/api/HydroRoll.hydro_roll.models.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
HydroRoll.hydro\_roll.models package
====================================

Submodules
----------

.. toctree::
:maxdepth: 4

HydroRoll.hydro_roll.models.utils

Module contents
---------------

.. automodule:: HydroRoll.hydro_roll.models
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.hydro_roll.models.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.hydro\_roll.models.utils module
=========================================

.. automodule:: HydroRoll.hydro_roll.models.utils
:members:
:undoc-members:
:show-inheritance:
30 changes: 30 additions & 0 deletions docs/source/api/HydroRoll.hydro_roll.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HydroRoll.hydro\_roll package
=============================

Subpackages
-----------

.. toctree::
:maxdepth: 4

HydroRoll.hydro_roll.models

Submodules
----------

.. toctree::
:maxdepth: 4

HydroRoll.hydro_roll.cli
HydroRoll.hydro_roll.config
HydroRoll.hydro_roll.exceptions
HydroRoll.hydro_roll.typing
HydroRoll.hydro_roll.utils

Module contents
---------------

.. automodule:: HydroRoll.hydro_roll
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.hydro_roll.typing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.hydro\_roll.typing module
===================================

.. automodule:: HydroRoll.hydro_roll.typing
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.hydro_roll.utils.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.hydro\_roll.utils module
==================================

.. automodule:: HydroRoll.hydro_roll.utils
:members:
:undoc-members:
:show-inheritance:
18 changes: 18 additions & 0 deletions docs/source/api/HydroRoll.models.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
HydroRoll.models package
========================

Submodules
----------

.. toctree::
:maxdepth: 4

HydroRoll.models.utils

Module contents
---------------

.. automodule:: HydroRoll.models
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hydro\_roll.exceptions module
HydroRoll.models.utils module
=============================

.. automodule:: hydro_roll.exceptions
.. automodule:: HydroRoll.models.utils
:members:
:undoc-members:
:show-inheritance:
31 changes: 31 additions & 0 deletions docs/source/api/HydroRoll.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
HydroRoll package
=================

Subpackages
-----------

.. toctree::
:maxdepth: 4

HydroRoll.hydro_roll
HydroRoll.models

Submodules
----------

.. toctree::
:maxdepth: 4

HydroRoll.cli
HydroRoll.config
HydroRoll.exceptions
HydroRoll.typing
HydroRoll.utils

Module contents
---------------

.. automodule:: HydroRoll
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRoll.typing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRoll.typing module
=======================

.. automodule:: HydroRoll.typing
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hydro\_roll.cli module
HydroRoll.utils module
======================

.. automodule:: hydro_roll.cli
.. automodule:: HydroRoll.utils
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hydro\_roll.utils module
HydroRollCore.cli module
========================

.. automodule:: hydro_roll.utils
.. automodule:: HydroRollCore.cli
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRollCore.config.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRollCore.config module
===========================

.. automodule:: HydroRollCore.config
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRollCore.const.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRollCore.const module
==========================

.. automodule:: HydroRollCore.const
:members:
:undoc-members:
:show-inheritance:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
hydro\_roll.typing module
HydroRollCore.core module
=========================

.. automodule:: hydro_roll.typing
.. automodule:: HydroRollCore.core
:members:
:undoc-members:
:show-inheritance:
7 changes: 7 additions & 0 deletions docs/source/api/HydroRollCore.dependencies.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
HydroRollCore.dependencies module
=================================

.. automodule:: HydroRollCore.dependencies
:members:
:undoc-members:
:show-inheritance:
Loading

0 comments on commit 0131dda

Please sign in to comment.