Best Practices¶
This is an overview over the best practices when creatin content with obsidian and deploy/convert the stuff to MkDocs Material.
Obsidian settings¶
To get the best experience when working with Obsidian and MkDocs Material the following app.json settings should be enabled, stored in the docs\.obsidian folder:
attachmentFolderPath: assets\imageswhen you drop content like images these will the be stored inassets\imagesmove differnet content tosvgorderdatafoldersnewLinkFormat: relativedroped content is referenced relative to the docs folderalwaysUpdateLinks: truehandled renaming of files and headers and updates referencesuseMarkdownLinks: truethe plugins can better handle anchor links to headersshowUnsupportedFiles: truethen you can drop all files into obsidian
Create a notice¶
When create a notice the filename should short and compact, because this is managed by the file sytem.
Use the main header which will be visible in the MkDocs Material sidebar for navigation like:
Links¶
Reference to an header anchor¶
When converting markdown to html with MkDocs the plugins will generate header anchor like #obsidian-settings, Obsidian will generate #Obsidian settings, so the plugins of MkDocs will handle this when you use wikilinks syntax:
this link will be converted to #obsidian-settings.
Ex. my anchor to #Obsidian settings.