Hi Danilo,
On 9 Jun 2014 at 15:11:37, Danilo Amaral de Oliveira
(danilo.oliveira@energisa.com.br(mailto:danilo.oliveira@energisa.com.br)) wrote:
Hello XWiki Dev,
How are you?
In my company, we have created an XWiki extension that allows use the sigmajs framework
(
sigmajs.org) and we would like to share the extension with the community. Our idea is
create a github project and make it available through extension manager to the users
however we don’t have idea how to create the github and after that link that with the
extension, how can we do that?
Awesome! Sigmajs looks very nice and very well adapted to XWiki.
How have you done the integration? It seems like a wiki Macro would be great for that,
something like:
{{sigma}}
{
"nodes": [
{
"id": "n0",
"label": "A node",
"x": 0,
"y": 0,
"size": 3
},
{
"id": "n1",
"label": "Another node",
"x": 3,
"y": 1,
"size": 2
},
{
"id": "n2",
"label": "And a last one",
"x": 1,
"y": 3,
"size": 1
}
],
"edges": [
{
"id": "e0",
"source": "n0",
"target": "n1"
},
{
"id": "e1",
"source": "n1",
"target": "n2"
},
{
"id": "e2",
"source": "n2",
"target": "n0"
}
]
}
{{/sigma}}
BTW, make sure that you include the JS/CSS using a Stylesheet extension which is loaded on
demand by the macro.
For the project creation, as Jeremie mentioned, you can
follow
http://contrib.xwiki.org/xwiki/bin/view/Main/WebHome#HRequestingaproject
Thanks!
-Vincent
Thank you,
Danilo