How to move/rename an existing set of documentation?
We recently renamed https://github.com/newrelic/rpm to https://github.com/newrelic/newrelic-ruby-agent AND we changed the default branch from `master` to `main`
What's the best way to move all existing documentation from:
* https://rubydoc.info/github/newrelic/rpm (master)
to:
* https://rubydoc.info/github/newrelic/newrelic-ruby-agent (main)
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by lsegal on 09 Jul, 2020 05:12 PM
Your documentation should exist at both locations and reflect the current state of each git repository. If GitHub is redirecting rpm to newrelic-ruby-agent under the hood, these two URLs will be equivalent, so there really isn't anything to "move" per se.
If URL redirection is what you're looking for, this is something you probably want to do in your own URL links. Unfortunately, RubyDoc doesn't handle redirections for old repositories.
2 Posted by mlang on 09 Jul, 2020 07:54 PM
Ok, allowing the links to live for both the old repo name and new is good enough as github.com will redirect the old links to the new links.
3 Posted by mlang on 09 Jul, 2020 07:54 PM
Do we need to add the repository again with it's new name or is that automatic?
Support Staff 4 Posted by lsegal on 09 Jul, 2020 07:55 PM
You certainly would, but it looks like it's already setup: https://rubydoc.info/github/newrelic/newrelic-ruby-agent
5 Posted by mlang on 09 Jul, 2020 11:45 PM
Wow, that's amazing! Gotta love Ruby and the folks building tools that
Just Works(tm) with it!
Michael
Support Staff 6 Posted by lsegal on 10 Jul, 2020 12:35 AM
💪🏻🤘🏻🙏🏻
No thank you!
lsegal closed this discussion on 10 Jul, 2020 12:35 AM.