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

Possibly switch Modelica documentation from HTML to Markdown #3122

Open
christiankral opened this issue Sep 21, 2019 · 8 comments
Open

Possibly switch Modelica documentation from HTML to Markdown #3122

christiankral opened this issue Sep 21, 2019 · 8 comments
Labels
discussion Discussion issue that it not necessarily related to a concrete bug or feature documentation Issue addresses the documentation enhancement New feature or enhancement

Comments

@christiankral
Copy link
Contributor

The creating of HTML documentation in any Modelica library is very fault prone (e.g. 5ae8073) as most documentation is created manually. Therefore, we continuously run into wrong or missing tags. Writing documentation in Markdown format is lot easier, faster and less fault prone.

So in the long run it may make sense to switch from HTML to Markdown in the Modelica documentation as suggested in #2867 (comment). This is an idea I wanted to share as some others may already have thought about it.

@christiankral christiankral added enhancement New feature or enhancement discussion Discussion issue that it not necessarily related to a concrete bug or feature documentation Issue addresses the documentation labels Sep 21, 2019
@sjoelund
Copy link
Member

It would be very easy to swap the libraries to markdown since markdown allows you to mix html and markdown (as long as tags are closed, etc)

@dietmarw
Copy link
Member

In don't think this is a question for the library but first of all of tool support. Should tools support be in place then I'm all for it. We had something similar regarding MathJax support. Which is no problem in OM for example but not in other tools.

@christiankral
Copy link
Contributor Author

christiankral commented Sep 21, 2019

One way to go could be to have something like a Modelica Markdown editor and viewer (plugin or whatever) which can be used by all tool vendors. This Modelica Markdown editor/viewer should then be open source and the initial version may even be paid work financed by the Modelica Association. From such an initial version of this editor/viewer the tool vendors could improve and maintain the editor/viewer source code.

The advantage of a common code basis were that the particular (Modelica specific) Markdown flavor does not have to be re-coded by every tool vendor.

@HansOlsson
Copy link
Contributor

One could argue that we planned ahead for this by having <html></html> surrounding the current documentation.

One way to go could be to have something like a Modelica Markdown editor and viewer (plugin or whatever) which can be used by all tool vendors.

I don't see that as a good idea for several reasons: different tools have different plugin-capabilities, and tools also want the documentation editor to have the same look-and-feel as the rest of the GUI that will require substantial configuration possibilities in the plugin, which makes it a lot more complicated project to manage.

And if we go for markdown we need to decide on which one, and I would prefer that we go for a standard one instead of inventing an Modelica-specific one. (Since it seems to be less work than reinventing the wheel, and it would be good to break out of mindset of MA-specific solutions.)

And in that case I don't see a need for developing a new plugin within MA, since it seems likely that there already exists plugin(s) for that.

@henrikt-ma
Copy link
Contributor

This feels related to our ongoing work with the prototype for predefined plots. As we will show at the upcoming design meeting, our current prototype doesn't make use of HTML for several reasons, which I'm sure lead to discussions giving us the chance to explain in more detail next week in Lund.

@beutlich
Copy link
Member

The creating of HTML documentation in any Modelica library is very fault prone (e.g. 5ae8073) as most documentation is created manually. Therefore, we continuously run into wrong or missing tags.

It would be incredibly helpful if we could validate the HTML in a CI job.

@dietmarw dietmarw removed their assignment Mar 9, 2021
@beutlich
Copy link
Member

It would be incredibly helpful if we could validate the HTML in a CI job.

This is the case since quite some time.

@dietmarw
Copy link
Member

Probably interesting to note that Dymola 2023 now supports Markdown and LaTeX (via MathJax) out of the box. Only thing that one has to do is to switch the rendering mode to Markdown. What is also interesting is that the LaTeX rendering also works in HTML mode (though not documented, @HansOlsson ? )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussion issue that it not necessarily related to a concrete bug or feature documentation Issue addresses the documentation enhancement New feature or enhancement
Projects
None yet
Development

No branches or pull requests

6 participants