-
Notifications
You must be signed in to change notification settings - Fork 712
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
Idea for neat external module names #68
Comments
The class diagram would be a great addition! Do you have a particular module in mind? |
Hi Sebastian, Thanks for your reply! You are right on the conflicts the Maybe you can keep the double quotes for the module names if the So, my wish list would be ;-):
Regarding the class diagrams I dont't have any modules in mind right now. Using inline SVG it shouldn't be quite hard to draw some class rectangles. A simple version just would draw a rectangle per class among each other. But I will think about it and experiment when I have time! |
Hi Folks, Re Class Diagrams, A few months back @stefangrönke and myself developed a transpiler that takes the JSON output of typedoc and generates a XML UML output. Then using GenMyModel we import the UML Model to produce Class Diagrams. I would recommend to not build a diagramming feature into typedoc but rather collaborate with GenMyModel. They can also provide the diagram in SVG format. Hope this helps a bit... |
…merged to another module Closes TypeStrong#68 (maybe) Workaround for TypeStrong#98
…merged to another module Workaround for issue TypeStrong#98 Fixes TypeStrong#68 (parts of)
…merged to another module Workaround for issue TypeStrong#98 Fixes TypeStrong#68 (parts of)
RE: Class Diagrams - I created this plugin to allow generation of UML diagram images from PlantUML syntax in the comments. It doesn't generate the diagrams automatically, but it's easier then creating the images in a separate tool. This syntax supports other types of UML diagrams, such as sequence diagrams, in addition to class diagrams. Anyways, the supporting library node-plantuml could be used to create automatic diagrams. |
Very nice! I like. |
@markvandenbrink, I noticed you are using SVG, so I added a TypeDoc option for the plugin, |
Last weekend I forked @meirgottlieb s typedoc-plantuml module and added automatical generation of uml class diagrams: |
I came to a problem with the double quote, modules/*.html file generated will have a |
Related to @taoqf's comment, above: https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/ I had to customize my documentation build to add a |
If you are interested in generating UML class diagrams with typedoc you might want to check out this: #175 (comment) |
First of all, TypeDoc 0.2.3 works great with TypeScript 1.4! Very happy with that :-)
But, I do have a request. We use a lot of external modules. The names of these modules are currently automatically composed using the relative path of the module surrounded by double quotes. This composed name is then displayed in the generated documentation (title + TOC). The name is also used as file name for the page of the module. In this file name the invalid characters are replaced with an underscore. This results in a bit "ugly" file names for external modules. Module
x
is displayed as"x"
in the documentation and the file name for the page shows_x_.html
(see screenshot below). I understand this is done to avoid name conflicts with inline modules with the same name. Seems logical.May I do the following proposal to streamline the module name and file name:
onBeginResolve
function of the classDynamicModulePlugin
;reflection.name
is used for both the display name and the file name). Add a specific property for controlling the file name, so there can be a difference in the display name and the file name;module_
. The module with namex
will end up with the file namemodule_x.html
.@module [name]
) to allow a custom name override instead of the generated name based on the relative path. This allows neat module naming. If the@module
tag is omitted the path name is used instead (just how it now works, but without the double quote prefix and suffix of course :-)).Let me know what you think of this idea. I can help you with the implementation if you want/like. I also have another idea for a future release: Automatic inheritance diagram generation (using SVG). Doxygen has such a feature for C++ documentation. But a rather simple implementation should be possible in TypeDoc. Basically the class inheritance is already plotted in the "Hierarchy" block. So all the necessary data sits there... As you can see we embed manually drawn diagrams in the description markdown and it looks great. Automatic inheritance diagrams would be a very nice addition in my opinion!
The text was updated successfully, but these errors were encountered: