HeaderDoc not generating HTML Documentation

こ雲淡風輕ζ 提交于 2019-12-24 17:09:54

问题


I'm working on a re-usable API component for iOS apps. I have completed the API and documented it using headerdoc for future users.

Now I want to create HTML pages for those header files. So I executed the following command in terminal from my project directory

headerdoc2html -o ~/Desktop/My_Project_Documentation APIFolder/

But No documents are being created, instead I'm getting an error like:

Skipping. No HeaderDoc comments found.
No default encoding.  Guessing.  If date formats are wrong, try
specifying an appropriate value in the LANG environment variable.
...done

I tried various methods and ways, finally I narrow down the issue:

In the beginning of my project I have something like:

/**
 *  DarkPantherConstants.h
 *  Panther
 *  Created by Midhun on 05/11/14.
 *  Copyright (c) 2014 Midhun. All rights reserved.
 *  Panther Constants are defined in this header file
 */

So the issue was with this particular comment, actually this comment is auto-generated by XCode and I actually modified the name and comment format to headerdoc. Nothing with date or date-format. Even If I remove those comments, nothing works; getting same error. Can anybody please help me to solve this ?


回答1:


I fixed it by changing my commenting format from:

/**
 *
 */

to

/*!
 *
 */

I made my header comment like:

/*!
 *  DarkPantherConstants.h
 *  Panther
 *  Created by Midhun on 05/11/14.
 *  Copyright (c) 2014 Midhun. All rights reserved.
 *  Panther Constants are defined in this header file
 */

And it solved the issue, but I don't know why the previous commenting format not working. (Both are valid for headerdoc)




回答2:


Add the -j options when executing headerdoc2html to also process java style comments ( /** )



来源:https://stackoverflow.com/questions/27628803/headerdoc-not-generating-html-documentation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!