![](/img/trans.png)
[英]Does dart doc support generation of markdown instead of HTML?
我有dart doc. 工作並生成 HTML 個文件。 我想改為生成 Markdown 個文件。 谷歌搜索時,我找到了這個答案https://github.com/dart-lang/dartdoc/issues/1479#issuecomment-868961953 - 這讓我找到了這個 PR: ...
[英]Does dart doc support generation of markdown instead of HTML?
我有dart doc. 工作並生成 HTML 個文件。 我想改為生成 Markdown 個文件。 谷歌搜索時,我找到了這個答案https://github.com/dart-lang/dartdoc/issues/1479#issuecomment-868961953 - 這讓我找到了這個 PR: ...
[英]dart doc not generating documentation for sub folders?
“飛鏢醫生。” (或“dart doc”)命令是生成文檔,但僅適用於 lib 文件夾中的所有內容,而不是子文件夾。 我在 lib 中有一個 src 文件夾,它有其他子文件夾 [lib > src > models > my_modal.dart] 但在運行命令 html 后僅 ...
[英]dart doc for libary, why is the main function not documented?
Hi i have build a blockchain and would like to document the api endpoints written in the main function now i have used dart doc to generate a docume ...
[英]Display an image from the asset in the documentation
我正在編寫有關變量的文檔,並且我想包含項目內部的圖像。 例如: 我知道可以顯示來自 URL 的圖像,但是來自文件的圖像呢? 這些是我不成功的嘗試:// lib/my_file.dart /// The image attempt: /// ![](assets/icons/my-image.svg ...
[英]Using dartdoc categories
試圖了解 dartdoc 中類別的目的/用法。 他們在做什么? 他們是否重新排列 output 並將其分組到類別中? 有沒有完整的例子來說明它們是如何使用的? 我的用例我已經在我正在研究的 flutter 實用程序庫上使用 dartdoc 生成了一組文檔,但它只是將所有類都轉儲在一起,所有這些都混在 ...
[英]dartdoc 4.1.0 failed: Invalid argument (uri): Unknown package: Instance of '_SimpleUri'
為我的 dart package 運行dartdoc時出現此錯誤: dart pub global activate dartdoc返回: dart analyze和flutter analyze返回: ...
[英]The value I want is passed to the function by value rather than reference in Flutter. How to avoid this?
在我的 class 我有以下 class 變量, 然后我有下面的 class 方法, 這個 function 中的圖像參數將接收我在上面聲明的兩個變量中的一個。 但是,在執行 function 時,我認為我的 state 不會改變。 原因是,當我傳遞_pickedFrontImage或_picke ...
[英]How to not add every library inside Flutter project with Dartdoc
當我啟動命令dartdoc --auto-include-dependencies時,我該怎么做才能不為項目中的每個庫創建文檔? 我在我的項目中使用 Melos。 ...
[英]dart show documentation from another method in another file
是否可以在駐留在不同文件中的另一個 function 的文檔中顯示 function 的文檔? 宏只在它們自己的文件中有效。 在Flutter的源代碼中,他們使用了這樣的東西,但似乎沒有任何效果:/// {@macro flutter.widgets.editableText.keyboardTyp ...
[英]From given two lists, how to extract all the elements from one list that are not available in the other list in Dart?
我在 Dart 中有兩個列表,如下所示, 從上面的兩個列表中,我正在嘗試 select availableIssueComponents中的所有元素,不包括selectedIssueComponents中已經可用的元素。 例如:由於 id 為3 、 6 、 19的組件在兩個列表中都很常見,因此我想 ...
[英]Flutter Dartdoc: How to Document State Objects in Statefull Widgets?
這是一個項目的一部分,我正在為教育目的構建 Flickr 應用程序的克隆。 我第一次玩 Dartdoc 和文檔概念,我設法使用 Dartdoc 並為我的項目創建了一個包含文檔的 Doc 文件夾。 However, for all my Stateful widgets, The widget i ...
[英]How to refer to existing documentation
這是我想要完成的一個例子。 所以method2的文檔將是: 這是此方法的文檔字符串。 方法 2 文檔字符串添加到方法 1 的此處。 我很確定我以前見過這樣做。 無需在適用的情況下重寫文檔。 還可以更輕松地維護准確的文檔。 dart 中的正確語法是什么? ...
[英]How do I create DartDoc Macros/Templates in Dart and Flutter?
我在整個 Flutter 存儲庫中看到了如下片段:/// {@macro flutter.widgets.editableText.readOnly} 在 IDE 和呈現的 Dart 文檔中, 顯示如下: 是否可以更改文本。 當此設置為 true 時,文本不能通過任何快捷方式或鍵盤操作進行修改。 ...
[英]Using local image assets in dart documentation comments
如何在 dart 文檔注釋中使用本地資產? 這在使用基於 Web 的 url 時工作正常,如下所示: 我想做的是引用我的資產文件夾中的一些圖像資產並顯示它們。 像這樣的東西: 但是我無法獲得任何相對的工作路徑,這可能嗎? ...
[英]How to remove “Make sure dartdoc successfully runs on your package's source files.”
我將 Flutter package 發布到https://pub.dev/並找到此消息(如屏幕截圖所示)。 我該怎么做才能解決這個問題? 這應該與dartdoc相關,但我不確定我必須添加多少信息。 我還認為很難進行小的更改並多次發布以進行測試,因為我每次都必須更新版本和更改日志。 ...
[英](Windows) `dartdoc` generating documentation files for every base library in the Dart's and Flutter's SDKs when running against my (tiny) package
我遇到的第一個問題——我認為與主要問題有關——與FLUTTER_ROOT變量有關。 我不知道為什么它在安裝的某個時候沒有預設,但是,無論如何,我似乎無法從 VS Code 中設置它,即使我以管理員權限打開它也是如此。 如果我在 VS Code 中運行dartdoc ,我會收到以下錯誤: 我的配置: ...
[英]dartdoc failed: Top level package requires Flutter but FLUTTER_ROOT environment variable not set
我正在嘗試為我的 flutter package 運行 dartdoc 但我得到了這個, 如何添加 FLUTTER_ROOT 環境變量,因為我已經為 Flutter SDK 添加了環境變量,這工作正常,我只是在運行dartdoc時遇到問題。 我是 Linux 用戶。 ...
[英]dartdoc is trying to parse all the source files when is called inside a Flutter App folder
我正在嘗試使用dartdoc為 Flutter App 生成文檔。 為此,我進入 Flutter App 文件夾: 之后我在控制台中調用: 控制台中打印的第一個結果告訴我 dartdoc 正在解析我的應用程序的文件,但隨后正在嘗試解析 Flutter 源文件(如/opt/Flutter/bi ...
[英]Flutter cannot generate docs with dartdoc
我無法使用位於C:\\flutter\\bin\\cache\\dart-sdk\\bin的dartdoc工具生成代碼文檔。 這就是我所做的: 進入項目目錄dir C:\\Users\\alber\\Documents\\progetto_fomet\\fomet_app\\lib 調用命 ...