Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/dart/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Dart中的代码文档_Dart - Fatal编程技术网

Dart中的代码文档

Dart中的代码文档,dart,Dart,我们是否有代码文档语法和工具支持从Dart应用程序代码生成代码文档,类似于Doxygen for C/C++。我更喜欢使用Markdown样式的语法而不是doxygen语法 DartDoc工具(使用降价)创建API文档(如中所示) 描述在自己的代码中使用DartDoc的api参考 显示了如何格式化代码注释以生成API文档DartDoc工具(使用标记)创建API文档(如中所示) ///I am the beerclass class BeerClass{ ///this is a beer v

我们是否有代码文档语法和工具支持从Dart应用程序代码生成代码文档,类似于Doxygen for C/C++。我更喜欢使用Markdown样式的语法而不是doxygen语法

DartDoc工具(使用降价)创建API文档(如中所示)

描述在自己的代码中使用DartDoc的api参考

显示了如何格式化代码注释以生成API文档

DartDoc工具(使用标记)创建API文档(如中所示)

///I am the beerclass
class BeerClass{
  ///this is a beer variable
  String beername;

  ///this is a beer method
  String get getBeer => "beer for the people";
}
描述在自己的代码中使用DartDoc的api参考

显示如何格式化代码注释以生成API文档

///I am the beerclass
class BeerClass{
  ///this is a beer variable
  String beername;

  ///this is a beer method
  String get getBeer => "beer for the people";
}
只需进入Darteditor:工具->生成Dartdoc。您将获得一个新目录
docs
,并在浏览器中启动index.html。您的类、变量和方法现在有了文档


只需进入Darteditor:工具->生成Dartdoc。您将获得一个新目录
docs
,并在浏览器中启动index.html。您的类、变量和方法现在有文档。

官方
dartdoc
工具有什么问题?它为您生成API。官方的
dartdoc
工具有什么问题?它为您生成API。有几个链接断开了。对于“This”,我不知道我们是否还会为dartdoc生成dartdoc。也许删除那一段。对于Readme.txt,可以用指向的链接代替。您可能还想链接到。有几个链接已断开。对于“This”,我不知道我们是否还会为dartdoc生成dartdoc。也许删除那一段。对于Readme.txt,可以用指向的链接代替。您可能还希望链接到。