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

need to develop roadmap functionality within our website and docs site similar to the website roadmap.sh and markmap.js.org #105

Open
devopstoday11 opened this issue Apr 20, 2023 · 32 comments
Assignees
Labels
enhancement New feature or request

Comments

@devopstoday11
Copy link
Contributor

This task is for later, not now.
@tfsojon

Here is the reference for the roadmap.sh site's code base - https://github.com/kamranahmedse/developer-roadmap , and
the markmap reference - https://markmap.js.org/ , https://github.com/markmap/markmap
The above two are for reference only to take a look. Strictly do not use them in our site code since licensing issues will occur.

This task can be achieved by using Javascript, Typescript, CSS, HTML, and adding the functionality in our Hugo theme.
Do this after returning from vacation the following week, please (1st week of May).

Purpose of this is to be able to write mindmaps in markdown using markdown syntax and have those rendered into beautiful mindmaps on our website. This attracts more visitors, especially tech people.

We can discuss how to combine the above two reference ideas and make them into one for our site.

@devopstoday11 devopstoday11 added the enhancement New feature or request label Apr 20, 2023
@tfsojon
Copy link
Collaborator

tfsojon commented Apr 29, 2023

@devopstoday11 please create a video in details about this task.

@devopstoday11
Copy link
Contributor Author

@tfsojon
explained requirements here -
https://www.loom.com/share/b1ca6faa2a914efc8156be987abad17f?sid=db3b673c-c801-41a1-a6bf-4eb21b628fe2

@tfsojon
Copy link
Collaborator

tfsojon commented Jul 23, 2023

@devopstoday11 you there?

@devopstoday11
Copy link
Contributor Author

@tfsojon
Hi, what's up?

@tfsojon
Copy link
Collaborator

tfsojon commented Jul 23, 2023

please check discord.

@tfsojon
Copy link
Collaborator

tfsojon commented Jul 24, 2023

@devopstoday11
Roadmap added. Check and left me know.

image

@tfsojon
Copy link
Collaborator

tfsojon commented Jul 26, 2023

@devopstoday11
Check the code form here - https://github.com/tfsojon/intelops-website/tree/chandu
pull request not created because of the current PR not marged.

@devopstoday11
Copy link
Contributor Author

@tfsojon , just saw this message.
roadmap feature changes are already available in the PR since you committed to same branch. I will merge and test in my local and let you know.

@devopstoday11
Copy link
Contributor Author

@tfsojon ,
so far the roadmaps feature looks fine. I changed the name from roadmaps to mindmaps / mindmap , except I couldn't figure how to change in the URL too. When I changed in the URL as well, the page is not loading correctly. Please check.
I merged my updates in my chandu branch. You can take the updated branch and then fix the URL name change issue - "roadmaps to mindmaps , and test it".

@devopstoday11
Copy link
Contributor Author

devopstoday11 commented Jul 30, 2023

@tfsojon , BTW, what all the types of mermaidjs diagrams can I use to make the diagrams interactive (clickable) ? @tfsojon

@devopstoday11
Copy link
Contributor Author

@tfsojon , so far the roadmaps feature looks fine. I changed the name from roadmaps to mindmaps / mindmap , except I couldn't figure how to change in the URL too. When I changed in the URL as well, the page is not loading correctly. Please check. I merged my updates in my chandu branch. You can take the updated branch and then fix the URL name change issue - "roadmaps to mindmaps , and test it".

I figured the issue and fixed it and pushed it to chandu branch. @tfsojon

@tfsojon
Copy link
Collaborator

tfsojon commented Jul 30, 2023

@tfsojon , BTW, what all the types of mermaidjs diagrams can I use to make the diagrams interactive (clickable) ? @tfsojon

Currently supports mindmap diagram only.

Since they doesn't have the click support, I have to write custom code separately for different diagram.
Let me know which possible diagram's you want to use. @devopstoday11
I think If you need to use all of them in your mindmap, then we should invest time on it. otherwise doesn't need to.
what do you think?

@tfsojon
Copy link
Collaborator

tfsojon commented Jul 30, 2023

@devopstoday11 please check the last comment.

@devopstoday11
Copy link
Contributor Author

devopstoday11 commented Jul 30, 2023

@tfsojon , BTW, what all the types of mermaidjs diagrams can I use to make the diagrams interactive (clickable) ? @tfsojon

Currently supports mindmap diagram only.

Since they doesn't have the click support, I have to write custom code separately for different diagram. Let me know which possible diagram's you want to use. @devopstoday11 I think If you need to use all of them in your mindmap, then we should invest time on it. otherwise doesn't need to. what do you think?

Yes, we would need these diagram types support as well to make them clickable, @tfsojon :-
Flowchart
C4 Diagram
ZenUML
Graph
Note:- Same diagram types to be clickable are enough for Docs site as well.

Also, I want to be able to use custom colors for the nodes/shapes (alias Objects) and edges (relationship lines) in the diagrams. How to do that? Is it something part of those diagrams syntax OR , does our website need to have that feature available explicitly? My guess is colors and shapes are part of syntax. Am I right?

And, how can I add any type of mermaid diagram which is interactive (clickable) in a blog in the blogs area and an article in the learning-center? @tfsojon

@tfsojon
Copy link
Collaborator

tfsojon commented Jul 30, 2023

  • Colors are comes from mermaidjs.
    no option for change this on specific way.
    we can change the theme btw.

  • need to add the script on the blog and learning-center. will add.

@devopstoday11
Copy link
Contributor Author

devopstoday11 commented Jul 30, 2023

  • Colors are comes from mermaidjs.
    no option for change this on specific way.
    we can change the theme btw.
  • need to add the script on the blog and learning-center. will add.

@tfsojon
How to change the theme? If I change the theme, does it impact only the mermaidjs diagram or the entire page on the site?

@tfsojon
Copy link
Collaborator

tfsojon commented Jul 30, 2023

only impact on diagram
image

@tfsojon
Copy link
Collaborator

tfsojon commented Jul 31, 2023

@devopstoday11 check the PR #223
the click option is working on the Mindmap, Flowchart and C4Context.
check - http://localhost:1313/mindmaps/devops/ page on local

but I need few possible examples to test the process are working or not in every way.
@devopstoday11 could you please add some example diagram on the devops page?

devopstoday11 added a commit that referenced this issue Aug 1, 2023
Worked on mindmap click support #105
@devopstoday11
Copy link
Contributor Author

@devopstoday11 check the PR #223 the click option is working on the Mindmap, Flowchart and C4Context. check - http://localhost:1313/mindmaps/devops/ page on local

but I need few possible examples to test the process are working or not in every way. @devopstoday11 could you please add some example diagram on the devops page?

@tfsojon , I checked the changes. The clickable option looks good. But I didn't see any sample clickable option you added for ZenUML example. Mindmap, Flowchart, and C4 Diagram clickable are fine ; by following your examples we can write our mindmaps in those 3. Please show some examples on how to do the same for ZenUML & Graph as well.
Note:- I think Graph and Flowchart diagrams are not just Flowchart. Please check and confirm that.

Any update on adding the mindmap clickable feature script to learning-center & blogs?

@tfsojon
Copy link
Collaborator

tfsojon commented Aug 2, 2023

@devopstoday11 There are no Graph. are you talking about gitGraph?

@tfsojon
Copy link
Collaborator

tfsojon commented Aug 2, 2023

@devopstoday11
Copy link
Contributor Author

devopstoday11 commented Aug 2, 2023

@tfsojon ,
I am unsure how to test mermaidjs clickable feature in learning-center and blogs. Can you show me 1 example in each area how to use the feature in those 2 areas please.

And, I do see that the example you have in the mindmaps in devops for ZenUML diagram. When I click on the elements nothing is opening like you showed for Flowchart, Mindmap, C4 diagrams. How to get a document opening similarly for zenUML diagram also when I click on some item in the zenUML diagram? @tfsojon

@tfsojon
Copy link
Collaborator

tfsojon commented Aug 5, 2023

Hello @devopstoday11 ,
Just add it like the way I added in content/english/mindmaps/devops/_index.md page

Make sure the page-title and the code-block-text is same.

image
image
image

@tfsojon
Copy link
Collaborator

tfsojon commented Aug 5, 2023

If this is ready to go, then I will add this into doc site too.
let me know if it's need any improvement or not @devopstoday11

@devopstoday11
Copy link
Contributor Author

@tfsojon I am still testing on the website.
But, yes please proceed to add this feature to docs site. Usage of mermaid diagrams to make the diagrams interactive on docs site is easy compared to the main website. Hence, the main website needs more testing.

@devopstoday11
Copy link
Contributor Author

@tfsojon @tfsumon

Just like how mermaidjs functionality support was added into both website and docs site, we want python diagraming library support as well.

This is the library I mentioned -
https://github.com/mingrammer/diagrams

@devopstoday11
Copy link
Contributor Author

devopstoday11 commented Sep 7, 2023

Also need to develop feature similar to gitpitch within our website and docs site, for hosting slides within our sites. The slides are similar to slides.com which uses markdown & the above mentioned python diagram library.

https://github.com/gitpitch/gitpitch

@tfsojon @tfsumon
gitpitch was old project. This might need to be used as reference and develop similar feature in our sites instead of using it directly since that project is not active and have many security vulnerabilities.

Also, want similar functionality like pintora -

https://github.com/hikerpig/pintora
Pintora project is also old, so it will only help as reference instead of using directly. @tfsojon you might have already followed what pintora project was doing, when you added mermaid support to our sites. So before jumping in, please compare.

@tfsumon
Copy link
Contributor

tfsumon commented Sep 9, 2023

Alright! I'll keep you updated.

@devopstoday11
Copy link
Contributor Author

@tfsojon @tfsumon

Just like how mermaidjs functionality support was added into both website and docs site, we want python diagraming library support as well.

This is the library I mentioned -
https://github.com/mingrammer/diagrams

After mingrammer diagrams support is added, need to work on the below diagram libs support as well -

geoJSON and topoJSON, and ASCII STL

@tfsojon @tfsumon

@devopstoday11
Copy link
Contributor Author

@tfsumon , any updates?

@tfsumon
Copy link
Contributor

tfsumon commented Sep 20, 2023

Hello @devopstoday11,

Hugo offers built-in support for Goat ASCII diagrams and any diagrams that can be created using Mermaid JS. However, it does not provide support for Mingrammer, geoJSON, topoJSON, or ASCII STL. Consequently, this means it's not currently feasible to incorporate these libraries into our websites.

I have been actively researching ways to integrate these libraries or similar functionalities into our website for quite a few days now. Unfortunately, I have yet to discover a suitable approach, but my research is ongoing.

Rest assured, I will keep you updated as soon as I find a viable method to incorporate them into our websites.

https://gohugo.io/content-management/diagrams/

@devopstoday11
Copy link
Contributor Author

Hello @devopstoday11,

Hugo offers built-in support for Goat ASCII diagrams and any diagrams that can be created using Mermaid JS. However, it does not provide support for Mingrammer, geoJSON, topoJSON, or ASCII STL. Consequently, this means it's not currently feasible to incorporate these libraries into our websites.

I have been actively researching ways to integrate these libraries or similar functionalities into our website for quite a few days now. Unfortunately, I have yet to discover a suitable approach, but my research is ongoing.

Rest assured, I will keep you updated as soon as I find a viable method to incorporate them into our websites.

https://gohugo.io/content-management/diagrams/

@tfsumon ,
Got it. No problem. Don't spend too much time on those libraries. You can look into mingrammer later. There is an approach. We can discuss it when we have free time to work on it.
For now,
Please look into how to build same features as in this gitpitch project (without using this project) -> https://github.com/gitpitch/gitpitch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants