Skip to content

Add code and api documentation using pdoc #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ coverage
flake8
flake8-docstrings
pycodestyle
pdoc
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ coverage:



# target: pdoc - Create documentation of the code.
.PHONY: pdoc
pdoc:
@$(call MESSAGE,$@)
pdoc --output-dir docs/pdoc *.py



# target: install-tools - Install needed devtools.
.PHONY: install-tools
install-tools:
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,19 @@ Marvin will join your channel and then you can start playing.



API documentation
--------------------------

The code and API documentation is generated using pdoc and make.

```bash
make pdoc
```

The docs are saved at `docs/pdoc` and can be [viewed online](https://mosbth.github.io/irc2phpbb/pdoc/).



History
--------------------------
The python script, `irc2phpbb.py`, is a implementation of an irc bot. The bot can answer
Expand Down
520 changes: 520 additions & 0 deletions docs/pdoc/bot.html

Large diffs are not rendered by default.

548 changes: 548 additions & 0 deletions docs/pdoc/discord_bot.html

Large diffs are not rendered by default.

223 changes: 223 additions & 0 deletions docs/pdoc/index.html

Large diffs are not rendered by default.

1,239 changes: 1,239 additions & 0 deletions docs/pdoc/irc_bot.html

Large diffs are not rendered by default.

745 changes: 745 additions & 0 deletions docs/pdoc/main.html

Large diffs are not rendered by default.

2,115 changes: 2,115 additions & 0 deletions docs/pdoc/marvin_actions.html

Large diffs are not rendered by default.

508 changes: 508 additions & 0 deletions docs/pdoc/marvin_general_actions.html

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions docs/pdoc/search.js

Large diffs are not rendered by default.

1,966 changes: 1,966 additions & 0 deletions docs/pdoc/test_main.html

Large diffs are not rendered by default.

1,976 changes: 1,976 additions & 0 deletions docs/pdoc/test_marvin_actions.html

Large diffs are not rendered by default.