Skip to content

Commit c16ad44

Browse files
committed
Update acfl.md, oci-cli.md, fix patch.py bug
1 parent 1a47372 commit c16ad44

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

content/install-guides/acfl.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ sudo apt update
162162

163163
Install Arm Compiler for Linux with:
164164

165-
```consoles
165+
```console
166166
sudo apt install acfl -y
167167
```
168168

@@ -226,7 +226,7 @@ Set up the environment, for example, in your `.bashrc` and add module files. The
226226

227227
#### Ubuntu Linux:
228228

229-
```bash { target="ubuntu:latest" pre_cmd=". /usr/share/modules/init/bash; module use /opt/arm/modulefiles" }
229+
```bash { target="ubuntu:latest" pre_cmd=". /usr/share/modules/init/bash" pre_cmd="module use /opt/arm/modulefiles" }
230230
echo ". /usr/share/modules/init/bash" >> $HOME/.bashrc
231231
echo "module use /opt/arm/modulefiles" >> $HOME/.bashrc
232232
source $HOME/.bashrc
@@ -235,7 +235,7 @@ module avail
235235

236236
#### Red Hat or Amazon Linux:
237237

238-
```bash { target="fedora:latest" env_source="/usr/share/modules/init/bash" pre_cmd="module use /opt/arm/modulefiles" }
238+
```bash { target="fedora:latest" env_source="/usr/share/Modules/init/bash" pre_cmd="module use /opt/arm/modulefiles" }
239239
echo ". /usr/share/Modules/init/bash" >> $HOME/.bashrc
240240
echo "module use /opt/arm/modulefiles" >> $HOME/.bashrc
241241
source $HOME/.bashrc
@@ -309,7 +309,7 @@ ACfL is now [ready to use](#armclang).
309309
To get started with the Arm C/C++ Compiler and compile a simple application follow the steps below.
310310

311311
Check that the correct compiler version is being used:
312-
```bash { env_source="~/.bashrc", pre_cmd="module load acfl/24.10.1" }
312+
```bash { env_source="$HOME/.bashrc", pre_cmd=". /usr/share/modules/init/bash; module use /opt/arm/modulefiles; module load acfl/24.10.1" }
313313
armclang --version
314314
```
315315

@@ -347,7 +347,7 @@ Hello, C World!
347347
To get started with the Arm Fortran Compiler and compile a simple application follow the steps below.
348348

349349
Check that the correct compiler version is being used:
350-
```bash { env_source="~/.bashrc", pre_cmd="module load acfl/24.10.1" }
350+
```bash { env_source="$HOME/.bashrc", pre_cmd=". /usr/share/modules/init/bash; module use /opt/arm/modulefiles; module load acfl/24.10.1" }
351351
armflang --version
352352
```
353353

content/install-guides/oci-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scrip
6464

6565
Verify OCI CLI is installed using the `--version` option:
6666

67-
```bash { target="ubuntu:latest", env_source="$HOME/.bashrc" }
67+
```bash { target="ubuntu:latest", pre_cmd=". $HOME/.bashrc" }
6868
oci --version
6969
```
7070

tools/patch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def patch(article_path: str, results: dict, link: str):
2424
content_type, subdirectory, content_title, *others = article_path_parts
2525
else:
2626
content_type, content_title, *others = article_path_parts
27-
content_title = content_title.strip(".md")
27+
# Remove ".md" from the content title if it exists
28+
content_title = content_title[:-3] if content_title.endswith(".md") else content_title
2829
sw_category = content_type
2930
else:
3031
raise SystemExit("Unknown content path, pass learning paths or install guides only")

0 commit comments

Comments
 (0)