remove platform docs

This commit is contained in:
Austen Collins 2019-01-15 22:21:14 -08:00
parent 121a2ffbf2
commit 4aa14aaaba
No known key found for this signature in database
GPG Key ID: 634961027E62C1CC
6 changed files with 20 additions and 117 deletions

View File

@ -43,23 +43,25 @@ const invocationId = uuid.v4();
return serverless.init()
.then(() => serverless.run())
.then(() => process.exit(0))
.catch((e) => {
if (serverless.service.deployment && serverless.service.deployment.deploymentId) {
const deploymentData = {
tenant: serverless.service.deployment.tenant,
app: serverless.service.deployment.app,
serviceName: serverless.service.deployment.serviceName,
deploymentId: serverless.service.deployment.deploymentId,
accessKey: serverless.service.deployment.accessKey,
};
deploymentData.status = 'Failed';
return platform.updateDeployment(deploymentData)
.then(() => {
throw e;
});
}
throw e;
});
.catch((err) => {
// If Enterprise Plugin, capture error
let enterpriseErrorHandler = null;
serverless.pluginManager.plugins.forEach((p) => {
if (p.enterprise && p.enterprise.errorHandler) {
enterpriseErrorHandler = p.enterprise.errorHandler;
}
});
if (!enterpriseErrorHandler) { throw err; }
return enterpriseErrorHandler(err, invocationId)
.catch((error) => {
// if (process.env.SLS_DEBUG) {
console.log(error)
// }
})
.then(() => {
throw err
});
})
}).catch(e => {
process.exitCode = 1;
logError(e);

View File

@ -3,7 +3,6 @@ title: Serverless Framework Documentation
menuText: Docs
layout: Doc
menuItems:
- {menuText: Getting Started, path: /framework/docs/getting-started/}
- {menuText: Providers, path: /framework/docs/providers}
- {menuText: "- AWS", path: /framework/docs/providers/aws/}
- {menuText: "- Azure", path: /framework/docs/providers/azure/}
@ -13,6 +12,7 @@ menuItems:
- {menuText: "- Kubeless" , path: /framework/docs/providers/kubeless/}
- {menuText: "- Spotinst" , path: /framework/docs/providers/spotinst/}
- {menuText: "- Cloudflare" , path: /framework/docs/providers/cloudflare/}
- {menuText: Enterprise, path: https://www.github.com/serverless/enterprise}
-->
<!-- DOCS-SITE-LINK:START automatically generated -->

View File

@ -1,31 +0,0 @@
<!--
title: Serverless - Platform Documentation
menuText: Platform
layout: Doc
menuItems:
- {menuText: emit, path: /framework/docs/platform/commands/emit/}
- {menuText: login, path: /framework/docs/platform/commands/login/}
- {menuText: logout, path: /framework/docs/platform/commands/logout/}
- {menuText: run, path: /framework/docs/platform/commands/run/}
-->
<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/platform)
<!-- DOCS-SITE-LINK:END -->
# Serverless Platform (Beta)
The Serverless Platform is currently in experimental beta. If you'd like to participate in the beta, please refer to the [full platform docs.](https://github.com/serverless/platform)
## Beta CLI Commands
Logging in to the platform enables access to beta features of the Serverless framework.
### [`serverless emit`](./commands/emit.md)
Emit an event to an event-gateway.
### [`serverless login`](./commands/login.md)
Register or log in to the platform.
### [`serverless logout`](./commands/logout.md)
Logout of the platform.

View File

@ -1,20 +0,0 @@
<!--
title: Serverless - Platform Documentation
menuText: commands
layout: Doc
-->
<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/platform)
<!-- DOCS-SITE-LINK:END -->
## Beta CLI Commands
Logging in to the platform enables access to beta features of the Serverless framework.
### [`serverless login`](./login.md)
Register or log in to the platform.
### [`serverless logout`](./logout.md)
Logout of the platform.

View File

@ -1,26 +0,0 @@
<!--
title: Serverless Framework Commands - Login
menuText: login
menuOrder: 11
description: Login to the serverless platform
layout: Doc
-->
<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/platform/commands/login)
<!-- DOCS-SITE-LINK:END -->
# Login
The `login` command logs users into the serverless platform.
It will create a new serverless platform account if one doesn't already exist.
*This command opens a browser window*
```bash
serverless login
# Shorthand
sls login
```

View File

@ -1,22 +0,0 @@
<!--
title: Serverless Framework Commands - Logout
menuText: logout
menuOrder: 11
description: Logout to the serverless platform
layout: Doc
-->
<!-- DOCS-SITE-LINK:START automatically generated -->
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/platform/commands/logout)
<!-- DOCS-SITE-LINK:END -->
# Logout
The `logout` command logs users out the serverless platform.
```bash
serverless logout
# Shorthand
sls logout
```