【问题标题】:Macro or dynamic placeholder in appledocappledoc 中的宏或动态占位符
【发布时间】:2013-03-22 10:54:49
【问题描述】:

在我的 iOS 项目中,我在某些类的文档中添加了屏幕截图。
文档使用appledoc 生成。

基本上,对于 TheViewController 类,它看起来像这样:

/**
 * A view controller: awesome and helpful class description.
 *
 * **iPhone Screenshot:**
 * ![](../docs/documentation_data/ViewControllersScreenshotsGallery/screenshots/TheViewController_iPhone.png)
 *
 * **iPad Screenshot:**
 * ![](../docs/documentation_data/ViewControllersScreenshotsGallery/screenshots/TheViewController_iPad.png)
 */


有什么方法可以干燥这个吗?
一个宏,预处理(通过preprocess-headerdoc?),动态占位符,脚本,提供给appledoc的选项?

理想情况下,我只想拥有这个:

/**
 * A view controller: awesome and helpful class description.
 *
 * SCREENSHOTS_FOR_IPAD_AND_IPHONE
 */




如果我什至不必添加行 SCREENSHOTS_FOR_IPAD_AND_IPHONE,则奖励积分,并且仅在满足某些条件时才添加内容(即,如果在预期的位置找到图像)。

【问题讨论】:

    标签: documentation documentation-generation appledoc


    【解决方案1】:

    目前没有这样的功能。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-30
      • 2016-10-03
      • 1970-01-01
      • 2020-11-28
      • 1970-01-01
      • 2013-10-19
      • 1970-01-01
      • 2011-01-13
      相关资源
      最近更新 更多