Normalise parts of the guides to be included#50
Normalise parts of the guides to be included#50MshBidb wants to merge 5 commits intoup-n-atom:mainfrom
Conversation
…n and ensure that changes are not missed from one page to another when they should be equal.
|
We're already using the snippets extension so there is no reason to add another hard dependency with the includes plugin https://squidfunk.github.io/mkdocs-material/setup/extensions/python-markdown-extensions/#snippets https://facelessuser.github.io/pymdown-extensions/extensions/snippets/ It has the ability to embed sections so we could just create a monolithic template.md and import the specific sections. I'd also prefer the frontmatter to simply be Also there is already a shared asset folder in the posts directory |
This does not expand the ONT name any more.
|
I have addressed the comments. The new Now the bigger issue is that the ont from the including files frontmatter will not expand. But I think it may be okay to just remove that entirely? |
|
The macro plugin in |
|
That was intentionally removed, but doesn't help even if it's re-enabled. It seems that the prohibitive part of this setup is when we include specific sections. Variables would expand correctly with the following, but we lose the "monolith" include that you're after. This is likely solveable if you don't mind a bit of Python being included? which is possible using the macros plugin |
|
We had that before. I pretty much want to keep it as vanilla as possible, just easier to reword. |
docs/posts/shared-assets/template.md
Outdated
| # --8<-- [start:install-8311] | ||
| ## Install the 8311 community firmware | ||
|
|
||
| As a prerequisite to masquerading as the {{ page.meta.ont }}, is recommended and required for the remainder |
There was a problem hiding this comment.
lost "the 8311 community firmware is recommended..."
There was a problem hiding this comment.
Good catch, fixed by a384997 and I've double checked all the others against main
…nce to the ONT that we're masquerading.
I noticed when going to add a new guide that the same content is reused quite a bit, and some of it was slightly different (which I don't think was intentional).
This PR is an attempt to form some normality between the guides by including common segments.
I was not 100% sure where to put the reused segments, but feel
assets/common/is appropriate.There is one issue I noticed, which is around the footnote for the LC connector documentation on the Hub 5x; but since this segment is only used on a single page, it's probably okay to deal with that later when it's reused.