Skip to content

Commit

Permalink
fix doc links to point to new ones (#4009)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Nov 21, 2023
1 parent d24cfaf commit 5aabc1b
Show file tree
Hide file tree
Showing 4 changed files with 376 additions and 341 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,10 @@ const CreateApp: React.FC<CreateAppProps> = ({ history }) => {
const onSubmit = handleSubmit(async (data) => {
try {
setDeployError("");
const { validatedAppProto, variables, secrets } =
await validateApp(data, currentProject?.beta_features_enabled);
const { validatedAppProto, variables, secrets } = await validateApp(
data,
currentProject?.beta_features_enabled
);
setValidatedAppProto(validatedAppProto);
setFinalizedAppEnv({ variables, secrets });

Expand Down Expand Up @@ -596,7 +598,7 @@ const CreateApp: React.FC<CreateAppProps> = ({ history }) => {
<Spacer inline width="5px" />
<Link
hasunderline
to="https://docs.porter.run/standard/deploying-applications/overview"
to="https://docs.porter.run/deploy/overview"
target="_blank"
>
Learn more
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import { Controller, useFormContext } from "react-hook-form";

import Checkbox from "components/porter/Checkbox";
import Container from "components/porter/Container";
import { ControlledInput } from "components/porter/ControlledInput";
import Spacer from "components/porter/Spacer";
import Text from "components/porter/Text";
Expand All @@ -21,18 +22,20 @@ const Health: React.FC<HealthProps> = ({ index }) => {
return (
<>
<Spacer y={1} />
<Text>
<>
<span>Health checks</span>
<Text>Health checks</Text>
<Spacer y={0.25} />
<Container style={{ width: "400px" }}>
<Text color="helper">
Configure health checks to prevent downtime during deployments
<a
href="https://docs.porter.run/enterprise/deploying-applications/zero-downtime-deployments#health-checks"
href="https://docs.porter.run/configure/health-checks"
target="_blank"
rel="noreferrer"
>
&nbsp;(?)
</a>
</>
</Text>
</Text>
</Container>
<Spacer y={0.5} />
<Controller
name={`app.services.${index}.config.healthCheck.enabled`}
Expand All @@ -57,10 +60,11 @@ const Health: React.FC<HealthProps> = ({ index }) => {
/>
{healthCheckEnabled.value && (
<>
<Spacer y={0.5} />
<Text>Health check endpoint</Text>
<Spacer y={0.5} />
<ControlledInput
type="text"
label="Health Check Endpoint "
placeholder="ex: /healthz"
{...register(
`app.services.${index}.config.healthCheck.httpPath.value`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const Networking: React.FC<NetworkingProps> = ({
<Text color="helper">
Custom domains
<a
href="https://docs.porter.run/standard/deploying-applications/https-and-domains/custom-domains"
href="https://docs.porter.run/configure/custom-domains#custom-domains"
target="_blank"
rel="noreferrer"
>
Expand All @@ -154,7 +154,7 @@ const Networking: React.FC<NetworkingProps> = ({
<Text color="helper">
Ingress Custom Annotations
<a
href="https://docs.porter.run/standard/deploying-applications/runtime-configuration-options/web-applications#ingress-custom-annotations"
href="https://docs.porter.run/configure/advanced-networking#customizing-network-settings-for-an-application"
target="_blank"
rel="noreferrer"
>
Expand Down
Loading

0 comments on commit 5aabc1b

Please sign in to comment.