Skip to content
Discussion options

You must be logged in to vote

I finally managed to achieve what I wanted, but at a cost (I think the idea is quite ugly, and it could have been better coded, but it's rarely used...).
This allows me to embed documentation pages within other documentation pages to centralize and avoid duplicating information, while still having the option to apply other 🪝hooks to them and then wrote them in markdown:

(Sorry, most of the comments in the hook are in french)

snipp3t hook
# -*- coding: utf-8 -*-
r"""
Hook mkdocs pour insérer le contenu de d'autres fichiers qui pourra ensuite passer par
les autres hooks MkDocs. La syntaxe est similaire au snippet `--8<--` mais avec un `3`
à la place : `---3<------`. Il s'exécute en premier…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Enn83
Comment options

@Enn83
Comment options

Answer selected by Enn83
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants