Skip to content

Commit

Permalink
Adding C documentation generation for libeb-c
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Jan 13, 2020
1 parent 18511d7 commit b304cb6
Show file tree
Hide file tree
Showing 10 changed files with 80 additions and 37 deletions.
2 changes: 2 additions & 0 deletions docs/.gitignore
@@ -1,3 +1,5 @@
env
_build
_download
libeb-c-api/
doxyoutput/
6 changes: 6 additions & 0 deletions docs/Makefile
Expand Up @@ -40,3 +40,9 @@ env: _download/Miniconda3-latest-Linux-x86_64.sh
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: Makefile

clean:
rm -rf libeb-c/doxyoutput/ libeb-c/api/
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: clean
25 changes: 25 additions & 0 deletions docs/conf.py
Expand Up @@ -48,6 +48,8 @@
'symbolator_sphinx',
'sphinxcontrib_verilog_diagrams',
'sphinxcontrib_session',
'breathe',
'exhale',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -279,3 +281,26 @@

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True

# -- Options for breathe / exhale --------------------------------------------

# Setup the breathe extension
breathe_projects = {
"libeb-c": "./doxyoutput/xml"
}
breathe_default_project = "libeb-c"

# Setup the exhale extension
exhale_args = {
# These arguments are required
"containmentFolder": "./libeb-c-api",
"rootFileName": "library_root.rst",
"rootFileTitle": "Library API",
"doxygenStripFromPath": "../libeb-c",
# Suggested optional arguments
"createTreeView": True,
# TIP: if using the sphinx-bootstrap-theme, you need
# "treeViewIsBootstrap": True,
"exhaleExecutesDoxygen": True,
"exhaleDoxygenStdin": "INPUT = ../libeb-c"
}
7 changes: 4 additions & 3 deletions docs/environment.yml
Expand Up @@ -4,12 +4,13 @@ channels:
- conda-forge
- defaults
dependencies:
- python=3.7
- doxygen
- netlistsvg
- pango
- pip
- pycairo
- pango
- pygobject
- python=3.7
- yosys
- netlistsvg
- pip: # Packages installed from PyPI
- -r file:requirements.txt
34 changes: 5 additions & 29 deletions docs/index.rst
@@ -1,38 +1,14 @@
.. Wishbone Utilies documentation master file
##################
Wishbone Utilities
==================
##################

A collection of utilities for working with Wishbone

wishbone-tool
-------------

.. toctree::
:maxdepth: 2
:glob:

wishbone-tool/index
wishbone-tool/*


libeb-c
-------

.. toctree::
:maxdepth: 2
:glob:

libeb-c/index
libeb-c/*


litex-devmem2
-------------

.. toctree::
:maxdepth: 2
:glob:

litex-devmem2/index
litex-devmem2/*
wishbone-tool
libeb-c
litex-devmem2
15 changes: 15 additions & 0 deletions docs/libeb-c.rst
@@ -0,0 +1,15 @@
#######
libeb-c
#######

.. toctree::
:maxdepth: 2
:glob:

libeb-c/*

.. toctree::
:maxdepth: 3
:glob:

libeb-c-api/library_root.rst
10 changes: 10 additions & 0 deletions docs/litex-devmem2.rst
@@ -0,0 +1,10 @@
=============
litex-devmem2
=============

.. toctree::
:maxdepth: 2
:glob:

litex-devmem2/index
litex-devmem2/*
4 changes: 1 addition & 3 deletions docs/requirements.txt
Expand Up @@ -5,8 +5,7 @@ sphinxcontrib-napoleon

# Better looking Sphinx theme
# sphinx_materialdesign_theme
git+http://github.com/SymbiFlow/sphinx_materialdesign_theme.git@master#egg=sphinx_symbiflow_theme

git+https://github.com/SymbiFlow/sphinx_materialdesign_theme.git@master#egg=sphinx_symbiflow_theme

# Support copying without prompts.
git+https://github.com/mithro/sphinxcontrib-session.git#egg=sphinxcontrib-session
Expand All @@ -16,7 +15,6 @@ git+https://github.com/mithro/sphinxcontrib-session.git#egg=sphinxcontrib-sessio
breathe
exhale


# HDL specific functionality
# --------------------------------------

Expand Down
10 changes: 10 additions & 0 deletions docs/wishbone-tool.rst
@@ -0,0 +1,10 @@
=============
wishbone-tool
=============

.. toctree::
:maxdepth: 2
:glob:

wishbone-tool/index
wishbone-tool/*
4 changes: 2 additions & 2 deletions libeb-c/README.rst
@@ -1,5 +1,5 @@
libeb
=====
Etherbone C Library
===================

A library that can be used for communicating with a remote device.

Expand Down

0 comments on commit b304cb6

Please sign in to comment.