move things around
Some checks failed
Build / build (ubuntu-22.04) (push) Failing after 2m20s
Documentation / build (push) Failing after -1m2s

This commit is contained in:
2025-05-31 00:01:48 -06:00
parent 321fadf77e
commit 3134dc52e4
69 changed files with 0 additions and 201 deletions

2735
firmware/doc/Doxyfile Normal file

File diff suppressed because it is too large Load Diff

20
firmware/doc/Makefile Normal file
View File

@ -0,0 +1,20 @@
# 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_sphinx
# 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)

View File

@ -0,0 +1,17 @@
/**
* @defgroup drivers Custom driver classes
* @{
*
* @brief Custom driver classes
*
* @}
*/
/**
* @defgroup lib Custom libraries
* @{
*
* @brief Custom libraries
*
* @}
*/

View File

@ -0,0 +1,5 @@
# Introduction
This is the Doxygen documentation for [example-application].
[example-application]: https://github.com/zephyrproject-rtos/example-application

40
firmware/doc/conf.py Normal file
View File

@ -0,0 +1,40 @@
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'Example Application'
copyright = '2024, The Zephyr Community'
author = 'The Zephyr Community'
release = '1.0.0'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = ['sphinx.ext.intersphinx', 'breathe']
templates_path = ['_templates']
exclude_patterns = ['_build_sphinx', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'alabaster'
# -- Options for Intersphinx -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/extensions/intersphinx.html
intersphinx_mapping = {'zephyr': ('https://docs.zephyrproject.org/latest/', None)}
## -- Options for Breathe ----------------------------------------------------
# https://breathe.readthedocs.io/en/latest/index.html
#
# WARNING: please, check breathe maintainership status before using this
# extension in production!
breathe_projects = {'example-application': '_build_doxygen/xml'}
breathe_default_project = 'example-application'
breathe_default_members = ('members', )

View File

@ -0,0 +1,14 @@
Blink
=====
.. doxygengroup:: drivers_blink
Driver operations
-----------------
.. doxygengroup:: drivers_blink_ops
Public API
----------
.. doxygengroup:: drivers_blink_api

View File

@ -0,0 +1,9 @@
Drivers
=======
.. doxygengroup:: drivers
.. toctree::
:maxdepth: 1
blink

18
firmware/doc/index.rst Normal file
View File

@ -0,0 +1,18 @@
Welcome to Example Application's documentation!
===============================================
This is a simple Sphinx documentation setup for ``example-application``.
.. toctree::
:maxdepth: 2
:caption: Contents
drivers/index
lib/index
zephyr
Indices and tables
==================
* :ref:`genindex`
* :ref:`search`

View File

@ -0,0 +1,11 @@
Custom
======
.. doxygengroup:: lib_custom
:desc-only:
Public API
----------
.. doxygengroup:: lib_custom
:content-only:

View File

@ -0,0 +1,9 @@
Libraries
=========
.. doxygengroup:: lib
.. toctree::
:maxdepth: 1
custom

35
firmware/doc/make.bat Normal file
View File

@ -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_sphinx
%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
)
if "%1" == "" goto help
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end
:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
:end
popd

View File

@ -0,0 +1,2 @@
Sphinx
breathe

5
firmware/doc/zephyr.rst Normal file
View File

@ -0,0 +1,5 @@
Zephyr
======
You can reference Zephyr documentation items, like
:external+zephyr:ref:`getting_started` or :external+zephyr:c:func:`k_sleep`.