sphinx“google drive”扩展;在google drive上嵌入图像

sphinxcontrib-googledrive的Python项目详细描述


SphinxContrib GoogleDrive
===

==这个Sphinx扩展允许您将“google drive”上的图像嵌入到文档中:

。图片::https://docs.google.com/drawings/d/1q687-tvfqomh86-16yl64mistee2bo5kpnuv5-lz5fe/edit

…_谷歌驱动:https://www.google.com/drive/



设置
==


install
----






$pip install sphinxcontrib googledrive



准备你的谷歌应用程序google client libraries文档:使用oauth 2.0来创建服务帐户。请为帐户生成私钥。


…_ google客户端库:对服务器到服务器应用程序使用oauth 2.0:https://developers.google.com/api客户端库/python/auth/service accounts

通过以下方法之一将服务帐户的私钥设置为sphinx:


1。通过环境变量设置私钥的内容
`google-drive-service-account-key`:


$export-google-drive-service-account-key='{“type”:“service-account”…}


2。通过“conf.py”中的“googledrive_service_account”
设置私钥文件的路径:


googledrive_service_account='/path/to/private.key'




用法
=



请将CAOO图的URL提供给图像或图形指令
作为参数::


。图片::https://docs.google.com/drawings/d/1q687-tvfqomh86-16yl64mistee2bo5kpnuv5-lz5fe/edit

…图:https://docs.google.com/drawings/d/1q687-tvfqomh86-16yl64mistee2bo5kpnuv5-lz5fe/edit


_图片:http://docutils.sourceforge.net/docs/ref/rst/directives.html;image
…_图:http://docutils.sourceforge.net/docs/ref/rst/directives.html;图




(布尔)。



repository
==





欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何将字符串转换为自定义对象   java如何从socket方法获取数据?   Java中的soap读取回车和新行   java在单击时替换图像   java推荐的使用RXJava执行异步任务的方法   java MySql连接器JDBC驱动程序不支持连接池吗?   java将活动堆栈清理到顶部   java计数用户输入的数量   java从webservice下载大文件导致应用程序性能问题   JavaLocalDate。EPOCH不可用   java如何在使用Selenium等待一定时间后,在页面无法加载(get(url))时自动刷新页面   java Calendar setLenient方法不允许检查年份字段的健全性   java Eclipse和intelliJ 安卓 SDK问题   java为什么我可以在没有super关键字的情况下调用父方法?   java iText的PDF格式不好