Skip to content

Commit 21f279e

Browse files
krish2718carlescufi
authored andcommitted
Add documentation
Add doxygen and sphinx based documentation, primarily for the APIs. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent d4008a4 commit 21f279e

File tree

8 files changed

+2802
-0
lines changed

8 files changed

+2802
-0
lines changed

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Sphinx build directories
2+
_build/
3+
build/
4+
html/
5+
latex/
6+
7+
# Doxygen generated files
8+
xml/
9+
10+
# Temporary files
11+
*.log
12+
*.tmp
13+
*.bak

nrf70_bm_lib/docs/Doxyfile

+2,658
Large diffs are not rendered by default.

nrf70_bm_lib/docs/Makefile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line, and also
5+
# from the environment for the first two.
6+
SPHINXOPTS ?=
7+
SPHINXBUILD ?= sphinx-build
8+
SOURCEDIR = source
9+
BUILDDIR = build
10+
11+
# Put it first so that "make" without argument is like "make help".
12+
help:
13+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
14+
15+
.PHONY: help Makefile
16+
17+
# Catch-all target: route all unknown targets to Sphinx using the new
18+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19+
%: Makefile
20+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

nrf70_bm_lib/docs/make.bat

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
@ECHO OFF
2+
3+
pushd %~dp0
4+
5+
REM Command file for Sphinx documentation
6+
7+
if "%SPHINXBUILD%" == "" (
8+
set SPHINXBUILD=sphinx-build
9+
)
10+
set SOURCEDIR=source
11+
set BUILDDIR=build
12+
13+
%SPHINXBUILD% >NUL 2>NUL
14+
if errorlevel 9009 (
15+
echo.
16+
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
17+
echo.installed, then set the SPHINXBUILD environment variable to point
18+
echo.to the full path of the 'sphinx-build' executable. Alternatively you
19+
echo.may add the Sphinx directory to PATH.
20+
echo.
21+
echo.If you don't have Sphinx installed, grab it from
22+
echo.https://www.sphinx-doc.org/
23+
exit /b 1
24+
)
25+
26+
if "%1" == "" goto help
27+
28+
%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
29+
goto end
30+
31+
:help
32+
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
33+
34+
:end
35+
popd

nrf70_bm_lib/docs/source/conf.py

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# For the full list of built-in configuration values, see the documentation:
4+
# https://www.sphinx-doc.org/en/master/usage/configuration.html
5+
6+
# -- Project information -----------------------------------------------------
7+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
8+
9+
project = 'nRF70 bare metal library'
10+
copyright = "2024, Nordic Semiconductor"
11+
author = "Nordic Semiconductor"
12+
release = '1.0.0'
13+
14+
# -- General configuration ---------------------------------------------------
15+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
16+
17+
extensions = [
18+
'breathe',
19+
]
20+
21+
breathe_projects = {
22+
'nrf70_bm_lib': '../xml'
23+
}
24+
breathe_default_project = 'nrf70_bm_lib'
25+
breathe_domain_by_extension = {"h": "c", "c": "c"}
26+
breathe_separate_member_pages = True
27+
28+
templates_path = ['_templates']
29+
exclude_patterns = []
30+
31+
32+
33+
# -- Options for HTML output -------------------------------------------------
34+
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
35+
36+
html_theme = 'alabaster'
37+
html_static_path = ['_static']

nrf70_bm_lib/docs/source/index.rst

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. nRF70 bare metal library documentation master file, created by
2+
sphinx-quickstart on Wed Jul 31 20:44:22 2024.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
Welcome to nRF70 bare metal library's documentation!
7+
====================================================
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
nrf70_bm_lib
14+
nrf70_bm_api
15+
16+
17+
Indices and tables
18+
==================
19+
20+
* :ref:`genindex`
21+
* :ref:`modindex`
22+
* :ref:`search`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. _nrf70_bm_api:
2+
3+
API documentation
4+
=================
5+
6+
.. doxygenfile:: nrf70_bm_lib.h
7+
:project: nrf70_bm_lib
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. _nrf70_bm_lib:
2+
3+
Introduction
4+
============
5+
6+
nRF70 bare metal library is a library that provides a set of APIs to interact with the nRF70 series of SoCs.
7+
The library is designed to be used in a bare metal environment, and it is not dependent on any RTOS.
8+
This helps customers to port the library to any platform of their choice.
9+
10+
The library uses the OS agnostic nRF70 Wi-Fi library to interact with the nRF70.

0 commit comments

Comments
 (0)