how to render external data (csv or yaml) with a shortcode #4700
Unanswered
StefanoCecere
asked this question in
Q&A
Replies: 1 comment
-
This question is definitely related to MkDocs, but maybe some users can share their workflows. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. i come from Hugo, where it is very easy to write a shortcode (a function) that gets called from the .md pages passing variables and renders back the html/md.
for example i have a CSV with 100 records with a country field and i want to render them in different pages, like < render_list("italy") %> or <% render_list(spain) %>
so to keep data separated from the pages, and a function for everything.
the only solution that gets near to this is the macros plugin, right?
but it isn't so easy to write a custom function.. i have to install modules, etc...
isn't there a more direct or easier solution?
is a better mkdocs_apidoc the solution?
thank you
maybe this question is related to MkDocs, but i decided to use it just because of this Material theme
Beta Was this translation helpful? Give feedback.
All reactions