Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Documentation #78

Open
ricardomatias opened this issue Mar 31, 2015 · 25 comments
Open

Provide Documentation #78

ricardomatias opened this issue Mar 31, 2015 · 25 comments
Labels
backlog Queued in backlog documentation Improvements or additions to documentation

Comments

@ricardomatias
Copy link
Contributor

ricardomatias commented Mar 31, 2015

Adding a (self) hosted solution with up to date documentation.

ReadMe.io could be a great option since it's a well built, easy to use system and free for open source.


Helpful resources, despite the lack of documentation:

@ricardomatias ricardomatias added the documentation Improvements or additions to documentation label Mar 31, 2015
@matehat
Copy link

matehat commented May 2, 2015

👍 so badly

@ricardomatias
Copy link
Contributor Author

What kind of documentation are you looking for @matehat ?
Your feedback would help us tackle this issue.

@matehat
Copy link

matehat commented May 4, 2015

Just for a bit of background, I'm incorporating BPMN.js, thus diagram.js in a web app for a project where we need to design these sort of execution flows. In addition to just the graphical modeling itself, we have additional information alongside the business logic data. Things like exactly what gets executed in a task, and some contextual data.

So getting the modeler to work was pretty straightforward thanks to your examples. But getting richer interactions with the rest of our app was non trivial. I got to figure out by browsing the code, that you're using a dependency injection pattern, much like angular, that I need to get a handle on the eventBus object to hook into certain events. But again, figuring out which event I should hook onto for when an element gets selected for example, and what data will be available to me, is a matter of browsing the code and trying out things by hand in the developer console. So the process of learning how to leverage these two libraries in a more complex manner is really slow and painful, but doable.

Another example, I have no idea how I can change the label of a object that's already in the diagram, or how I can add a condition expression to a sequence flow. I will probably figure out, but it's slow and painful.

Unless I'm missing something of course 😃

BTW awesome work guys, despite the documentation thing, the project is incredibly well made.

I would however suggest adding something in there to customize all the defaults that are used throughout, like element sizes, zoom caps, and so on.

@matehat
Copy link

matehat commented May 4, 2015

To be more precise

  • maybe a list of all events (and/or commands that get executed through the command stack) that can be triggered, and what data lives in it.
  • the objects that are available by dependency injection, and what we can do with them (their methods). That would include a comprehensive description of the arguments.
  • And maybe examples for when you want to register new services, interceptors, command handlers and all sort objects that need to implement a certain interface to be used for certain roles.

@nikku
Copy link
Member

nikku commented May 5, 2015

Thanks for your comprehensive feedback @matehat. We will try to address these issues in the next milestones.

@nikku nikku added the ready Ready to be worked on label May 27, 2015
@nikku nikku added this to the 012 - Boundary Events milestone May 27, 2015
@nikku nikku added ready Ready to be worked on and removed ready Ready to be worked on labels Aug 6, 2015
@nikku nikku modified the milestones: Backlog, 013 - Modeling Lanes Aug 10, 2015
@nikku nikku added the backlog Queued in backlog label Feb 14, 2018
@nikku nikku removed this from the Backlog milestone Feb 14, 2018
@Diaskhan
Copy link

Diaskhan commented Mar 28, 2019

Very poor docs !

Look at https://jgraph.github.io/mxgraph/docs/manual.html
There are basic docs for creating graph!

The digramjs is mature !
But without documentation is not so usable!

@nikku
Copy link
Member

nikku commented Mar 29, 2019

@Diaskhan What do you build on top of this library you need the docs for?

@Diaskhan
Copy link

For mxgraph many docs ! And examples!
For example look at this page of examples
https://jgraph.github.io/mxgraph/javascript/index.html
With comparison (documentation, guides) many other people prefer to use mxgraph rather than diagramjs!

@ellyxc
Copy link

ellyxc commented Jul 8, 2019

@nikeee i think a getting started documentation, list of modules and each module capabilities could be helpful for starting point. It has been 4 years and we haven't have any of them.

@adrianschneider94
Copy link

adrianschneider94 commented Aug 8, 2019

Hi,

I totally agree with the previous requests. From what I can see and estimate, diagram-js is (technically) the best platform out there for creating diagrams that have a data structure in the background.
I think there are many many use cases for this library. But without documentation it‘s not feasible. At least not in reasonable amount of time.

Best wishes
Adrian Schneider

@nigel-daniels
Copy link

Hi,

I'd love to see some docs that show how to build on diagram-js. The example app is a great start point but there seems to be a gulf between that and something as complex as bpmn-js. For example how to start building ones own version of bpmn-js, how to define a basic modeler, how to add your own elements, rules, modules, etc. A walk through of that process would be super useful right now! I have started trying to build a basic moddel, then add a library based on diagram-js however it's very slow going.
Another example of good docs is the JointJS library: https://resources.jointjs.com/docs/jointjs/v3.1/joint.html

@nikku
Copy link
Member

nikku commented Nov 22, 2019

Thanks for sharing concrete use cases and the example of what you regard good documentation. It will help us to improve the documentation in the future.

@ttutisani
Copy link

I'm also looking for the diagramming js library, came here, and documentation is non-existent. Perhaps that stops many developers from using the diagram.js altogether.

Not even a getting started page to create a basic diagram for the newcomers?

I will try to figure it out, but if I don't find enough details to build a working app, I will pass.

However, the library seems promising, so thanks!

@bernardoadc
Copy link

Not even a getting started page to create a basic diagram for the newcomers?

@ttutisani yeah I agree. I would argue there should be an API doc, but far mor easy and basic is to provide simple examples in the README.

... and a simple editor example

@nikku first of all I'm not even sure I know what you're talking about. I see links to libs built with diagram-js (are those the complex ones?) and in resources, a project for examples. If this is the simple one, you should change the texting, because is confusing:

Advanced
editor - an example showcasing how to build a simple diagram editor

Is it simple or advanced?? As this is an editor, altough simple one, I would call it intermediate.

But what about rendering a basic diagram in a page?

diagram-js
A toolbox for displaying and modifying diagrams on the web.

Now I'm not sure the goal of this project. Is it to create diagrams editors only? I thought I could input some data and render a diagram (with ou without editing capabilities) on a webpage. There's no example to that extend as far as I can see. (BTW, if the main goal IS to build editors, then BEFORE linking to other projects it should mention usage as of that example project. If that is the docs, no problem, just make it clear).

@nikku
Copy link
Member

nikku commented Nov 2, 2021

@bernardoadc Not exactly sure what you are looking for.

The editor example is the main entry point to understand what you'll get with diagram-js. Every editor is a viewer, too. So think about it as viewer + additional interactivity.

@bernardoadc
Copy link

@nikku I wanted something more straightforward to create "fixed" diagrams (hardcoded), not an editor (but I know this is possible). The interactivity is great, but only if wanted.

PS: I was searching alternatives to mermaidjs

@B-R-Bender
Copy link

I agreed, lack of documentation is an issue here.
But I think I can understand why there is no news on this topic from 2015

@philippfromme philippfromme self-assigned this Nov 15, 2022
@philippfromme philippfromme added the in progress Currently worked on label Nov 22, 2022 — with bpmn-io-tasks
@philippfromme philippfromme removed the backlog Queued in backlog label Nov 22, 2022
@philippfromme philippfromme added the ready Ready to be worked on label Nov 22, 2022 — with bpmn-io-tasks
@philippfromme philippfromme removed the in progress Currently worked on label Nov 22, 2022
@philippfromme philippfromme changed the title Documentation Provide Documentation Nov 22, 2022
@nikku nikku added the backlog Queued in backlog label Dec 3, 2022 — with bpmn-io-tasks
@nikku nikku removed the ready Ready to be worked on label Dec 3, 2022
@philippfromme philippfromme added the ready Ready to be worked on label Dec 6, 2022 — with bpmn-io-tasks
@philippfromme philippfromme removed the backlog Queued in backlog label Dec 6, 2022
@philippfromme
Copy link
Contributor

Closed in favor of https://github.com/bpmn-io/internal-docs/issues/683.

@bpmn-io-tasks bpmn-io-tasks bot removed the ready Ready to be worked on label Dec 6, 2022
@adrianschneider94
Copy link

@philippfromme This link leads to a 404.

@nikku nikku reopened this Dec 12, 2022
@nikku nikku added the backlog Queued in backlog label Dec 12, 2022
@nikku
Copy link
Member

nikku commented Sep 1, 2023

As of diagram-js@12 we offer comprehensive documentation via type definitions.

@joeskeen
Copy link

joeskeen commented Feb 8, 2024

Love the TS types and documentation. Since there is good JSDoc/TSDoc comments, I think it shouldn't be too much of a stretch to generate a static API documentation site from it and check it into the gh-pages branch for automagical GitHub Pages docs site at https://bpmn-io.github.io/diagram-js . Then from there we could add a couple getting started use case guides. Thoughts?
(happy to contribute)

@nikku
Copy link
Member

nikku commented Feb 8, 2024

@joeskeen Absolutely! Just a matter of priorities. Plus, the devil lies in the details (to do it right).

We're open to take a contribution to move this forward. The inofficial documentation can be hosted on any GitHub page 🙂

@bpmn-io-tasks bpmn-io-tasks bot removed the backlog Queued in backlog label Feb 8, 2024
@joeskeen
Copy link

joeskeen commented Feb 8, 2024

@nikku it was my top priority this morning 😉

Please review at your leisure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.