diff --git a/frontend/src/components/dwe/markdown.tsx b/frontend/src/components/dwe/markdown.tsx index d1547a95..e642dcbe 100644 --- a/frontend/src/components/dwe/markdown.tsx +++ b/frontend/src/components/dwe/markdown.tsx @@ -8,8 +8,12 @@ const components: Components = { h2: ({ ...props }) => (

), + h3: ({ ...props }) => ( +

+ ), + h4: ({ ...props }) =>

, p: ({ ...props }) =>

, - li: ({ ...props }) =>

  • , + li: ({ ...props }) =>
  • , a: ({ ...props }) => ( release.trim()); + +// Nest a release's headings under "## Changelog" +const nestHeadings = (markdown: string) => + markdown.replace(/^(#{1,5}) /gm, "#$1 "); + +const currentRelease = nestHeadings(releases[0] ?? ""); +const previousReleases = nestHeadings(releases.slice(1).join("\n")); + const markdown = ` -# DWE OS Overview +# dweOS Overview + +dweOS is an optional software designed to run on underwater systems, extending the functionality of DeepWater Exploration cameras. -DWE OS is an optional software designed to run on underwater systems, extending the functionality of DeepWater Exploration cameras. +For more detailed documentation, refer to the official project docs at [docs.dwe.ai](https://docs.dwe.ai/dwe-os/overview). -## Key Features +--- -- **Bus ID Camera Enumeration:** Ensures cameras retain their settings even after a reboot, eliminating port confusion. -- **StellarHD Leader/Follower Support:** Enables PrecisionSync™ to work seamlessly out of the box with DWE OS. -- **WiFi Configuration Interface:** Allows easy system updates directly from DWE OS. -- **Light Control Integration:** Provides control over the on/off state and brightness of lights. -- **Built-in Terminal:** Facilitates access to advanced features without the need for SSH. +## Changelog -For more detailed documentation, refer to the official project docs at [docs.dwe.ai](https://docs.dwe.ai/software/dwe-os/dwe-os-2). +${currentRelease} `; export default function OverviewMarkdown() { - return {markdown}; + return ( +
    + {markdown} + {previousReleases && ( + + + + Previous releases + + + {previousReleases} + + + + )} +
    + ); }