Skip to content

Commit

Permalink
Change docs theme
Browse files Browse the repository at this point in the history
  • Loading branch information
jotonedev committed Oct 21, 2024
1 parent 389269a commit 334d4eb
Show file tree
Hide file tree
Showing 6 changed files with 421 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Docs
on:
release:
types: [ published ]
push:
branches:
- docs
- main
workflow_dispatch:

jobs:
Expand All @@ -23,6 +27,12 @@ jobs:
poetry-version: "1.8.4"
install-args: --with docs

- name: Set git credentials
id: setup
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Build the docs
id: build
run: poetry run mkdocs build
Expand Down
12 changes: 12 additions & 0 deletions docs/api/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# API Reference

The following section describes all the classes and functions available in the library.

## Client

The `Client` class is the main class to interact with the OpenWebNet gateway.

::: pyown.client.Client
rendering:
show_source: false
show_root_heading: true
11 changes: 11 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ It is used to communicate to a gateway that is connected to the SCS bus where al

The already existent libraries for python are either not maintained or not complete, so I decided to create a new one that is easy to use and completely type annotated.

## Features

- Fully type annotated
- Asynchronous
- Easy to use

## Manuals

- API Reference: [API Reference](api/index.md)
- Official OpenWebNet protocol documentation: [OpenWebNet protocol](https://developer.legrand.com/Documentation/)

## Disclaimer

- This library is not associated by any means with BTicino or Legrand companies
Expand Down
24 changes: 23 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,31 @@ site_name: PyOWN Documentation
site_url: https://jotonedev.github.io/pyown/
repo_url: https://github.com/jotonedev/pyown

theme: readthedocs
theme:
name: material
palette:
- media: "(prefers-color-scheme)"
scheme: default
primary: indigo
accent: indigo
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: indigo
accent: indigo


plugins:
- mkdocstrings:
default_handler: python
handlers:
python:
options:
members_order: source
separate_signature: true
filters: ["!^_"]
docstring_options:
ignore_init_summary: true
merge_init_into_class: true
show_signature_annotations: true
signature_crossrefs: true

Loading

0 comments on commit 334d4eb

Please sign in to comment.