Replies: 2 comments 2 replies
-
We might want to enumerate more specific existing (or even hypothetical) maintenance issues that we intend to hedge against (ideally other than "too much scrolling", because that just redistributes the same problem from a single file across many discrete files - i.e., what was a search problem becomes a selection+search problem, even with reasonably good classification). For the sake of discussion, as a counter-point, I can imagine that - if split into many documents - it could become harder to find/refer to guidance across the docs that make up the guide. E.g., instead of "Where was that in this doc again? One related thing that I've been thinking about is generating a static site ( |
Beta Was this translation helpful? Give feedback.
-
Also, one obvious organization could just be splitting each of the existing top-level bullets into their own docs, e.g.:
That's at least simple enough that where to find/place guidance becomes (relatively) unambiguous, and probably doesn't add any noticeable maintenance overhead. |
Beta Was this translation helpful? Give feedback.
-
EDIT(2022-03-03): The style guide is now split into multiple files and merged back into a single file with tooling to ensure existing links continue to work.
style.md is a massive Markdown file. It'll only get bigger.
I'm opening this to discuss the possibility of breaking it up into multiple, more maintainable files.
Requirements:
#
) instead of 3-level deep (###
).Prior work:
include
directives to import code samples and other asciidoc files, and asciidoc-reducer reduces them into a single file. This includes a "leveloffset" option, which offsets header levels of included files. But this requires writing asciidoc instead of Markdown, which, even if I could sell a new markup format, would rename style.md to style.adoc and break all links. That makes it a non-option.Proposal:
I don't have a solution to suggest yet, but what I think we want is:
Something that lets us specify a root Markdown file or configuration file that
references other Markdown files in-order.
If the root file is a Markdown file, we'll need a custom "include" directive.
This may automatically increment header levels based on the current section
or accept an argument specifying the offset like asciidoc.
If the root file is a configuration file, this isn't required because we likely have more freedom on the format.
The thing that consumes the root file may also optionally generate a TOC
depending on how much we want that feature.
But most importantly, it generates a final Markdown file that gets written out over our existing style.md.
That ensures that existing links to style.md continue to work,
and also lets us preview the result when we publish PRs.
(We could add a CI check to ensure the file is up-to-date,
or have the workflow update the file when the PR is created.)
Anyway, as I said, this isn't a concrete proposal yet.
Just gathering opinions and looking for input on both
whether this is a good idea, and how we might want to go about it.
Beta Was this translation helpful? Give feedback.
All reactions