Skip to content

Wiki_NewVersion_Migration

Stefano Balietti edited this page Oct 21, 2021 · 6 revisions

Migration steps.

This page is for nodeGame wiki's administrators.

Steps

Assuming we are migrating from v5 to v6.

  • Copy folder v5 to v6.
  • Commit now, and after each command below.
  • Inside v6 executes the following commands:
## TODO check assets/ folder

# Replace all instances of vx with vy inside files.
# Important! Inside v6/ otherwise git indexes are corrupted.
find . -type f -not -path "./images/*" -exec sed -i 's/v5/v6/g' {} +

## This replaces also
find . -type f -not -path "./images/*" -exec sed -i 's/6./7./g' {} +

## Double checks images are fine.

## Does not work?
## Replace all instances of v5 with v6 in file names.
find . -name '*v5.md' -type f -exec bash -c 'git mv "$1" "${1/v5/v6}"' -- {} \;
  • Make a copy of old Home.md to Home-v5.md

  • Rename links in top level files (such as Home.md)

  • Make migration, and new feature page (include contributors) page in v6.

  • Check images in assets folder

  • Check versions different from 5.x (e.g., 5.6+ in some recently added widgets)

Clone this wiki locally