Skip to content

Commit

Permalink
website: rework install quick tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Aug 10, 2024
1 parent 283a223 commit 821ce30
Show file tree
Hide file tree
Showing 12 changed files with 106 additions and 564 deletions.
45 changes: 12 additions & 33 deletions website/docs/install/_automatic-install-quick-test.mdx
Original file line number Diff line number Diff line change
@@ -1,38 +1,17 @@
import CodeBlock from '@theme/CodeBlock';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

import customField from '@site/src/libs/customField';
import AutomaticInstallQuickTest from './_common/_automatic-install-quick-test.mdx'

{/* ------------------------------------------------------------------------ */}

### Quick test

To check if the xPack OpenOCD installed by **xpm** starts properly, use something like:

<Tabs groupId="operating-systems">
<TabItem value="windows" label="Windows" default>
export const appName = 'OpenOCD';
export const appLcName = 'openocd';
export const programName = 'openocd';
export const branding = '';

<CodeBlock language="console"> {
`C:\\> %USERPROFILE%\\AppData\\Roaming\\xPacks\\@xpack-dev-tools\\openocd\\${ customField('upstreamVersion') }-${ customField('xpackSubversion') }.${ customField('npmSubversion') }\\.content\\bin\\openocd.exe --version
${ customField('upstreamVersion') }`
} </CodeBlock>

</TabItem>
<TabItem value="macos" label="macOS">

<CodeBlock language="console"> {
`$ ~/Library/xPacks/@xpack-dev-tools/openocd/${ customField('upstreamVersion') }-${ customField('xpackSubversion') }.${ customField('npmSubversion') }/.content/bin/openocd --version
${ customField('upstreamVersion') }`
} </CodeBlock>

</TabItem>
<TabItem value="linux" label="GNU/Linux">
{/* ------------------------------------------------------------------------ */}

<CodeBlock language="console"> {
`$ ~/.local/xPacks/@xpack-dev-tools/openocd/${ customField('upstreamVersion') }-${ customField('xpackSubversion') }.${ customField('npmSubversion') }/.content/bin/openocd --version
${ customField('upstreamVersion') }`
} </CodeBlock>
<AutomaticInstallQuickTest
appName={ appName }
appLcName={ appLcName }
programName={ programName }
branding={ branding }
/>

</TabItem>
</Tabs>
309 changes: 0 additions & 309 deletions website/docs/install/_common/_automated-install.mdx

This file was deleted.

Loading

0 comments on commit 821ce30

Please sign in to comment.