Skip to content

Commit

Permalink
website: add folders to post
Browse files Browse the repository at this point in the history
  • Loading branch information
ilg-ul committed Feb 6, 2025
1 parent 109f5df commit 03e3721
Show file tree
Hide file tree
Showing 3 changed files with 167 additions and 0 deletions.
91 changes: 91 additions & 0 deletions website/blog/2025-02-05-openocd-v0-12-0-5-released.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ download_url: https://github.com/xpack-dev-tools/openocd-xpack/releases/tag/v0.1
import {PageMetadata} from '@docusaurus/theme-common';
import Image from '@theme/IdealImage';
import CodeBlock from '@theme/CodeBlock';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

import Prerequisites from './_common/_prerequisites-glib-2.27.mdx';
import DeprecationNotices from './_common/_deprecation-notices-glib-2.27.mdx';
Expand Down Expand Up @@ -179,6 +181,95 @@ xpack-openocd-0.12.0-5-win32-x64.zip
```

## Folders hierarchy

After install, the package creates a hierarchy of folders like the following
(only the first two depth levels are shown):

<Tabs groupId="operating-systems">

<TabItem value="windows" label="Windows" default>

<CodeBlock language="console"> {
`C:\> tree /f %USERPROFILE%\\AppData\\Roaming\\xPacks\\@xpack-dev-tools\\openocd\\${frontMatter.version}.${frontMatter.npm_subversion}\\.content
Folder PATH listing
Volume serial number is B02D-925C
├── README.md
├── bin
│ ├── libftdi1.dll
│ ├── libusb-1.0.dll
│ └── openocd.exe
├── distro-info
│ └── licenses
└── openocd
├── OpenULINK
├── angie
├── contrib
└── scripts
8 directories, 4 files
`} </CodeBlock>

</TabItem>

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

<CodeBlock language="console"> {
`$ tree -L 2 ~/Library/xPacks/xpack-dev-tools/openocd/${frontMatter.version}.${frontMatter.npm_subversion}/.content/
/Users/ilg/Library/xPacks/xpack-dev-tools/openocd/${frontMatter.version}.${frontMatter.npm_subversion}/.content/
├── README.md
├── bin
│ └── openocd
├── distro-info
│ └── licenses
├── libexec
│ ├── libftdi1.2.5.0.dylib
│ ├── libftdi1.2.dylib -> libftdi1.2.5.0.dylib
│ ├── libhidapi.0.14.0.dylib
│ └── libusb-1.0.0.dylib
└── openocd
├── OpenULINK
├── angie
├── contrib
└── scripts
10 directories, 6 files
`} </CodeBlock>

</TabItem>

<TabItem value="linux" label="GNU/Linux">

<CodeBlock language="console"> {
`$ tree -L 2 ~/.local/xPacks/xpack-dev-tools/openocd/${frontMatter.version}.${frontMatter.npm_subversion}/.content/
/home/ilg/.local/xPacks/xpack-dev-tools/openocd/${frontMatter.version}.${frontMatter.npm_subversion}/.content/
├── README.md
├── bin
│ └── openocd
├── distro-info
│ └── licenses
├── libexec
│ ├── libftdi1.so.2 -> libftdi1.so.2.5.0
│ ├── libftdi1.so.2.5.0
│ ├── libhidapi-hidraw.so.0 -> libhidapi-hidraw.so.0.14.0
│ ├── libhidapi-hidraw.so.0.14.0
│ ├── libudev.so.1 -> libudev.so.1.6.9
│ ├── libudev.so.1.6.9
│ ├── libusb-1.0.so.0 -> libusb-1.0.so.0.4.0
│ └── libusb-1.0.so.0.4.0
└── openocd
├── OpenULINK
├── angie
├── contrib
└── scripts
9 directories, 10 files
`} </CodeBlock>

</TabItem>

</Tabs>

<DeprecationNotices/>

<DownloadAnalytics version={frontMatter.version}/>
2 changes: 2 additions & 0 deletions website/blog/_templates/blog-post-release-part-1-liquid.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ download_url: https://github.com/xpack-dev-tools/openocd-xpack/releases/tag/v{{x
import {PageMetadata} from '@docusaurus/theme-common';
import Image from '@theme/IdealImage';
import CodeBlock from '@theme/CodeBlock';
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

import Prerequisites from './_common/_prerequisites-glib-2.27.mdx';
import DeprecationNotices from './_common/_deprecation-notices-glib-2.27.mdx';
Expand Down
74 changes: 74 additions & 0 deletions website/blog/_templates/blog-post-release-part-2-liquid.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,78 @@

## Folders hierarchy

After install, the package creates a hierarchy of folders like the following
(only the first two depth levels are shown):

{%- assign platforms_array = platforms | split: "," %}

{%- assign names_array = "" | split: "" %}

{%- for platform in platforms_array %}
{%- case platform %}
{%- when "win32-x64" %}
{%- assign names_array = names_array | concat: "Windows" %}
{%- when "darwin-x64", "darwin-arm64" %}
{%- assign names_array = names_array | concat: "macOS" %}
{%- when "linux-x64", "linux-arm64", "linux-arm" %}
{%- assign names_array = names_array | concat: "GNU/Linux" %}
{%- endcase %}
{%- endfor %}

{%- assign names_array = names_array | uniq %}

<Tabs groupId="operating-systems">

{%- for name in names_array %}
{%- case name %}
{%- when "Windows" %}

<TabItem value="windows" label="Windows" default>

<CodeBlock language="console"> {
`C:\> tree /f %USERPROFILE%\\AppData\\Roaming\\xPacks\\@{{packageScope}}\\{{packageName}}\\${frontMatter.version}.${frontMatter.npm_subversion}\\.content
Folder PATH listing
Volume serial number is B02D-925C
├── README.md
├── bin
TODO
`} </CodeBlock>

</TabItem>

{%- when "macOS" %}

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

<CodeBlock language="console"> {
`$ tree -L 2 ~/Library/xPacks/\{{packageScopedName}}/${frontMatter.version}.${frontMatter.npm_subversion}/.content/
/Users/ilg/Library/xPacks/\{{packageScopedName}}/${frontMatter.version}.${frontMatter.npm_subversion}/.content/
├── README.md
├── bin
TODO
`} </CodeBlock>

</TabItem>

{%- when "GNU/Linux" %}

<TabItem value="linux" label="GNU/Linux">

<CodeBlock language="console"> {
`$ tree -L 2 ~/.local/xPacks/\{{packageScopedName}}/${frontMatter.version}.${frontMatter.npm_subversion}/.content/
/home/ilg/.local/xPacks/\{{packageScopedName}}/${frontMatter.version}.${frontMatter.npm_subversion}/.content/
├── README.md
├── bin
TODO
`} </CodeBlock>

</TabItem>

{%- endcase %}
{%- endfor %}

</Tabs>

<DeprecationNotices/>

<DownloadAnalytics version={frontMatter.version}/>

0 comments on commit 03e3721

Please sign in to comment.