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
21 changes: 21 additions & 0 deletions .github/workflows/docs-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Documentation build

on:
pull_request:
push:
branches:
- main
paths:
- Doxyfile
- docs/**
- README.md
- src/**
- mkdocs.yml
- .github/workflows/docs-check.yml

permissions:
contents: read

jobs:
build:
uses: stm32duino/actions/.github/workflows/check-library-docs.yml@main
16 changes: 16 additions & 0 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish versioned documentation

on:
push:
branches:
- main
tags:
- "[0-9]*"
workflow_dispatch:

permissions:
contents: write

jobs:
publish:
uses: stm32duino/actions/.github/workflows/publish-library-docs.yml@main
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
api-docs
site
15 changes: 15 additions & 0 deletions Doxyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
PROJECT_NAME = STM32duino RTC
PROJECT_BRIEF = Arduino library for managing the RTC peripheral on STM32 boards.
OUTPUT_DIRECTORY = api-docs
INPUT = README.md src/STM32RTC.h
FILE_PATTERNS = *.h *.md
RECURSIVE = YES
USE_MDFILE_AS_MAINPAGE = README.md
EXTRACT_ALL = YES
GENERATE_HTML = YES
HTML_OUTPUT = html
GENERATE_LATEX = NO
GENERATE_XML = NO
QUIET = YES
WARN_IF_UNDOCUMENTED = NO
WARN_AS_ERROR = NO
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ Some STM32 RTC have a binary mode with 32-bit free-running counter
in addition to their BCD mode for calendar (for example stm32wl55).
Combined with BCD this is the MIX mode. Only using the binary counter is the BIN mode.
Three RTC functional modes are available:
- `STM32RTC::MODE_BCD`
- `STM32RTC::MODE_MIX`
- `STM32RTC::MODE_BIN`

- `STM32RTC::MODE_BCD`
- `STM32RTC::MODE_MIX`
- `STM32RTC::MODE_BIN`

* **`Binary_Mode getBinaryMode(void);`**
* **`void setBinaryMode(Binary_Mode mode);`**
Expand Down Expand Up @@ -204,3 +205,7 @@ Returns True if the current Hour Format is HOUR_24 else false if Hour format is

Source files available at:
https://github.com/stm32duino/STM32RTC

## Documentation

See the [STM32RTC API documentation](https://stm32duino.github.io/STM32RTC/).
13 changes: 13 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
site_name: STM32duino RTC
site_description: STM32duino RTC Arduino library API reference
site_url: https://stm32duino.github.io/STM32RTC/
repo_name: stm32duino/STM32RTC
repo_url: https://github.com/stm32duino/STM32RTC
docs_dir: api-docs/html

theme:
name: material

extra:
version:
provider: mike
Loading