doxygen.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:46:36 +0200
changeset 1905 fba288d59662
parent 1334 9bf0d5a1f0cf
child 1912 8b81a8f0f692
permissions -rw-r--r--
Include only local subsections into TOC. This prevent duplication of TOC when build single page HTML document. Also this make unnecessary CSS hack to hide document title as top level section.

.. -*- coding: utf-8; -*-
.. include:: HEADER.rst

==========
 Doxygen.
==========
.. contents::
   :local:

Installing.
===========
::

  $ sudo apt-get install doxygen
  $ sudo apt-get install doxygen-gui

Graphical wizard called as::

  $ doxywizard

Doxygen simple workflow.
========================
::

  $ cd $proj
  $ doxygen -g $proj.cfg  # generate basic config file

Edit $proj.cfg. Some essential settings::

  PROJECT_NAME     = my-proj
  OUTPUT_DIRECTORY = my
  OUTPUT_LANGUAGE  = English
  INPUT            = my.h my.hpp dir/
  INPUT_ENCODING   = UTF-8
  FILE_PATTERNS    =
  RECURSIVE        = NO
  GENERATE_HTML    = YES

Generate .chm from doxygen.
===========================

Check doxygen config file for::

  GENERATE_HTMLHELP  = YES
  CHM_FILE           = my.chm
  CHM_INDEX_ENCODING = Windows-1251

Run 'doxygen' and 'hhc.exe' on generated 'index.hhp'::

  $ doxygen $proj.cfg
  $ cd $proj/html     # here gone doxygen html output
  $ hhc.exe index.hhp