resource page and content management #4596
Replies: 2 comments
-
I can't say what the best way is, but MkDocs 1.4+ offers a simple functionality called hooks to add custom logic to the build process. You can then use theme extension, add custom templates or override partials as described in our documentation to fit everything to your taste. One idea might be to use a hook to generate Markdown files from the JSON, which MkDocs will then convert into HTML, but YMMV. Maybe somebody else who has done some customization can share her/his process. |
Beta Was this translation helpful? Give feedback.
-
I would also recommend taking a look at https://mkdocs-macros-plugin.readthedocs.io/ for this. We successfully use it to build "dynamic" pages based on the content of YAML files. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using mkdocs-material to build a kind of research wiki on the physics of buildings. So far everything goes well thanks to your incredible work.
Beyond the theme, I would like to build a custom resources section. My resources are books, web pages, institutional contacts, YouTube videos, pdf papers or blog articles ...
So I am thinking of building a custom json database of all the references I want to manage (citekey, title, author, link to pdf or url, link to thumbnail img, date, description, resume, tags, ...). This might (or might not) be done through a standard citation manager. I think I will have about 100 curated resources to expose to the readers.
The json file is here to separate the data and the view in mkdocs.
Then, I want to preprocess the json file to output custom lists of resources in some pages/sections.
Ultimately, I would like to be able, through a unique citationkey mechanism, to reference the resources through an anchor link.
Question Is
Thanks in advance for your insights !
Beta Was this translation helpful? Give feedback.
All reactions