Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unversioning some documentation guides #68

Closed
samccann opened this issue Feb 22, 2022 · 6 comments
Closed

unversioning some documentation guides #68

samccann opened this issue Feb 22, 2022 · 6 comments

Comments

@samccann
Copy link

Summary

Problem

Today, we have multiple files that we only maintain in /devel/. Historically, we had problems keeping these files up to date in other branches (latest and older). The docs team chose to publish the following pages only to devel and put a stub page up in latest and earlier releases to point to devel:

While this has worked well to keep the relevant docs current, it can be a cause of confusion. One recent reader was confused that we were pointing them to a devel page which has the banner that says this is not a guaranteed stable branch.

We have another set of guides (the community and contributor guides) that are getting a significant overhaul in devel. These guides are not specific to any release (core or Ansible package), but because we publish only to versioned urls, we force these guides to be 'versioned'.

Possible Solutions

Three solutions come to mind:

1. Publish only to devel only.

This would follow the process we use forthe other unversioned pages and stub out earlier releases to say 'go to devel'.

pros
Simple, no backports required. Works well for pages that update frequently (which these guides are at the moment).

cons
Same confusion for readers - Can they trust a docs page that says 'not guaranteed stable'? We currently have no way to modify
the banner per html page.

2. Publish as versioned

This would publish the guides to devel and require 'someone' to track all updates in devel and backport to current releases.

pros
The doc version that gets the most traffic (latest) with have up todate information.

cons
This didn't work the last time we tried keeping things in sync and we had more people involved to help at that point. If we choose this option, then the docs lead will have to spend more time managing backports and less time on anything else.

Time estimate: 2-4 hrs a week depending on level of changes to affected pages.

3. Create an unversioned docsite and publish there

This option would create, for example, docs.ansible.com/community.index and publish community guides there.

pros
Publishes what they really are - guides not tied to any release.

cons
Search will not currently work to find 'contributor guide' content on docs.ansible.com/ansible. We could keep a stub page on the left-hand navigation to direct readers where to find information on contributing to Ansible. That is a partial help in that the reader still sees a 'contributing' section in the left-hand navigation. But the search problem remains. If for example the reader searches 'ansible on matrix' to find out where we chat, they would not get any result because that information is now on docs.ansible.com/community.

@acozine
Copy link
Contributor

acozine commented Feb 22, 2022

If we moved the source files (the .rst files) for this specific content into a separate repo (maybe something like ansible/unversioned_docs), could we pull them in on the latest build using code in antsibull? This would solve the problem of users being scared off by the "not stable" warnings without forcing a bunch of backports.

@mariolenz
Copy link
Contributor

mariolenz commented Feb 25, 2022

One recent reader was confused that we were pointing them to a devel page which has the banner that says this is not a guaranteed stable branch.

Make this two. I'm also confused about this. I always think: Does this really apply to the stable version I'm using at the moment? After all, there might be something different difference in devel. It's a bit irritating.

@felixfontein
Copy link
Contributor

One downside of "publish to devel only" is that for every stable branch creation, you have to 'clean up' the newly created branch by removing copies of these documents, and instead replace them with documents pointing to devel. The other approaches do not have this problem.

I'm somewhat tending to 3 (unversioned docsite), and I would definitely have references to it (and stubs) in both devel and stable docs.

@felixfontein
Copy link
Contributor

If we moved the source files (the .rst files) for this specific content into a separate repo (maybe something like ansible/unversioned_docs), could we pull them in on the latest build using code in antsibull? This would solve the problem of users being scared off by the "not stable" warnings without forcing a bunch of backports.

I don't think antsibull should (or needs to) be involved in this. This should be done as part of the ansible docs build by code in https://github.com/ansible/ansible/tree/devel/hacking/build_library/build_ansible/command_plugins (if actual code is needed).

@felixfontein
Copy link
Contributor

For 'publish as versioned': here a bot could help that automatically creates PRs once the copy of these files in stable branches no longer matches the one in devel (and pings the docs team). Not sure who wants to write and maintain such a bot, though :)

@samccann
Copy link
Author

Closing this one - I've been keeping latest/devel in sync for the past couple of releases so the 'devel only' docs confusion is gone now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants