sphinx的插件来呈现“邋遢”的图表。
sphinx-scruff的Python项目详细描述
Sphinx Scruffy:Sphinx的插件,用于呈现“Scruffy”图表
Sphinx的插件用于呈现“Scruffy”图表
Sphinx的插件用于呈现“Scruffy”图表。图片::https://api.travis ci.org/paylogic/sphinx scruffy.png
:目标:https://travis ci.org/paylogic/sphinx scruffy
…图片::https://pypip.in/v/sphinx scruffy/badge.png
:目标:https://crate.io/packages/sphinx scruffy/
…图片::https://coveralls.io/repos/paylogic/sphinx-scruffy/badge.png?branch=master
:目标:https://coveralls.io/r/paylogic/sphinx scruffy
源代码:
pip install sphinx scruffy
当使用``pip install sphinx scruffy``.
-需要``dot```(graphviz)、``rsvg convert`(librsvg)和``pic2plot`(plotutils)时,将自动安装此模块。
您可以在ubuntu上使用一个命令安装所有这三个模块:``sudo apt get install graphviz librsvg2 bin plotutils`.
-这种邋遢的字体称为purisa,如果你运行的是ubuntu,你可能已经有了它,但是如果你没有,你可以使用“sudo apt get install ttf thai tlwg”来安装它。
代码块::python
extensions=['sphinx_scruffy']
usage
----
>本节展示了几个使用shpinx scruffy插件完成的“scruffy”关系图示例。
邋遢的:
[用户+名字;+姓氏;+哈希密码;-salt+login();+注销()]
生成此图像:
邋遢的人:
[user+forename;+姓氏;+hashedpassword;-salt+login();+logout()]
邋遢的:
[注意:您也可以在图表上粘贴注释!【bg:cornsilk】
>[customer]<>gt;1-订单0..*>;[order]
[order]++*->;[lineitem]
[order]-[order]-[order]-[order]>[deliverymethod]
[order]->[order]>[order]-[order]>[order]->;[product]>[deliverymethod][deliverymethod][product品]
[product]>[deliverymetmetmethod]>[deliverymethod]>[deliverymethod]>[deliverymethod]>[deliverymethod]]是的邋遢的:
[注意:您也可以在图表上粘贴注释!{bg:cornsilk}
[客户]<;>1-订单0..*>;[订单]
[订单]+*->;[行项目]
[订单]-1>;[送货方式]
[订单]*>;[产品]
[类别]<;->;[产品]
[deliveryMethod]^[国内]
[deliveryMethod]^[国际]
类图扩展
***********************
邋遢的:
[node a]->;[node b]
[node b]->;[node c]
[group[node a][node b]]
这会导致以下图像:
邋遢的:
[node a]->;[node b]
[node b]->;[node c]
[group[node a][node b]]
sequence diagrams
********
邋遢的:
:顺序:
[顾客]点餐>;[侍者]
[侍者]点餐>;[厨师]
[侍者]端酒>;[顾客]
[厨师]接送>;[侍者]
[侍者]端菜>;[顾客]
[顾客]付款>;[收银员]
这会产生以下图像:
。邋遢的:
:顺序:
[顾客]点餐>;[侍者]
[侍者]点餐>;[厨师]
[侍者]端酒>;[顾客]
[厨师]接送>;[侍者]
[侍者]端菜>;[顾客]
[顾客]付款>;[收银员]
----
3开箱即用,但它的依赖性,scruffy包,还没有python 3支持的pypi版本。
暂时使用git master https://github.com/aivarsk/scruffy.git
或通过pip::
代码块::sh
pip install-e git+https://github.com/aivarsk/scruffy.git\egg=scruffy
`.
许可证
----
本软件是在“麻省理工学院许可证”下获得许可的<;http://en.wikipedia.org/wiki/mit撸u license>;`\br/>
请参阅`<;license.txt>;`
©2013 Paylogic International。
==
1.0.0
----
-packaging fixes(bubenkoff)
0.2
--
Sphinx的插件用于呈现“Scruffy”图表
Sphinx的插件用于呈现“Scruffy”图表。图片::https://api.travis ci.org/paylogic/sphinx scruffy.png
:目标:https://travis ci.org/paylogic/sphinx scruffy
…图片::https://pypip.in/v/sphinx scruffy/badge.png
:目标:https://crate.io/packages/sphinx scruffy/
…图片::https://coveralls.io/repos/paylogic/sphinx-scruffy/badge.png?branch=master
:目标:https://coveralls.io/r/paylogic/sphinx scruffy
源代码:
pip install sphinx scruffy
当使用``pip install sphinx scruffy``.
-需要``dot```(graphviz)、``rsvg convert`(librsvg)和``pic2plot`(plotutils)时,将自动安装此模块。
您可以在ubuntu上使用一个命令安装所有这三个模块:``sudo apt get install graphviz librsvg2 bin plotutils`.
-这种邋遢的字体称为purisa,如果你运行的是ubuntu,你可能已经有了它,但是如果你没有,你可以使用“sudo apt get install ttf thai tlwg”来安装它。
代码块::python
extensions=['sphinx_scruffy']
usage
----
>本节展示了几个使用shpinx scruffy插件完成的“scruffy”关系图示例。
邋遢的:
[用户+名字;+姓氏;+哈希密码;-salt+login();+注销()]
生成此图像:
邋遢的人:
[user+forename;+姓氏;+hashedpassword;-salt+login();+logout()]
邋遢的:
[注意:您也可以在图表上粘贴注释!【bg:cornsilk】
>[customer]<>gt;1-订单0..*>;[order]
[order]++*->;[lineitem]
[order]-[order]-[order]-[order]>[deliverymethod]
[order]->[order]>[order]-[order]>[order]->;[product]>[deliverymethod][deliverymethod][product品]
[product]>[deliverymetmetmethod]>[deliverymethod]>[deliverymethod]>[deliverymethod]>[deliverymethod]]是的邋遢的:
[注意:您也可以在图表上粘贴注释!{bg:cornsilk}
[客户]<;>1-订单0..*>;[订单]
[订单]+*->;[行项目]
[订单]-1>;[送货方式]
[订单]*>;[产品]
[类别]<;->;[产品]
[deliveryMethod]^[国内]
[deliveryMethod]^[国际]
类图扩展
***********************
邋遢的:
[node a]->;[node b]
[node b]->;[node c]
[group[node a][node b]]
这会导致以下图像:
邋遢的:
[node a]->;[node b]
[node b]->;[node c]
[group[node a][node b]]
sequence diagrams
********
邋遢的:
:顺序:
[顾客]点餐>;[侍者]
[侍者]点餐>;[厨师]
[侍者]端酒>;[顾客]
[厨师]接送>;[侍者]
[侍者]端菜>;[顾客]
[顾客]付款>;[收银员]
这会产生以下图像:
。邋遢的:
:顺序:
[顾客]点餐>;[侍者]
[侍者]点餐>;[厨师]
[侍者]端酒>;[顾客]
[厨师]接送>;[侍者]
[侍者]端菜>;[顾客]
[顾客]付款>;[收银员]
3开箱即用,但它的依赖性,scruffy包,还没有python 3支持的pypi版本。
暂时使用git master https://github.com/aivarsk/scruffy.git
或通过pip::
代码块::sh
pip install-e git+https://github.com/aivarsk/scruffy.git\egg=scruffy
`.
许可证
----
本软件是在“麻省理工学院许可证”下获得许可的<;http://en.wikipedia.org/wiki/mit撸u license>;`\br/>
请参阅`<;license.txt>;`
©2013 Paylogic International。
1.0.0
----
-packaging fixes(bubenkoff)
0.2
--