Google Apps Script Auto Generated Library Documentation

≯℡__Kan透↙ 提交于 2019-12-01 21:16:13
Mogsdad

The jsdoc variant suported for libraries in Google Apps Script does not support documentation at the level you are looking for, only first-level functions. There is a relevant open bug report on this, but no response from Google.

You can still write your jsdoc tags, and generate your documentation outside of the Google infrastructure. Take a look at How to preview jsdoc comments in google doc scripts for some pointers on how to preview your jsdoc comments. You could take the output of jsdoc3 and publish it on a site to provide your docs to your community.

Other relevant / possible duplicate posts:

If you are working with TypeScript, we've built a package that aims help on this:

https://github.com/maelcaldas/clasp-types

You can use it to generate autocomplete for our Object Oriented libraries and Client-side API written on Typescript.

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