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

Support of Mermaid charts for Markdown files #1026

Open
pylapp opened this issue Sep 12, 2024 · 1 comment
Open

Support of Mermaid charts for Markdown files #1026

pylapp opened this issue Sep 12, 2024 · 1 comment
Labels
enhancement Improvements or enhancements to existing functionality

Comments

@pylapp
Copy link

pylapp commented Sep 12, 2024

Feature Name

Support of Mermaid charts in HTML pages

Description

Today, markdown files can contain charts so as to explain things or display workflows for example.
Instead of using images, charts can be designed simply with text content thanks to tools like Mermaid.

In addition, this tool is supported in GitHub side and helps people to draw charts simply: the content is written in text, placed in the markdown, and then rendered using Mermaid.js.

You can find the announcement of GitHub in this page.

Motivation

Having charts nicely rendered in the generated DocC file will help users to read them and unserstand aprts of the project for example.

For example, given the following README file, the rendering of the HTML generated page using version 1.4.2 of swift-docc is this one.
Capture d’écran 2024-09-12 à 15 53 34

If the file is viewed through GitHub web site, the rendering is done with automatically zooms and other features.
Capture d’écran 2024-09-12 à 15 54 10

Importance

This is a new feature which will help users and prevent them to go to the project repository through GitHub to get the documentation. The need can be filled with images of the charts must maanging images is not interesting.

Alternatives Considered

None, maybe images of charts but we don't want that.

@heckj
Copy link
Member

heckj commented Sep 18, 2024

@pylapp I think this likely resides with swift-docc-render, where there's an existing issue requesting this support: swiftlang/swift-docc-render#413. This repo is the face of docc, but the actual rendering of content happens in the other repo, and the source of this repo is more focused on data transformation for symbol graphs into docc archives that are in turn rendered by https://github.com/swiftlang/swift-docc-render/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvements or enhancements to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants