Skip to content

Instantly share code, notes, and snippets.

View francesco-romano's full-sized avatar

Francesco Romano francesco-romano

View GitHub Profile
@francesco-romano
francesco-romano / README.md
Created April 21, 2017 09:42
How to automatically generate doxygen documentation using Travis

Introduction

A clean and handy way to deal with your documentation is to exploit the GitHub Pages, which represents a nice tool to publish software documentation online.

Everything is basically done through the special branch called gh-pages. The branch must contain at the root level the index.html file pointing to the static documentation (generally generated via doxygen) stored somewhere within the branch itself. Further, the static documentation might be composed of many products (sometimes images), thus it would be worth saving space on the repository by not retaining any history for those files.

First off, we explain how to create the infrastructure for the documentation using git and keep it up-to-date throughout the changes the code undergoes. Then, we will dig into how we can use doxygen to generate the documentation.

Let's start ✨

@francesco-romano
francesco-romano / # gazebo7 - 2016-11-02_17-48-46.txt
Created November 2, 2016 17:17
gazebo7 (osrf/simulation/gazebo7) on macOS 10.12.1 - Homebrew build logs
Homebrew build logs for osrf/simulation/gazebo7 on macOS 10.12.1
Build date: 2016-11-02 17:48:46
@francesco-romano
francesco-romano / ACEreceiver.c++
Created August 8, 2016 15:56
Multicast example
/*
* listener.c -- joins a multicast group and echoes all data it receives from
* the group to its stdout...
*
* Antony Courtney, 25/11/94
* Modified by: Fr�d�ric Bastien (25/03/04)
* to compile without warning and work correctly
*/
#include <sys/types.h>
@francesco-romano
francesco-romano / tinyxml_pkg-config.patch
Created April 2, 2014 14:45
Patch to tinyxml sources to add pkg-config file. This file is for homebrew installation and must be used after the other 3 patches.
diff -Nu /Library/Caches/Homebrew/tinyxml/CMakeLists.txt tinyxml-2.6.2.patch/CMakeLists.txt
--- /Library/Caches/Homebrew/tinyxml/CMakeLists.txt 2014-04-02 16:38:38.000000000 +0200
+++ tinyxml-2.6.2.patch/CMakeLists.txt 2014-04-02 16:32:21.000000000 +0200
@@ -3,6 +3,11 @@
add_library(tinyxml SHARED tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp)
set_target_properties(tinyxml PROPERTIES
INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+
+configure_file(
+"${CMAKE_CURRENT_SOURCE_DIR}/tinyxml.pc.in"