简体   繁体   English

如何将 json 文件转换为 Deno doc 网站

[英]How to convert json file to Deno doc website

I have created a JSON format file for a particular module in my Deno project using "deno doc --Json > sample.json".我使用“deno doc --Json > sample.json”为我的 Deno 项目中的特定模块创建了 JSON 格式文件。 This creates a sample.json file of the module.这将创建模块的 sample.json 文件。 Then I cloned and setup the doc_website in my local.然后我在本地克隆并设置了 doc_website。

But I am confused how to use sample.json file in doc_website.但我很困惑如何在 doc_website 中使用 sample.json 文件。 I am stuck with where to add this file in doc_wesite folder structure.我被困在 doc_wesite 文件夹结构中添加此文件的位置。

Thanks in advance.提前致谢。

I didn't completely understand your question, but there is now a new method to add modules to Deno!我没有完全理解你的问题,但是现在有一种新方法可以将模块添加到 Deno! Just go to https://deno.land/x#add and click the "Add a module" button and it should ask you a couple of questions.只需 go 到https://deno.land/x#add并单击“添加模块”按钮,它应该会问您几个问题。 After that, you should be able to search for your module at the Deno Third-Party modules index and it should magically appear!之后,您应该能够在Deno 第三方模块索引中搜索您的模块,它应该会神奇地出现! If it doesn't appear in the search, do CTRL/CMD + SHIFT + R to clear the cache of the docs and it should work now:) If you have any further questions or troubles, just reply!如果它没有出现在搜索中,请执行 CTRL/CMD + SHIFT + R 以清除文档的缓存,它现在应该可以工作了:) 如果您有任何其他问题或麻烦,请回复!

Edit: Also remember to read the Deno Contributing Style Guide !编辑:还记得阅读 Deno 贡献风格指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM