'Getting auto appending snippets working with mkdocs

Just discovered mkdocs and really like it. I am currently porting online done in a proprietary tool into it.

The only stumbling block I've had is implementing auto-appending snippets.

I was able to implement abbreviations as described here:

https://squidfunk.github.io/mkdocs-material/reference/abbreviations/

My next step was to add a glossary as described on that page by moving those abbreviations into a snippets file as described on the same page.

But rather than having to manually add the snippets to every Markdown file in my project, I wanted to use auto-append as described here:

https://facelessuser.github.io/pymdown-extensions/extensions/snippets/

My mkdocs.yml file declares its theme and extensions as follows:

theme:
    name: material 
markdown_extensions:
  - attr_list
  - abbr
  - pymdownx.snippets

But, I'm unclear on where I exactly configure "auto_append", "base_path" and the other options mentioned in that latter document. If anyone has a working example I'd appreciate it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source