Skip to content
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
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/github-pages-deploy-action@4.1.5
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