mirror of
https://github.com/fosrl/docs.git
synced 2025-05-13 05:40:41 +01:00
fix code block formatting in components
This commit is contained in:
parent
8781deb025
commit
6cf920a59e
11 changed files with 23 additions and 29 deletions
|
@ -24,9 +24,7 @@ Installer binaries for Linux can be found in the [Github releases](https://githu
|
||||||
|
|
||||||
For example, on `amd64` download the installer with either wget or curl and make it executable:
|
For example, on `amd64` download the installer with either wget or curl and make it executable:
|
||||||
|
|
||||||
<CodeBlock language="bash">
|
|
||||||
<WgetQuickInstaller />
|
<WgetQuickInstaller />
|
||||||
</CodeBlock>
|
|
||||||
|
|
||||||
The downloaded files will be named `installer` in the current directory.
|
The downloaded files will be named `installer` in the current directory.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import CodeBlock from '@theme/CodeBlock';
|
|
||||||
import DockerCompose from "@site/src/components/DockerCompose";
|
import DockerCompose from "@site/src/components/DockerCompose";
|
||||||
import StaticTraefikConfig from "@site/src/components/StaticTraefikConfig";
|
import StaticTraefikConfig from "@site/src/components/StaticTraefikConfig";
|
||||||
|
|
||||||
|
@ -60,17 +59,13 @@ _For any Traefik configuration changes beyond what is needed in this tutorial, p
|
||||||
|
|
||||||
## Docker Compose File
|
## Docker Compose File
|
||||||
|
|
||||||
<CodeBlock language="yaml">
|
|
||||||
<DockerCompose />
|
<DockerCompose />
|
||||||
</CodeBlock>
|
|
||||||
|
|
||||||
## Traefik Configuration
|
## Traefik Configuration
|
||||||
|
|
||||||
`config/traefik/traefik_config.yml`
|
`config/traefik/traefik_config.yml`
|
||||||
|
|
||||||
<CodeBlock language="yaml">
|
|
||||||
<StaticTraefikConfig />
|
<StaticTraefikConfig />
|
||||||
</CodeBlock>
|
|
||||||
|
|
||||||
`config/traefik/dynamic_config.yml`
|
`config/traefik/dynamic_config.yml`
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import CodeBlock from '@theme/CodeBlock';
|
|
||||||
import UpdatingVersionsYaml from "@site/src/components/UpdatingVersionsYaml";
|
import UpdatingVersionsYaml from "@site/src/components/UpdatingVersionsYaml";
|
||||||
|
|
||||||
# Updating Versions
|
# Updating Versions
|
||||||
|
@ -15,9 +14,7 @@ sudo docker compose down
|
||||||
|
|
||||||
2. Update the docker compose file with the new version number
|
2. Update the docker compose file with the new version number
|
||||||
|
|
||||||
<CodeBlock lang="yaml">
|
|
||||||
<UpdatingVersionsYaml />
|
<UpdatingVersionsYaml />
|
||||||
</CodeBlock>
|
|
||||||
|
|
||||||
Do this for each container you want to update.
|
Do this for each container you want to update.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import CodeBlock from '@theme/CodeBlock';
|
|
||||||
import WithoutTunnelingCompose from "@site/src/components/WithoutTunnelingCompose";
|
import WithoutTunnelingCompose from "@site/src/components/WithoutTunnelingCompose";
|
||||||
|
|
||||||
# Without Tunneling
|
# Without Tunneling
|
||||||
|
@ -19,9 +18,7 @@ When asked if you want to install Gerbil for tunneling, select no. Gerbil will b
|
||||||
|
|
||||||
Follow existing manual install steps, but Gerbil is not required. Your Docker compose should look like the below.
|
Follow existing manual install steps, but Gerbil is not required. Your Docker compose should look like the below.
|
||||||
|
|
||||||
<CodeBlock lang="yaml">
|
|
||||||
<WithoutTunnelingCompose />
|
<WithoutTunnelingCompose />
|
||||||
</CodeBlock>
|
|
||||||
|
|
||||||
After first starting the app, make sure to fill out all of your information, like `dashboard_url`, `base_domain`, etc the `config.yml` that was generated for you in the volume.
|
After first starting the app, make sure to fill out all of your information, like `dashboard_url`, `base_domain`, etc the `config.yml` that was generated for you in the volume.
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,7 @@ On Linux for example:
|
||||||
|
|
||||||
Download Newt with either wget or curl or from your browser and make it executable:
|
Download Newt with either wget or curl or from your browser and make it executable:
|
||||||
|
|
||||||
<CodeBlock lang="yaml">
|
|
||||||
<WgetNewtInstaller />
|
<WgetNewtInstaller />
|
||||||
</CodeBlock>
|
|
||||||
|
|
||||||
And run it:
|
And run it:
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import CodeBlock from "@theme/CodeBlock";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
||||||
|
|
||||||
|
@ -62,7 +63,7 @@ const DockerCompose: React.FC = () => {
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return <>{text}</>;
|
return <CodeBlock language="yml">{text}</CodeBlock>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default DockerCompose;
|
export default DockerCompose;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import CodeBlock from '@theme/CodeBlock';
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
||||||
|
|
||||||
|
@ -48,12 +49,15 @@ entryPoints:
|
||||||
certResolver: "letsencrypt"
|
certResolver: "letsencrypt"
|
||||||
|
|
||||||
serversTransport:
|
serversTransport:
|
||||||
insecureSkipVerify: true
|
insecureSkipVerify: true`);
|
||||||
`);
|
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return <>{text}</>;
|
return (
|
||||||
|
<CodeBlock language="yml">
|
||||||
|
{text}
|
||||||
|
</CodeBlock>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default StaticTraefikConfig;
|
export default StaticTraefikConfig;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import CodeBlock from "@theme/CodeBlock";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
||||||
|
|
||||||
|
@ -17,7 +18,7 @@ const UpdatingVersionsYaml: React.FC = () => {
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return <>{text}</>;
|
return <CodeBlock language="yml">{text}</CodeBlock>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default UpdatingVersionsYaml;
|
export default UpdatingVersionsYaml;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import CodeBlock from "@theme/CodeBlock";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
||||||
|
|
||||||
|
@ -14,7 +15,7 @@ const WgetNewtInstaller: React.FC = () => {
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return <>{text}</>;
|
return <CodeBlock language="bash">{text}</CodeBlock>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default WgetNewtInstaller;
|
export default WgetNewtInstaller;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import CodeBlock from "@theme/CodeBlock";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
||||||
|
|
||||||
|
@ -13,7 +14,7 @@ const WgetQuickInstall: React.FC = () => {
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return <>{text}</>;
|
return <CodeBlock language="bash">{text}</CodeBlock>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default WgetQuickInstall;
|
export default WgetQuickInstall;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import CodeBlock from "@theme/CodeBlock";
|
||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
import { fetchLatestRelease } from "../lib/fetchLatestRelease";
|
||||||
|
|
||||||
|
@ -40,7 +41,7 @@ const WithoutTunnelingCompose: React.FC = () => {
|
||||||
})();
|
})();
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return <>{text}</>;
|
return <CodeBlock language="yml">{text}</CodeBlock>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default WithoutTunnelingCompose;
|
export default WithoutTunnelingCompose;
|
||||||
|
|
Loading…
Reference in a new issue