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
==
===
==这个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
==