Janis S.
Janis S.

Reputation: 2626

How to go from "published code as a wiki" back to "provisioned wiki"?

Have read about differences of the two here: https://learn.microsoft.com/en-us/azure/devops/project/wiki/provisioned-vs-published-wiki?view=azure-devops.

Would like to try out code as wiki, however, want to have a backup plan in case I want to switch back to the provisioned one.

Once I have tried the "published code as wiki" does anyone know how to import the contents from a repo backup and make it "provisioned one"?

Upvotes: 2

Views: 3358

Answers (3)

bruh
bruh

Reputation: 382

To copy content from a code wiki to a provisioned wiki:

  1. Clone the new, provisioned wiki with the clone button next to the wiki's title
  2. Put the files from your old code wiki into this new repo
  3. Make a commit and push to origin

Refresh the wiki in your browser and you will see the

Upvotes: 1

Johan Bergens
Johan Bergens

Reputation: 111

As another solution said, you can unpublish the Code wiki if you want to keep the project wiki.

If you want to keep only the Code wiki then you can download the project wiki as a git repo and replace all content. After having pushed the new content you can delete the (old) Code wiki.

Editing history will be lost but that is hopefully not important to you.

Upvotes: 0

rickvdbosch
rickvdbosch

Reputation: 15621

If you have already created a project wiki and add a code wiki, the two wiki's will coexist (see screenshot):

Wikis coexist

If the Code wiki is not the way to go, you can unpublish it only leaving the project wiki in place.

If the Code wiki is the way to go, removing a provisioned (project) wiki doesn't seem to be an option in the UI. Still, there are options to Delete default project Wiki in Azure DevOps using the API.

Upvotes: 3

Related Questions