Decide what to do about module inclusion #66
Labels
No labels
Contributors' Guidance
Improve written Material
Contributors' Guidance
technical support measures
effort
high
effort
low
effort
medium
good first issue
help wanted
meeting topic
needs changes
needs reporter feedback
needs review
needs vote
priority
high
priority
low
priority
medium
priority
on hold
type/content
type/misc
No milestone
No project
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
docs/tickets#66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
One of our long-term wishlist things is that we would like to be able to take modules from various repositories and turn them into one document. That is, have two or more modules displayed in one place, with their respective tables of contents (their
nav.adocs) one after the other.To give a more specific example, the Security SIG has a
docsrepository that they're currently splitting in two modules. One module is for their team docs - contact info, members, procedures, etc., and the other is for security-related user docs which they would like to maintain. The idea is to put the team docs module into its own place (say, under "Engineering" on the frontpage), and the user-facing docs in another (into Quick Docs, or maybe a separate place altogether - it doesn't matter where exactly).This is a problem. In order to put two modules into one place, the component name, as defined in
antora.yml, has to be the same, and module names have to be unique. There's no way to pull together modules from different components. But pretty much all of our current repositories have different component names at the moment - and those are part of the generated URLs, so we can't easily change them, that would break a bunch of links both within Fedora docs and anywhere else (e.g. various forums). We can fix that with page aliases, but there are hundreds of pages across all the repos, so we'd have to find a way to automate that.We've previously treated every repository as its own thing, more or less completely self-contained, so this wasn't an issue. However, if we want to mix and match modules from various repos, we have no choice but to put them all under the same component. I have opened this issue so that we can decide whether we want to do that.
Here are our choices:
We proceed to bring every repo under the same component
docsbuilder, Antora doesn't see the others, so it can't detect a duplicate name. We would have to enforce some sort of a naming standard.securityandfescoand so on. If we replace those with a single name, we can just move that to module names -security-*.We keep going as we have been, and treat every repo as a separate, self-contained entity
Yeah, this is confusing as hell. Ask any questions in the comments :)
Taking some time to think about this, because it is a huge task. Not as huge as Forgejo migration, but it is not that far off in terms of labor involved. Automation would be key for making this tenable.
One thing that is super clear to me now is that we would need to do advance communications for docs site owners, and ideally have a "beta" period where teams could opt into the transition with extra support from the Docs Team. This way, we can try and incentivize everyone to gradually move over in batches, and not all at once to overwhelm us with a lot of changes at once.
I understand the proposal, but I'm not sure I fully understand the problem we're solving.
AIUI, discoverability and content reuse are the main goals. On the discoverability side, what is the problem? Are people not navigating via the front page because of the site structure, or something else? And on content reuse, do we actually need to place the same module in multiple nav sections, or is that just a nice-to-have?
The component merge will break many URLs and require page aliases or other redirects. Can we look at whether a custom Antora extension could pull nav from multiple components without the URL migration? Or whether the UI bundle can be modified to show or hide nav conditionally? Can we improve the starting page in a way to better organize the content for discoverability?
@hricky wrote in #66 (comment):
Well - we've been operating without doing this since about 2018 (and the old site couldn't do anything like this either for that matter), so we don't outright need to do this. But we really should, because it's way more flexible.
As for the problem it's solving: It allows multiple separate teams/SIGs to maintain content that's displayed as a single "unit". So on the maintenance side, the various teams get to keep their separate repos, in their own Forge orgs, with their own issue trackers, permission setups, etc. - and the user gets to see everything in one place, which is especially important for those who arrive on our site by following a link (whether it's from a search engine or, say, a forum post). Those users get to see a wider part of our content, while previously they'd have to go a level or two up and browse the front page, which most people won't.
Also, there's been an idea proposed before to create a "phonebook" of all SIGs' contact info. So each SIG would have a "team info" module in their docs repo (our docs already have that and Security will soon, too), or a separate repo (Server does this), and then we could grab them all and display them one after the other in the same ToC, while each SIG keeps full control over what's in their own section.
I'm not sure if an extension or the UI bundle could do this, but I'm open to exploring those possibilities. As for the starting page, see above - this will be more helpful for those who arrive via links and might never see the frontpage.
Sounds reasonable to me. Should we merge all current components into one single component, or will we still have several different ones? Also, as Justin mentioned, we should probably do this gradually. We can also test this in our staging org and docs/docs-fp-o#61 would help us to do so.
I think it's best to just put everything under one component, like
fedoraordocs, since it's future-proof. I'd rather not have to do this twice.We'll definitely test it on stage first.
In the interest of being clear and not getting mixed up with other docs projects from other communities, I'd prefer a component name of
fedora. But… this is totally a bike-shed.I'm interested to see how this pans out. I do not have a lot of time to actively look into the Antora site config for doing it, but I can help out on the several Fedora docs repos I contribute to.
Actually, I believe it's possible to set the component to
ROOTand have it dropped from the URL completely - same way it works with modules: https://docs.antora.org/antora/latest/how-antora-builds-urls/#componentThat would probably be ideal, because we already have the keywords "docs" and "fedora" in the domain anyway so there's no need to repeat them, and dropping the component name would make URLs shorter which is kinda nice. Need to test it though.
(Edit: Yes, setting the component to
ROOTworks as expected.)Discussed at the Fedora Docs meeting on Oct 6 2026: https://discussion.fedoraproject.org/t/fedora-docs-team-meeting-2026-10-06/202633/2
Before we proceed, @hricky wants to set up a separate builder repo on the staging Forge so we can test everything there, and move the
stgbranch from its current location in https://forge.fedoraproject.org/docs/docs-fp-o/ to it. After that we can try moving some small repos first and continue from there.@pbokoc wrote in #66 (comment):
+1
Additional note: Turns out you can't have different versions set up in configs either if you want to display modules together. This is fine, the only repo that makes use of different versions is
release-notes, but we'll have to get rid of it there as well. (And alsorelease-docs-home, that uses it because relnotes do.)Honestly, the way we've been doing relnotes is kinda silly anyway, it's a holdover from the Ancient Times when we had a bunch of separately published guides for each release. I propose to move everything to
mainand keeping each release in a separate topic (module subdirectory). That way we can display relnotes for all versions in the same ToC, and just add a new entry there for the newest release. Plenty of other projects do that and it's easy to navigate.Discussed at the 2026-11-03 team meeting: https://discussion.fedoraproject.org/t/fedora-docs-team-meeting-2026-11-03/206179/2
Consensus is to move all relnotes to main and preserve only the last 3 releases. Older stuff is on the Internet Archive if anyone needs it.
The AI/ML SIG would like to opt in as an early adopter of this migration. I opened a pull request with our proposed restructure: ai-ml/docs#11, and I would appreciate feedback, especially from @pbokoc and @hricky.
We changed our component name to
ROOTand split into seven modules:ai-ml(a theme landing page at/en-US/ai-ml/, see below),ai-ml-sig(team info, a "phonebook"-ready unit), and fiveai-ml-*focus modules that can each be included in a cross-SIG ToC individually. The landing page is a new pattern we would like feedback on: awithout_menupage curating AI/ML content across Fedora Docs, modeled on the Engineering page but maintained by the SIG in our own repo. It keeps/en-US/ai-ml/live as a discovery point; the SIG's own pages moved to/ai-ml-sig/, and every moved page carries:page-aliases:so all previously published URLs redirect.Questions before we merge:
ai-ml,ai-ml-sig,ai-ml-*) acceptable, and is there a naming standard to align with?title:andstart_page:values resolve when many repos share componentROOT?version: ~the uniform value for the merged component?We are treating the pull request as do-not-merge until there is a go-ahead here, and we are happy to test on the staging builder once it is ready (docs/site-builder#61).
LLM-gen-AI was used to draft this content, reviewed by @jflory7.
@jflory7 thank you for opening the AI/ML pull request and for volunteering as an early adopter. Before any repo moves to the
ROOTcomponent, I would like the team to look at an alternative that does not need the component merge.I tested an Antora extension that builds a table of contents from modules of different components. Each page shows the navigation of the group that its module belongs to. Component names, URLs and repos stay as they are, so we need no page aliases or redirects, and teams do not have to restructure their repos.
The test build uses real repos, including ai-ml/docs
mainwithout any change. It has the two tables of contents that Petr described: a team directory (team modules such asai-ml:ROOT,fedora:security-teamanddesign:ROOT) and a general user guide (user modules such asai-ml:users,ai-ml:desktopandfedora:security-topics, plus the Design Suite as a module ofdesign, see docs/tickets#68). The module lists are only examples. Petr looked at it and said in the Docs Matrix room that this is what he would like to see.To try it locally:
Then open http://localhost:8080/en-US/ and start with the team directory and user guide pages, which explain the setup.
The image is only for this test and is temporary. Quay will delete it on 2026-12-01, so the command above will not work after that date.
Open points: we still need to decide which modules go into which table of contents. The heading above the navigation still shows the component title, which needs a UI bundle change. The extension is a prototype and has not been tested on staging. The combined navigation only appears in the full site build, not in a team's local preview.
With this approach, most of Justin's questions do not come up, because
title,start_pageandversionstay per repo, and modules of one component stay together under one heading in a combined table of contents.I suggest that we decide between the component merge and the extension in this issue.
LLM was used to draft this content, reviewed by @hricky.
To make the choice clearer: the AI/ML pull request and the test site are two different ways to get the same navigation, and we only need one of them.
Way 1, the component merge (ai-ml/docs!11): every docs repo changes its component name to
ROOT, renames its modules, and adds page aliases, because the URLs change. Each team has to do this in its own repo.Way 2, the Antora extension (the test site): no docs repo changes anything. Component names, module names and URLs stay the same. The site builder configuration lists which modules go into which table of contents.
The test site was built with ai-ml/docs
mainas it is today, without the pull request. So the result you see there does not need the component merge.LLM was used to draft this content, reviewed by @hricky.