Files
arduino-home-assistant/docsrc
Dawid Chyrzyński 77a356bb37 HAMqtt improvements (#224)
* added setBufferSize method to the HAMqtt class

* added getState method to the HAMqtt class

* update docs

* update changelog

* changelog

* update mocks

* change data type in the PubSubClientMock

* update docs and changelog

* add more callbacks to the HAMqtt class

* improve handling of the disconnected state

* minor fixes in state handling
2024-02-09 19:27:10 +01:00
..
2024-02-09 19:27:10 +01:00
2022-10-14 19:10:38 +02:00
2022-10-14 19:10:38 +02:00
2022-10-14 19:10:38 +02:00
2022-10-14 19:10:38 +02:00

Documentation

This document describes how to generate documentation of the library from the sources. If you're looking for the documentation please follow this link.

Prerequsites

  1. Doxygen
  2. Python 3.9+
  3. Pipenv

Installation

The first time setup is required before generating the documentation. Follow these steps:

  1. Open terminal in the docsrc directory
  2. Run pipenv install

Apple Silicon M1

On Apple M1 processors you may get this error when trying to build the documentation: Could not parse the contents of index.xml as an xml.

Most likely this issue is caused by an architecture mismatch of the lxml package. To fix this issue open the Pipenv shell by running pipenv shell and follow these steps:

  1. Run pip uninstall lxml
  2. Run arch -arm64 pip install lxml --no-binary lxml

This solution forces lxml to be built from the sources.

Generating the documentation

  1. Open terminal in the docsrc directory
  2. Open the Pipenv shell pipenv shell
  3. Run the build make github

Github pages

In order to build the documentation that's going to be published as Github pages run make github. The generated HTML build will be automatically moved to the docs directory.