Skip to content

Commit

Permalink
Moved 'clientid' articles into connections. Moved a few appliance art…
Browse files Browse the repository at this point in the history
…icles.
  • Loading branch information
Nathan Totten committed May 26, 2015
1 parent 99f0845 commit e8df161
Show file tree
Hide file tree
Showing 39 changed files with 156 additions and 6 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion articles/appliance.md → articles/appliance/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ In this section:

- [Configuring time synchronization](@@env.BASE_URL@@/appliance/clock)
- [Updating an Auth0 cluster](@@env.BASE_URL@@/appliance/update)
- [Checking integrity of an update package](@@env.BASE_URL@@/checksum)
- [Checking integrity of an update package](@@env.BASE_URL@@/appliance/checksum)
- [Auth0 Proxy Updater](@@env.BASE_URL@@/appliance/proxy-updater)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
146 changes: 145 additions & 1 deletion redirect-urls.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,5 +150,149 @@
{
"from": "/sharepoint-apps",
"to": "/integrations/sharepoint-apps"
},
{
"from": "/ad",
"to": "/connections/ad"
},
{
"from": "/adfs",
"to": "/connections/adfs"
},
{
"from": "/37signals-clientid",
"to": "/connections/37signals"
},
{
"from": "/amazon-clientid",
"to": "/connections/amazon"
},
{
"from": "/aol-clientid",
"to": "/connections/aol"
},
{
"from": "/dwolla-clientid",
"to": "/connections/dwolla"
},
{
"from": "/baidu-clientid",
"to": "/connections/baidu"
},
{
"from": "/box-clientid",
"to": "/connections/box"
},
{
"from": "/evernote-clientid",
"to": "/connections/evernote"
},
{
"from": "/exact-clientid",
"to": "/connections/exact"
},
{
"from": "/facebook-clientid",
"to": "/connections/facebook"
},
{
"from": "/fitbit-clientid",
"to": "/connections/fitbit"
},
{
"from": "/github-clientid",
"to": "/connections/github"
},
{
"from": "/goodreads-clientid",
"to": "/connections/goodreads"
},
{
"from": "/goog-clientid",
"to": "/connections/google"
},
{
"from": "/miicard-clientid",
"to": "/connections/miicard"
},
{
"from": "/ms-account-clientid",
"to": "/connections/microsoft-account"
},
{
"from": "/o365-clientid",
"to": "/connections/o365-deprecated"
},
{
"from": "/paypal-clientid",
"to": "/connections/paypal"
},
{
"from": "/planningcenter-clientid",
"to": "/connections/planning-center"
},
{
"from": "/salesforce-clientid",
"to": "/connections/salesforce"
},
{
"from": "/renren-clientid",
"to": "/connections/renren"
},
{
"from": "/sharepoint-clientid",
"to": "/connections/sharepoint-online"
},
{
"from": "/shopify-clientid",
"to": "/connections/shopify"
},
{
"from": "/soundcloud-clientid",
"to": "/connections/soundcloud"
},
{
"from": "/thecity-clientid",
"to": "/connections/thecity"
},
{
"from": "/twitter-clientid",
"to": "/connections/twitter"
},
{
"from": "/vkontakte-clientid",
"to": "/connections/vkontakte"
},
{
"from": "/waad-clientid",
"to": "/connections/azure-active-directory"
},
{
"from": "/weibo-clientid",
"to": "/connections/weibo"
},
{
"from": "/wordpress-clientid",
"to": "/connections/wordpress"
},
{
"from": "/yahoo-clientid",
"to": "/connections/yahoo"
},
{
"from": "/yandex-clientid",
"to": "/connections/yandex"
},
{
"from": "/instagram-clientid",
"to": "/connections/instagram"
},
{
"from": "/linkedin-clientid",
"to": "/connections/linkedin"
},
{
"from": "/checksum",
"to": "/appliance/checksum"
}
]
]
14 changes: 10 additions & 4 deletions tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@ program
.version('0.0.1')


.command('mv <oldPath> <newPath>')
.action(function (oldPath, newPath) {
.command('mv <oldUrl> <newUrl>')
.action(function (oldUrl, newUrl) {
if (oldUrl[0] !== '/') {
oldUrl = '/' + oldUrl;
}
if (newUrl[0] !== '/') {
newUrl = '/' + newUrl;
}
var oldPath = 'articles' + oldUrl + '.md';
var newPath = 'articles' + newUrl + '.md';
fs.rename(oldPath, newPath, function(err) {
if (err) { return console.error(err); }

var oldUrl = oldPath.replace('articles', '').replace('.md', '');
var newUrl = newPath.replace('articles', '').replace('.md', '');
addRedirect(oldUrl, newUrl, function(err) {
if (err) { return console.error(err); }

Expand Down

0 comments on commit e8df161

Please sign in to comment.