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

Compatibility with Markdown links #109

Closed
1 of 4 tasks
PhilB-RLB opened this issue Apr 18, 2024 · 7 comments
Closed
1 of 4 tasks

Compatibility with Markdown links #109

PhilB-RLB opened this issue Apr 18, 2024 · 7 comments
Labels
enhancement Feature requests

Comments

@PhilB-RLB
Copy link

Which part of Cosma is your request about?

  • command-line interface
  • cosmoscope (HTML file)
  • documentation
  • other

Describe your request:

Hello there,
thank you for this wonderful piece of software.

Nevertheless, I wonder if it world be complicated to analyze standard markdown links :
My Link
instead of the Wikilink :
[[My Link]

I ask for this because I use Hugo to produce my Knowledge Management Site and Hugo is not compatible with the Wikilink syntax.

Another question : would it be possible with the cosmoscope to obtain a "local" graph representation instead of the whole one ?

Phil.B

@PhilB-RLB PhilB-RLB added the enhancement Feature requests label Apr 18, 2024
@infologie
Copy link
Contributor

infologie commented Apr 18, 2024

@PhilB-RLB Thanks for opening an issue!

Your suggestion matches another one: Support for "[text](file.md)" link syntax #42 Feel free to track it so you're notified if we move on it.

Regarding your question:

  • In the cosmoscope, you can filter the display dynamically by using Focus on a node (bottom left of the graph), by hiding types, by selecting keywords.
  • Before running cosma modelize, you can Exclude records from the cosmoscope by using the record_filters parameter in the configuration. This feature is going to be improved in the next development cycle, which is about to start.

@PhilB-RLB
Copy link
Author

Oh, I didn't noticed that this subject was already mentioned. I will check this ticket.

For the "local" graph, yes I've seen that I can filter the display dynamically but I was more asking for a sort of html syntax (produced by my Hugo site) in order to automatically print the graph...

@infologie
Copy link
Contributor

For the "local" graph, yes I've seen that I can filter the display dynamically but I was more asking for a sort of html syntax (produced by my Hugo site) in order to automatically print the graph...

I'm sorry, I don't understand. Could you be more specific?

@PhilB-RLB
Copy link
Author

Sorry for my poor english (I'm french guy) ...

Actually I would like to embed a "local" cosmoscope graph into my Hugo site. For example a page which describe the author 'Victor Hugo' should display a graph with only the other page with link to this author.

@PhilB-RLB
Copy link
Author

I forgot to mention that I use the Amethyst Hugo theme which you can see in action here : https://amethyst.bencuan.me/.
On this home page you will see the global graph of this site (at the bottom).

Now if you go to https://amethyst.bencuan.me/setup/config/ you will see what I call a "local" graph which show only the "pages" in relation.

@infologie
Copy link
Contributor

Ok, with this example I get it! (Thanks for making the effort to write in English so non-French speaking people can read our discussion.) You're asking if there is a way to integrate Cosma with a CMS such as Hugo, in order to reproduce the graph view functionality of Amethyst, but with the option to restrict the graph to a "local" view, like in Cosma's Focus. Cosma doesn't have an API, so I don't see a way to do this conveniently on a large scale. It would be much simpler to open an issue about this on the Amethyst GitHub repository.

@PhilB-RLB
Copy link
Author

Ok, thank you for your answer.

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

No branches or pull requests

2 participants