-
Notifications
You must be signed in to change notification settings - Fork 194
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
VSCode admonition styling using 'Markdown Extended' #2579
Conversation
✅ Deploy Preview for nf-core-main-site ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -0,0 +1,5 @@ | |||
{ | |||
"markdown.styles": [ | |||
"public/vscode_markdown.css" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"public/vscode_markdown.css" | |
".vscode/vscode_markdown.css" |
I don't think this needs to shipped with the website build. so I would just put it in the .vscode folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was deliberate to make it public, in case we want to add the VSCode config to all pipelines (which I assume we might want to at some point).
Even if we don't do that, we could have it as a documented thing that people can add to their global VSCode configuration so that it works wherever.
In both cases it's useful to have the file public.
✅ Deploy Preview for nf-core-docs canceled.
|
Use https://github.com/qjebbs/vscode-markdown-extended to render admonitions in VSCode.
Requires this extension:
jebbs.markdown-extended
1.1.4
jebbs
Then does an imperfect but not-too-bad job of rendering admonitions in markdown previews in VSCode:
Currently set to use workspace VSCode settings. This won't work when writing docs in pipeline repos. If we want to do that, we'll need to use a https URL to the stylesheet (not a problem once this is merged) and then add a
.vscode
directory to the template with this settings file (which I like less).We could then include this VSCode extension into the nf-core VSCode package so that the majority of users will have it automagically.
'cc @FloWuenne @mahesh-panchal