Skip to content
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

[chore] Add Generated Docs for GH Pages #6

Merged
merged 1 commit into from
Sep 24, 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
36 changes: 36 additions & 0 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish Docs to Github Pages

on:
release:
types: [published]

jobs:
docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Dependencies
run: |
pip install --upgrade pip
pip install .[dev]

- name: Build Sphinx Documentation
run: |
cd docs
make html

- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
keep_files: false


3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

.ruff_cache

**/_build/

venv/
.venv/

Expand All @@ -22,3 +24,4 @@ env/
\#*\#
.\#*
.projectile

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ repl:
.PHONY: install-deps
install-deps:
pip install .[dev]

.PHONY: docs
docs:
sphinx-apidoc -o docs/ ./cdp/
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1 change: 1 addition & 0 deletions docs/README.md
149 changes: 149 additions & 0 deletions docs/cdp.client.api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
cdp.client.api package
======================

Submodules
----------

cdp.client.api.addresses\_api module
------------------------------------

.. automodule:: cdp.client.api.addresses_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.assets\_api module
---------------------------------

.. automodule:: cdp.client.api.assets_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.balance\_history\_api module
-------------------------------------------

.. automodule:: cdp.client.api.balance_history_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.contract\_events\_api module
-------------------------------------------

.. automodule:: cdp.client.api.contract_events_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.contract\_invocations\_api module
------------------------------------------------

.. automodule:: cdp.client.api.contract_invocations_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.external\_addresses\_api module
----------------------------------------------

.. automodule:: cdp.client.api.external_addresses_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.networks\_api module
-----------------------------------

.. automodule:: cdp.client.api.networks_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.server\_signers\_api module
------------------------------------------

.. automodule:: cdp.client.api.server_signers_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.smart\_contracts\_api module
-------------------------------------------

.. automodule:: cdp.client.api.smart_contracts_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.stake\_api module
--------------------------------

.. automodule:: cdp.client.api.stake_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.trades\_api module
---------------------------------

.. automodule:: cdp.client.api.trades_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.transfers\_api module
------------------------------------

.. automodule:: cdp.client.api.transfers_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.users\_api module
--------------------------------

.. automodule:: cdp.client.api.users_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.validators\_api module
-------------------------------------

.. automodule:: cdp.client.api.validators_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.wallet\_stake\_api module
----------------------------------------

.. automodule:: cdp.client.api.wallet_stake_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.wallets\_api module
----------------------------------

.. automodule:: cdp.client.api.wallets_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.webhooks\_api module
-----------------------------------

.. automodule:: cdp.client.api.webhooks_api
:members:
:undoc-members:
:show-inheritance:

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

.. automodule:: cdp.client.api
:members:
:undoc-members:
:show-inheritance:
Loading
Loading