Skip to content
Open
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
17 changes: 17 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build docs

on:
push:
pull_request:
paths:
- docs/**

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
makers-devops:
uses: Infineon/makers-devops/.github/workflows/docs_build.yml@main
with:
doxy-required: true
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Smart High-Side Switch

[![Build docs](https://github.com/Infineon/high-side-switch/actions/workflows/build_docs.yml/badge.svg)](https://github.com/Infineon/high-side-switch/actions/workflows/build_docs.yml)

C++ library for Infineon's Arduino shields for **PROFET™ Smart High-Side Power Switches** Automotive grade

## Supported Products
Expand Down Expand Up @@ -50,4 +52,4 @@ The complete documentation of the library as well as detailed information about

## License

This project is licensed under the MIT License - click [here](https://github.com/Infineon/high-side-switch/blob/master/LICENSE) for details.
This project is licensed under the MIT License - click [here](https://github.com/Infineon/high-side-switch/blob/master/LICENSE) for details.
21 changes: 21 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
45 changes: 7 additions & 38 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,8 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
#...

# At top on conf.py (with other import statements)
# import recommonmark
# from recommonmark.transform import AutoStructify

# # At the bottom of conf.py
# def setup(app):
# app.add_config_value('recommonmark_config', {
# 'url_resolver': lambda url: github_doc_root + url,
# 'auto_toc_tree_section': 'Contents',
# }, True)
# app.add_transform(AutoStructify)

extensions = [
'sphinx_rtd_theme',
'sphinx.ext.autodoc',
'sphinxemoji.sphinxemoji',
'sphinx_tabs.tabs',
Expand All @@ -60,17 +47,12 @@
'sphinx.ext.inheritance_diagram',
'breathe',
'exhale'

]

autosectionlabel_prefix_document = True
# source_parsers = {
# '.md': 'recommonmark.parser.CommonMarkParser',
# }

source_suffix = [
'.rst',
# '.md'
]

suppress_warnings = ['autosectionlabel.*', 'epub.duplicated_toc_entry']
Expand All @@ -84,32 +66,24 @@
"doxygenStripFromPath": "..",
# Suggested optional arguments
"createTreeView": True,
# TIP: if using the sphinx-bootstrap-theme, you need
# "treeViewIsBootstrap": True,
"exhaleExecutesDoxygen": True,
# "exhaleUseDoxyfile" : True,
"exhaleDoxygenStdin": textwrap.dedent('''
INPUT = ../src
INPUT = ../src
GENERATE_LATEX = NO
GENERATE_HTML = YES
GENERATE_HTML = NO
GENERATE_XML = YES
RECURSIVE = YES
VERBATIM_HEADERS = NO
EXCLUDE = ./../src/framework/raspberrypi/examples ./../src/framework/raspberrypi/examples_py ./../src/framework/arduino/examples ./../src/framework/arduino/README.md
VERBATIM_HEADERS = YES
'''),

# Configure what not to show in the API index page
"unabridgedOrphanKinds": {"function", "define", "dir","file", "variable", "namespace"},
"fullToctreeMaxDepth" : 4

}

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# Tell sphinx what the primary language being documented is.
primary_domain = 'cpp'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
Expand All @@ -121,13 +95,8 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.

html_theme = 'sphinx_rtd_theme'
# html_theme_options = {
# "head_font_family" : "Source Sans Pro",
# "font_family" : "Source Sans Pro",
# "body_text_align" : "justify",
# }
#
html_theme = "sphinx_rtd_theme"

html_logo = 'img/ifx_logo_white_green_s.png'

Expand All @@ -142,4 +111,4 @@
"High-Side Switch": "build/xml/"
}
breathe_default_project = "High-Side Switch"
breathe_default_members = ('members', 'undoc-members')
breathe_default_members = ('members', 'undoc-members')
35 changes: 35 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=.
set BUILDDIR=_build

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.https://www.sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
13 changes: 7 additions & 6 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
sphinx>=7.2.6
sphinx-rtd-theme>=0.5.0
sphinx-sitemap>=2.2.0
recommonmark>=0.6.0
sphinxemoji>=0.1.8
sphinx
sphinx-rtd-theme
sphinx-sitemap
recommonmark
sphinxemoji
sphinx-tabs
breathe>=4.13.0
breathe
exhale

Loading