Skip to content

Commit

Permalink
Fix doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Sep 29, 2023
1 parent 830fa55 commit d988f53
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const HEADER: &str = r"//
// Contributors:
// ZettaScale Zenoh Team, <[email protected]>
//
#ifdef DOCS
#define ALIGN(n)
#define ZENOHC_API
#endif
";

fn main() {
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
extensions = ['sphinx_c_autodoc', 'sphinx_c_autodoc.napoleon']
language = 'c'
c_autodoc_roots = ['../include']
c_autodoc_compilation_args = ["-DDOCS"]

# -- Options for HTML output -------------------------------------------------
html_theme = 'sphinx_rtd_theme'
Expand Down
4 changes: 4 additions & 0 deletions include/zenoh_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
// Contributors:
// ZettaScale Zenoh Team, <[email protected]>
//
#ifdef DOCS
#define ALIGN(n)
#define ZENOHC_API
#endif
/**
* The kind of congestion control.
*
Expand Down
4 changes: 4 additions & 0 deletions include/zenoh_concrete.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
// Contributors:
// ZettaScale Zenoh Team, <[email protected]>
//
#ifdef DOCS
#define ALIGN(n)
#define ZENOHC_API
#endif
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
Expand Down

0 comments on commit d988f53

Please sign in to comment.