Closed akeller closed 2 years ago
The first two items were taken care of in #1281.
@pepopowitz do you have a separate issue for your Optimize work or is it reflected in #1116?
It is in #1116!
Add documentation clarifying our multi-instance setup.
But this is better defined & I'm going to link to it from #1116.
Sharing some findings about what it takes to do a release with our new multi-instance setup, for posterity but also in hopes of coming to a conclusion on one of them:
sidebars.js
and optimize_sidebars.js
to remove /next
from the helper at the top of each file.
npm run docusaurus docs:version 8.1
npm run docusaurus docs:version:optimize 3.9.0
expandVersionedUrl
so that mappings are all correct
8.1:3.9.0
), it'll be easier, and we can just generate all the mappings in expandVersionedUrl
from that. It would also remove the need to update tests.npm run cutVersions 8.1 3.9.0
and it would edit all the URLs in the previous-version-sidebars/previous-version-optimize_sidebars. @akeller it's this last step, 5, where I start to worry about the slippery slope. I personally think it would be valuable to have a script to do this all for us, because when I win the lottery I don't want others to have to do this all manually. But, we can cut new versions without scripting anything, if we want to do the manual work. Do you have any thoughts on the value of me trying to capture this process in a single script vs just documenting all the manual steps?
oh, and then there's htaccess rules. I didn't account for that here, but I suspect we'll need to add some for some URLs that have moved in the new version. I anticipate tracking these down to be easiest after we push up the initial PR to cut new versions. Let CI find them for us!
because when I win the lottery I don't want others to have to do this all manually
The amount of empathy in this statement! 💞
Thank you for this great summary of the steps and overall situation. I think the 2nd line in step 2 was what I was trying to communicate this morning but saying (or asking) poorly. It looks like we cut a release for C8 AND we cut a release, separately for Optimize.
As I feel like I've been asking more often recently, how big is this or about how long do you think it would take to script? From my perspective, this looks annoying to do manually and we know we'll need to do it at least twice a year (October and April). Could you script this between now and Oct 10 and feel confident to run it then? If not, let's agree to manual now and planning to script it in the future (and also not let you win the lottery). This would mean it would be required work in Q1.
Which leads me to my next question, would you be able to ignore this (the scripting aspect) between now and Q1? Or would it keep you up at night?
The amount of empathy in this statement! 💞
😂
Given your response was not "omg steve stop wasting your time," I feel good moving forward with trying to automate this process as much as possible for this upcoming release.
🟢 let's gooooooooo 🚀
Documentation now supports continuously releasing components and components with two different versioning strategies or paths. We should update the docs for both release procedures: