References
- reference for tags
- Video Reference
- Good Table of Contents Reference
- Basic Documentation Files
- Generated Documentation
- Commonly Used Tags
PHP Paginator project with Doxygen Documentation
Install
Download
You have to enter email and password, download link will be mailed
Start
Tripple slashes & a lesstan symbol ///<
is single line comment for doxygen
- first senetence is brief description
- subsequent sentences constitute detailed description
Using Doxywizard
Wizard tab
- Open doxy wizard. Initial tab is
Wizard
tab
set- Working Directory : Folder where
DoxyFile
will be saved. - source folder : Folder of source files to parseand create documentation
- target folder(destination for generated documentation files)
- project name
- project synopsis
- project version
- project logo
- Check
Scan recursively
- Working Directory : Folder where
- Go to
Topics
>>Output
, UncheckLatex
, since we only need html- in the
Topics
list, selectoutput
- Uncheck
Latex
- in the
- If you are using PHP, go to
Topics
>>Mode
and checkOptimize for C or PHP output
- Go to
Run
Tab >>Run Doxygen
Expert tab
To set all configuration options go to Expert
tab
Important config options
- Under
Topics
>>Project
JAVADOC_AUTOBRIEF
: required for extracting comments with three slashes///
- Add js=JavaScript to
EXTENSION_MAPPING
for checking Javascript files
- Under
Topics
>>Build
- Check
EXTRACT_ALL
: Extract all comments - Uncheck
SHOW_USED_FILES
- Check
- Under
Topics
>>HTML
- Check
GENERATE_TREE_VIEW
- Check
DISABLE INDEX
: To remove top bar
- Check
- Under
Topics
>>Inputs
- add additional
external
source folders inINPUT
- add folders to
ignore
inEXCLUDE
- For adding images in documentation pages, set
IMAGE_PATH
- For loading javascript files add
*.js
in FILE PATTERNS
- add additional
Special actions for Javascript Parsing
- Under
Topics
>>Project
,Add js=JavaScript for checking Javascript files - Under
Topics
>>Inputs
, add*.js
in FILE PATTERNS - Make use of
defgroup
,ingroup
,addtogroup
andfile
tags - for functions use
fn
tag - to ignore code enclose in
cond
andendcod
tags
For more details, use cccontact.js as reference
Important tags
- @brief
- @param
- @returns
- @details
- @see anotherMemebreFunction() anotherMemebreFunction2()
- @note
- @attention
- @warning
- @date
- @returns
- @see
- in Details, you could use markdown
Tutorial Pages
Could be
- html
- markdown
PS: Ideal to save them in seperate folder say doxyip/tutorials
Main Page
@mainpage
tag marks main page. This will be the first page in the documentation
Additional pages
- @page pageId Page Title
- @tableofcontents
- @section sectionId Section Title
- @subsection subsectionId SubSection Title
Sub pages
Below @page pageId Page Title
Add @subpage pageIdOfIntendedSubpage
Link to other pages
@ref pageId/sectionId/SubsectionId
eg:
See this page for more @ref SubsectionId
Inserting Images
- use markdown tag for images
- save image in
IMAGE_PATH
set above
PS: Ideal to save them in seperate folder saydoxyip/images
Creating final documentation pages
- To save the current configuration, do to
File
>>Save
.- Save the configuration file witha name of your choice. This is for future use
- You can use
File
>>Open
to use the saved config file later
- Click
Run doxygen
- Alternatively once configuration file is saved, you can run in command line
doxygen ConfigFileName
Some Nuances
Caching issue after gnenerating new documentation / Old Index(tree) still shows up
Solution
Referesh the following js files
- html/navtreedata.js
- html/navtreeindex0.js
Creating PDF documentation
- Go to
Topics
>>Output
, CheckLatex
. To know more about latex click here) - Run Doxygen
- go to latex output and run
make.bat
Errors like: 'pdflatex' is not recognized as an internal or external command,... Mean that you do you needto install
pdflatex
There are a lot of options available here
Popular choices are
|
|