Skip to content

Instantly share code, notes, and snippets.

@mikemurray
Last active March 25, 2016 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemurray/42df62206d15a8923e9b to your computer and use it in GitHub Desktop.
Save mikemurray/42df62206d15a8923e9b to your computer and use it in GitHub Desktop.
Reaction Docs re-org structure
mkdir -p "1 Introduction"
git mv index.md "1 Introduction/index.md"
git mv admin/dashboard.md "1 Introduction/dashboard.md"
git mv admin/tags.md "1 Introduction/tags.md"
git mv admin/products.md "1 Introduction/products.md"
git mv admin/orders.md "1 Introduction/orders.md"
git mv admin/shipping.md "1 Introduction/shipping.md"
git mv admin/faq.md "1 Introduction/faqs.md"
mkdir -p "2 Developer"
git mv developer/getting-started.md "2 Developer/index.md"
git mv developer/requirements.md "2 Developer/requirements.md"
git mv developer/installation.md "2 Developer/installation.md"
git mv developer/configuration.md "2 Developer/configuration.md"
git mv developer/styleguide.md "2 Developer/styleguide.md"
git mv developer/contributing.md "2 Developer/contributing-to-reaction.md"
mkdir -p "3 Architecture"
git mv developer/architecture/overview.md "3 Architecture/index.md"
git mv developer/architecture/exports.md "3 Architecture/exports.md"
git mv developer/architecture/security.md "3 Architecture/security.md"
git mv developer/architecture/schemas.md "3 Architecture/simple-schema.md"
git mv developer/architecture/collections.md "3 Architecture/collections.md"
git mv developer/architecture/images.md "3 Architecture/image-handling.md"
git mv developer/architecture/routing.md "3 Architecture/routing.md"
git mv developer/architecture/metadata.md "3 Architecture/seo-metadata.md"
git mv developer/architecture/i18n.md "3 Architecture/i18n.md"
git mv developer/packages/registry.md "3 Architecture/registry.md"
git mv developer/architecture/permissions.md "3 Architecture/permissions.md"
git mv developer/architecture/layout.md "3 Architecture/layout.md"
git mv developer/architecture/workflow.md "3 Architecture/workflow.md"
git mv developer/architecture/logging.md "3 Architecture/logging.md"
mkdir -p "4 Themes"
git mv developer/themes/themes.md "4 Themes/index.md"
git mv developer/themes/theming.md "4 Themes/creating-a-theme-package.md"
git mv developer/themes/styling.md "4 Themes/styling-a-theme.md"
git mv developer/themes/templates.md "4 Themes/templates.md"
git mv developer/themes/helpers.md "4 Themes/template-helpers.md"
mkdir -p "5 Core"
git mv developer/core/core.md "5 Core/index.md"
git mv developer/core/accounts.md "5 Core/reaction-user-accounts.md"
git mv developer/core/alerts.md "5 Core/reaction-alerts.md"
git mv developer/core/analytics.md "5 Core/analytics.md"
git mv developer/core/shops.md "5 Core/reaction-shops.md"
git mv developer/core/products.md "5 Core/reaction-products.md"
git mv developer/core/tags.md "5 Core/reaction-tags.md"
git mv developer/core/cart.md "5 Core/reaction-cart.md"
git mv developer/core/shipping.md "5 Core/reaction-shipping.md"
git mv developer/core/payments.md "5 Core/reaction-payments.md"
git mv developer/core/orders.md "5 Core/reaction-orders.md"
git mv developer/core/import.md "5 Core/reaction-import.md"
git mv developer/core/inventory.md "5 Core/reaction-inventory.md"
git mv developer/core/localization.md "5 Core/reaction-localization.md"
git mv developer/core/hooks.md "5 Core/method-hooks.md"
git mv developer/core/collection-hooks.md "5 Core/collection-hooks.md"
mkdir -p "6 Packages"
git mv developer/packages/packages.md "6 Packages/index.md"
git mv developer/packages/registry.md "6 Packages/registry.md"
git mv developer/architecture/permissions.md "6 Packages/permissions.md"
git mv developer/architecture/layout.md "6 Packages/layout.md"
git mv developer/packages/including.md "6 Packages/including.md"
git mv developer/packages/publishing.md "6 Packages/publishing.md"
mkdir -p "7 Testing"
git mv developer/testing/testing.md "7 Testing/index.md"
git mv developer/testing/velocity.md "7 Testing/using-velocity-for-testing.md"
git mv developer/testing/acceptance_testing.md "7 Testing/acceptance-testing.md"
git mv developer/testing/factories.md "7 Testing/using-factories-for-testing.md"
git mv developer/testing/faker.md "7 Testing/using-faker-for-testing.md"
git mv developer/testing/ci.md "7 Testing/using-ci.md"
mkdir -p "8 Deploying"
git mv developer/deploying.md "8 Deploying/index.md"
git mv developer/deploying/launchdock.md "8 Deploying/deploying-on-launchdock.md"
git mv developer/deploying/mup.md "8 Deploying/deploying-reaction-with-mup.md"
git mv developer/deploying/galaxy.md "8 Deploying/deploying-reaction-on-galaxy.md"
git mv developer/deploying/docker.md "8 Deploying/deploying-reaction-using-docker.md"
git mv developer/deploying/heroku.md "8 Deploying/deploying-reaction-using-heroku.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "1 Introduction/index.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "1 Introduction/dashboard.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "1 Introduction/tags.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "1 Introduction/products.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "1 Introduction/orders.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "1 Introduction/shipping.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "1 Introduction/faqs.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "2 Developer/index.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "2 Developer/requirements.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "2 Developer/installation.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "2 Developer/configuration.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "2 Developer/styleguide.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "2 Developer/contributing-to-reaction.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/index.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/exports.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/security.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/simple-schema.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/collections.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/image-handling.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/routing.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/seo-metadata.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/i18n.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/registry.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/permissions.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/layout.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/workflow.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "3 Architecture/logging.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "4 Themes/index.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "4 Themes/creating-a-theme-package.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "4 Themes/styling-a-theme.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "4 Themes/templates.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "4 Themes/template-helpers.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/index.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-user-accounts.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-alerts.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/analytics.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-shops.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-products.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-tags.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-cart.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-shipping.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-payments.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-orders.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-import.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-inventory.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/reaction-localization.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/method-hooks.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "5 Core/collection-hooks.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "6 Packages/index.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "6 Packages/registry.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "6 Packages/permissions.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "6 Packages/layout.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "6 Packages/including.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "6 Packages/publishing.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "7 Testing/index.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "7 Testing/using-velocity-for-testing.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "7 Testing/acceptance-testing.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "7 Testing/using-factories-for-testing.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "7 Testing/using-faker-for-testing.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "7 Testing/using-ci.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "8 Deploying/index.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "8 Deploying/deploying-on-launchdock.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "8 Deploying/deploying-reaction-with-mup.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "8 Deploying/deploying-reaction-on-galaxy.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "8 Deploying/deploying-reaction-using-docker.md"
sed -i.old '1 {i\
---\
title: tocItem.label\
---\
\
}' "8 Deploying/deploying-reaction-using-heroku.md"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment