I have a question on using the AsciiDoc include directives in Quick Docs.
I’m working on Quick Docs issue #189, Setting a key shortcut to run an application in Gnome.
Looking at the issue, I agree with the comment from grumpey that the Quick Doc in question should be merged with Managing keyboard shortcuts for running an application in GNOME. This document is a little out of date and needs new screenshots, but is otherwise OK.
As I’m looking at the relevant .adoc file, I notice that it uses a number of include:: lines:
include::{partialsdir}/proc_adding-shortcut-custom-app-gnome.adoc[]
include::{partialsdir}/proc_disabling-shortcut-custom-app-gnome.adoc[]
Looking through a number of other .adoc files in that directory, I see that about half of them use include directives while the rest just have the content in the topic.
Question: is using theinclude directive recommended, or was that just a choice made by the original authors? Can I pull the content referenced in the include directives into the main .adoc file?
Further context, since there is a higher-level discussion going on about onboarding new contributors: if I were someone trying to contribute to a topic in Quick Docs and came across a file full of include::{partialsdir} lines I wouldn’t really know how to proceed. I think using include directives for general body content in a topic makes it difficult for people to contribute.
Speaking as a professional technical writer, I would also say that using an include for body content isn’t what they’re for. Something like an include directive is designed for something like an admonition that has to be included on multiple pages or a short snippet of code, not for paragraphs of content in a topic.
Let me know what everyone thinks. I like the idea of includes (I use them quite often in my day job, where they’re called snippets), but I don’t think they’re being used correctly here, at least not in a lot of cases.