Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
changed destination of autogenerated ship api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya committed Aug 21, 2018
1 parent f049f0b commit 8b965b3
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
11 changes: 8 additions & 3 deletions hack/docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@ copy-to-help-center:
: To Copy to Help center, run the following command:
:
: make pipeline
: cp assets/* [path/to/help/center]/content/api/ship-assets/
: cp lifecycle/* [path/to/help/center]/content/api/ship-lifecycle/
: cp config/* [path/to/help/center]/content/api/ship-config/
: cp assets/* [path/to/ship-www]/content/api/ship-assets/
: cp lifecycle/* [path/to/ship-www]/content/api/ship-lifecycle/
: cp config/* [path/to/ship-www]/content/api/ship-config/

copy-to-help-center-gopath:
cp assets/* $$GOPATH/src/github.com/replicatedhq/ship-www/content/api/ship-assets/
cp lifecycle/* $$GOPATH/src/github.com/replicatedhq/ship-www/content/api/ship-lifecycle/
cp config/* $$GOPATH/src/github.com/replicatedhq/ship-www/content/api/ship-config/

copy-replicated-lint:
: To Copy to replicated lint, run the following command:
Expand Down
2 changes: 1 addition & 1 deletion hack/docs/mutations.json
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@
{
"path": "properties.lifecycle.properties.v1.items.properties.config",
"merge": {
"description": "A `config` step will present the user with a screen to customize options as defined in your top-level `config` section",
"description": "A `config` step will present the user with a screen to customize options as defined in your top-level `config` section.",
"examples": [
{}
]
Expand Down
2 changes: 1 addition & 1 deletion hack/docs/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@
"type": "object",
"properties": {
"config": {
"description": "A `config` step will present the user with a screen to customize options as defined in your top-level `config` section",
"description": "A `config` step will present the user with a screen to customize options as defined in your top-level `config` section.",
"examples": [
{}
],
Expand Down
2 changes: 1 addition & 1 deletion hack/docs/src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ${yaml.safeDump({[subgroup]: {v1: [{[specType]: example}]}})}${"```"}
function writeHeader(specTypes: any, specType, subgroup: string) {
return `---
categories:
- ship-${subgroup}
- ship-api-${subgroup}
date: 2018-01-17T23:51:55Z
description: ${specTypes[specType].description || ""}
index: docs
Expand Down
15 changes: 6 additions & 9 deletions hack/docs/src/static.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const ASSETS_INDEX_DOC = `---
categories:
- ship-assets
- ship-api-assets
date: 2018-01-17T23:51:55Z
description: Reference Documentation for defining your Ship application assets
index: docs
Expand All @@ -13,13 +13,12 @@ gradient: "purpleToPink"
## Ship Assets
This is the reference documenation for Ship assets. To get started with Ship, head on over to [Shipping a Helm Application](/guides/helm-application/)
Ship Assets are files rendered during the [render](/api/ship-lifecycle/render) lifecycle step.
`;

export const LIFECYCLE_INDEX_DOC = `---
categories:
- ship-lifecycle
- ship-api-lifecycle
date: 2018-01-17T23:51:55Z
description: Reference Documentation for defining your Ship application lifecycle
index: docs
Expand All @@ -32,13 +31,13 @@ gradient: "purpleToPink"
## Ship Lifecycle
This is the reference documenation for Ship lifecycle. To get started with Ship, head on over to [Shipping a Helm Application](/guides/helm-application/)
Ship lifecycle steps define the steps that a Ship application will proceed through.
`;

export const CONFIG_INDEX_DOC = `---
categories:
- ship-config
- ship-api-config
date: 2018-01-17T23:51:55Z
description: Reference Documentation for defining your Ship application configuration options
index: docs
Expand All @@ -51,7 +50,5 @@ gradient: "purpleToPink"
## Ship Config
This is the reference documenation for Ship config. To get started with Ship, head on over to [Shipping a Helm Application](/guides/helm-application/). The configuration options API is identical to that used for applications managed by
Replicated's scheduler suite, and the documentation can be found at [Config Screen YAML
](/docs/config-screen/config-yaml/).
This is the reference documentation for Ship config. It has unfortunately not yet been created. It is largely shared with the Replicated config described [here](https://help.replicated.com/docs/config-screen/config-yaml/).
`;

0 comments on commit 8b965b3

Please sign in to comment.