doc: API documentation refactoring.

Restructured the API documentation and moved it from the Reference
section to the Developer guides section.

Added a note about the search function to help users find the API they
are looking for faster.

Splitted the API docs into two files one for nanokernel and another for
the microkernel APIs.

Added table of contents for each of the API sections with a back link on
the headings to take the users back to the top of the page. Making
navigation easier and more user friendly.

Change-Id: I80f415a60ea9c7df22276b464013e906e1efa511
Signed-off-by: Rodrigo Caballero <rodrigo.caballero.abraham@intel.com>
This commit is contained in:
Rodrigo Caballero 2016-02-01 11:28:50 -06:00 committed by Anas Nashif
commit c4312b652c
4 changed files with 97 additions and 68 deletions

21
doc/api/api.rst Normal file
View file

@ -0,0 +1,21 @@
.. _api:
API Documentation
#################
Welcome to the Zephyr Project's
:abbr:`API (Application Programing Interface)` documentation.
This section contains the API documentation automatically extracted from the
code. To ease navigation, we have split the APis in nanokernel APIs and
microkernel APIs. If you are looking for a specific API, enter it on the
search box. The search results display all sections containing information
about that API.
The use of the Zephyr APIs is the same for all platforms and boards.
.. toctree::
:maxdepth: 2
nanokernel_api.rst
microkernel_api.rst

View file

@ -1,128 +1,78 @@
.. _api: .. microkernel_api:
API Documentation Microkernel APIs
################# ################
Nanokernel .. contents::
********** :depth: 1
:local:
Fibers :backlinks: top
======
.. doxygengroup:: nanokernel_fiber
:project: Zephyr
:content-only:
Semaphores
==========
.. doxygengroup:: nanokernel_semaphore
:project: Zephyr
:content-only:
LIFOs
=====
.. doxygengroup:: nanokernel_lifo
:project: Zephyr
:content-only:
FIFOs
=====
.. doxygengroup:: nanokernel_fifo
:project: Zephyr
:content-only:
Stacks
======
.. doxygengroup:: nanokernel_stack
:project: Zephyr
:content-only:
Timers
======
.. doxygengroup:: nanokernel_timer
:project: Zephyr
:content-only:
Kernel Event Logger
-------------------
.. doxygengroup:: nanokernel_event_logger
:project: Zephyr
:content-only:
Microkernel
***********
Events Events
====== ******
.. doxygengroup:: microkernel_event .. doxygengroup:: microkernel_event
:project: Zephyr :project: Zephyr
:content-only: :content-only:
FIFOs FIFOs
===== *****
.. doxygengroup:: microkernel_fifo .. doxygengroup:: microkernel_fifo
:project: Zephyr :project: Zephyr
:content-only: :content-only:
Pipes Pipes
===== *****
.. doxygengroup:: microkernel_pipe .. doxygengroup:: microkernel_pipe
:project: Zephyr :project: Zephyr
:content-only: :content-only:
Interrupt Services Interrupt Services
================== ******************
.. doxygengroup:: microkernel_irq .. doxygengroup:: microkernel_irq
:project: Zephyr :project: Zephyr
:content-only: :content-only:
Mailboxes Mailboxes
========= *********
.. doxygengroup:: microkernel_mailbox .. doxygengroup:: microkernel_mailbox
:project: Zephyr :project: Zephyr
:content-only: :content-only:
Memory Maps Memory Maps
=========== ***********
.. doxygengroup:: microkernel_memorymap .. doxygengroup:: microkernel_memorymap
:project: Zephyr :project: Zephyr
:content-only: :content-only:
Mutexes Mutexes
======= *******
.. doxygengroup:: microkernel_mutex .. doxygengroup:: microkernel_mutex
:project: Zephyr :project: Zephyr
:content-only: :content-only:
Semaphores Semaphores
========== **********
.. doxygengroup:: microkernel_semaphore .. doxygengroup:: microkernel_semaphore
:project: Zephyr :project: Zephyr
:content-only: :content-only:
Timers Timers
====== ******
.. doxygengroup:: microkernel_timer .. doxygengroup:: microkernel_timer
:project: Zephyr :project: Zephyr
:content-only: :content-only:
Tasks Tasks
===== *****
.. doxygengroup:: microkernel_task .. doxygengroup:: microkernel_task
:project: Zephyr :project: Zephyr

View file

@ -0,0 +1,58 @@
.. nanokernel_api:
Nanokernel APIs
###############
.. contents::
:depth: 1
:local:
:backlinks: top
Fibers
******
.. doxygengroup:: nanokernel_fiber
:project: Zephyr
:content-only:
Semaphores
**********
.. doxygengroup:: nanokernel_semaphore
:project: Zephyr
:content-only:
LIFOs
*****
.. doxygengroup:: nanokernel_lifo
:project: Zephyr
:content-only:
FIFOs
*****
.. doxygengroup:: nanokernel_fifo
:project: Zephyr
:content-only:
Stacks
******
.. doxygengroup:: nanokernel_stack
:project: Zephyr
:content-only:
Timers
******
.. doxygengroup:: nanokernel_timer
:project: Zephyr
:content-only:
Kernel Event Logger
*******************
.. doxygengroup:: nanokernel_event_logger
:project: Zephyr
:content-only:

View file

@ -21,6 +21,7 @@ Developer Guides
reference/kbuild/kbuild.rst reference/kbuild/kbuild.rst
application/application.rst application/application.rst
board/board.rst board/board.rst
api/api.rst
collaboration/collaboration collaboration/collaboration
Reference Guides Reference Guides
@ -29,7 +30,6 @@ Reference Guides
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
reference/api.rst
reference/kconfig/index.rst reference/kconfig/index.rst
Indices and tables Indices and tables