Is there a use case for an mkdocs-based solution separate from the govuk-eventy-plugin? #56
Replies: 4 comments 7 replies
-
I do like mkdocs-tech-docs-template, and have used it for a few projects, and have now briefly tried https://github.com/x-govuk/govuk-eleventy-plugin for one project
But... as it stands, I do think the gov uk eleventy plugin is better, exactly for this reason. mkdocs-tech-docs-template is built on Material Design, so I do now fear there will be long term pain trying to bolt on bits of the GOV.UK design system - sort-of-but-never-quite-matching, both purely aesthetically and in terms of visual and non-visual accessibility. There is a downside as you say...
But my instinct is that avoiding this downside isn't worth it. Perhaps if this project were to move away from being based on Material Design and being raw mkdocs + the GOV.UK design system, then this project may be better for a lot of cases. I also suspect there must be a way of extracting python docstrings and publishing jupyter notebooks from eleventy. Admittedly I haven't tried to, but I think for my purposes, even if it is essentially impossible within any reasonable amount of time, I would just... not do that, but still use eleventy for docs. Or at worse, extract things manually and incorporate them into docs just as raw HTML - which from brief testing is supported by eleventy.
In summary... I think using eleventy and exploring how to integrate any custom bits is probably the easiest way to get nice documentation that's consistent with the GOV.UK design system. If really Javascript has to be avoided - then I think the alternative long term plan would be to move this project to just being built on raw mkdocs without the material design bit - an mkdocs port of the eleventy plugin if you will. But - this is probably a fair amount of work. Maybe to only be started if it does look end up especially tricky to do the Python bits from eleventy? |
Beta Was this translation helpful? Give feedback.
-
I think it's still useful to have |
Beta Was this translation helpful? Give feedback.
-
I'm a little in two minds here. One the one hand, the advantages of our mkdocs package over eleventy (particularly for tech docs authors) are pretty substantial as Gwion and Soumaya have outlined. I think if your main focus is on writing documentation, rather than making A Website, mkdocs is pretty clearly superior. On the other, the limited alignment with the Gov.uk design system does make me concerned that it would always be considered a second-class system in the Gov.uk ecosystem. (not to mention relevant xkcd) |
Beta Was this translation helpful? Give feedback.
-
I think there's a few questions we need to answer:
|
Beta Was this translation helpful? Give feedback.
-
There is a community-managed eleventy plugin for creating technical documentation with a gov.uk design:
https://github.com/x-govuk/govuk-eleventy-plugin
This uses the govuk front-end and various other govuk artefacts which means it's more likely to meet accessibility standards and easier to keep up with gov.uk design standards.
On the other hand:
Should we maintain a mkdocs-based documentation tool separate from the eleventy plugin or should we use the eleventy plugin and build custom tools to support pythonic and/or analytical requirements?
Beta Was this translation helpful? Give feedback.
All reactions