Discussions
code inside tabs and accordions
I am having a really hard time trying to insert some code snippets inside tabs. The use case is this, we have install instructions for various Linux flavors, and each one should be in its own tab.
I am making sure that I use "Shift-Enter" to now create extra components, so the entire tab is in a single component, but something is always breaking it. Whenever I save I am getting tons of extra backslashes like this, and then I can't ever go back and my original work is lost. It's really frustrating.
<Tabs>
<Tab title="Debian">
Install the observe-agent package. You’ll need to first add the Observe debian repository to your trusted depositories in your sources.list.d file.
<Tab title="Red Hat">
Install the observe-agent package. You’ll need to first add the Observe yum repository to your trusted repositories in your yum.repos.d folder.
<Tab title="Bash">
Download and install the observe-agent from our official bash script.
<pre><code>
curl -OL "https://github.com/observeinc/observe-agent/releases/latest/download/install_linux.sh"
bash install_linux.sh --token=<YOUR_INGEST_TOKEN> --observe_url=<YOUR OBSERVE COLLECTION ENDPOINT> --logs_enabled=true --metrics_enabled=true
</code></pre>
This installs the agent locally and initializes the configuration. If your installation uses systemd, the agent is added as a service and started automatically.
To validate that the agent is installed correctly, you can run the version command.
<pre><code>observe-agent version</code></pre>
</Tab>
</Tabs>