Initial commit
This commit is contained in:
2735
doc/Doxyfile
Normal file
2735
doc/Doxyfile
Normal file
File diff suppressed because it is too large
Load Diff
20
doc/Makefile
Normal file
20
doc/Makefile
Normal 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)
|
17
doc/_doxygen/groups.dox
Normal file
17
doc/_doxygen/groups.dox
Normal file
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @defgroup drivers Custom driver classes
|
||||
* @{
|
||||
*
|
||||
* @brief Custom driver classes
|
||||
*
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup lib Custom libraries
|
||||
* @{
|
||||
*
|
||||
* @brief Custom libraries
|
||||
*
|
||||
* @}
|
||||
*/
|
5
doc/_doxygen/main.md
Normal file
5
doc/_doxygen/main.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Introduction
|
||||
|
||||
This is the Doxygen documentation for [example-application].
|
||||
|
||||
[example-application]: https://github.com/zephyrproject-rtos/example-application
|
40
doc/conf.py
Normal file
40
doc/conf.py
Normal 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', )
|
14
doc/drivers/blink.rst
Normal file
14
doc/drivers/blink.rst
Normal file
@ -0,0 +1,14 @@
|
||||
Blink
|
||||
=====
|
||||
|
||||
.. doxygengroup:: drivers_blink
|
||||
|
||||
Driver operations
|
||||
-----------------
|
||||
|
||||
.. doxygengroup:: drivers_blink_ops
|
||||
|
||||
Public API
|
||||
----------
|
||||
|
||||
.. doxygengroup:: drivers_blink_api
|
9
doc/drivers/index.rst
Normal file
9
doc/drivers/index.rst
Normal file
@ -0,0 +1,9 @@
|
||||
Drivers
|
||||
=======
|
||||
|
||||
.. doxygengroup:: drivers
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
blink
|
18
doc/index.rst
Normal file
18
doc/index.rst
Normal 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`
|
11
doc/lib/custom.rst
Normal file
11
doc/lib/custom.rst
Normal file
@ -0,0 +1,11 @@
|
||||
Custom
|
||||
======
|
||||
|
||||
.. doxygengroup:: lib_custom
|
||||
:desc-only:
|
||||
|
||||
Public API
|
||||
----------
|
||||
|
||||
.. doxygengroup:: lib_custom
|
||||
:content-only:
|
9
doc/lib/index.rst
Normal file
9
doc/lib/index.rst
Normal file
@ -0,0 +1,9 @@
|
||||
Libraries
|
||||
=========
|
||||
|
||||
.. doxygengroup:: lib
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
custom
|
35
doc/make.bat
Normal file
35
doc/make.bat
Normal 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
|
2
doc/requirements.txt
Normal file
2
doc/requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Sphinx
|
||||
breathe
|
5
doc/zephyr.rst
Normal file
5
doc/zephyr.rst
Normal 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`.
|
Reference in New Issue
Block a user