Skip to content

Commit

Permalink
feat: add pdoc support (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
qingzhuozhen authored May 28, 2022
1 parent e17fb0a commit 71832de
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Docs

on: workflow_dispatch

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v3

- name: Set up pdoc
run: pip install pdoc3

- name: Setup Docs
run: pdoc ./src/amplitude_experiment -o ./docs --html

- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/amplitude_experiment
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ instance/

# Sphinx documentation
docs/_build/
docs/amplitude_experiment

# PyBuilder
target/
Expand Down
5 changes: 4 additions & 1 deletion src/amplitude_experiment/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
"""The official Amplitude Experiment Python Server SDK"""
"""
The official Amplitude Experiment Python Server SDK
.. include:: ../../README.md
"""

from .client import Client
from .config import Config
Expand Down

0 comments on commit 71832de

Please sign in to comment.