Discussions

Ask a Question
Back to All

Recipe: Duplicate Guides Across Projects. Needs Version?

Hi,

I'm looking at the recipe to duplicate guides across projects.

https://docs.readme.com/main/recipes/duplicate-guides-across-projects

I see that we need an API Key and a category slug for the source and the target projects.

But what if there are two categories with the same slug in the source project? This could happen if the categories are distinguished by version. For example, say you have a category slug called getting-started in version 1.0, and you have another category slug called getting-started in version 2.0.

In the recipe in line 8, how to you specify which version the slug applies to?

const categorySourceSlug = 'SOURCE_CATEGORY_SLUG'; //which version!?!

Thanks-- Jason