Skip to content

Commit 521c6f9

Browse files
Merge branch 'ArmDeveloperEcosystem:main' into main
2 parents 50ac7f5 + 53e8c7c commit 521c6f9

File tree

387 files changed

+16444
-295
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

387 files changed

+16444
-295
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
FROM ubuntu:latest
22

3-
ARG HUGO=hugo_0.111.2_linux-amd64
4-
ARG HUGO_VER=v0.111.2
3+
ARG TARGETPLATFORM
54

6-
# general setup
75
RUN apt-get update && \
86
apt-get -y install vim wget sudo git
97

10-
RUN wget https://github.com/gohugoio/hugo/releases/download/$HUGO_VER/$HUGO.deb && apt-get -y install ./$HUGO.deb
8+
RUN case ${TARGETPLATFORM} in \
9+
"linux/amd64") HUGO=hugo_0.111.2_linux-amd64 ;; \
10+
"linux/arm64") HUGO=hugo_0.111.2_linux-arm64 ;; \
11+
esac \
12+
&& HUGO_VER=v0.111.2 \
13+
&& wget https://github.com/gohugoio/hugo/releases/download/${HUGO_VER}/${HUGO}.deb && apt-get -y install ./${HUGO}.deb
1114

1215
# User account
1316
ENV USER=ubuntu
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
docker build --platform linux/amd64 -t armswdev/learn-dev-container:amd64 .
2+
docker build --platform linux/arm64 -t armswdev/learn-dev-container:arm64 .
3+
4+
docker push armswdev/learn-dev-container:amd64
5+
docker push armswdev/learn-dev-container:arm64
6+
7+
docker manifest create armswdev/learn-dev-container:latest \
8+
--amend armswdev/learn-dev-container:arm64 \
9+
--amend armswdev/learn-dev-container:amd64
10+
11+
docker manifest push --purge armswdev/learn-dev-container:latest
12+

.devcontainer/devcontainer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{
22
"name": "Arm Learning Paths",
33

4-
"build": {
5-
"dockerfile": "Dockerfile"
6-
},
4+
"image": "docker.io/armswdev/learn-dev-container:latest",
75

86
"forwardPorts": [1313],
97

108
"remoteUser": "ubuntu",
119

12-
"postStartCommand": "nohup bash -c 'hugo server --baseUrl=/ --liveReloadPort=443 --appendPort=false --bind=0.0.0.0 &' "
10+
"postStartCommand": "nohup bash -c 'hugo ; bin/pagefind --site public --output-subdir ../static/pagefind ; hugo server --baseUrl=/ --liveReloadPort=443 --appendPort=false --bind=0.0.0.0 &' "
1311

1412
}

.github/workflows/content-checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ jobs:
2626
extended: true
2727

2828
- name: Build
29-
run: hugo --minify
29+
run: |
30+
hugo --minify
31+
bin/pagefind --site "public"
3032
3133
- name: Check HTML links
3234
continue-on-error: true

.github/workflows/deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838

3939
# Builds arm-learning-paths repo
4040
- name: Build
41-
run: hugo --minify
41+
run: |
42+
hugo --minify
43+
bin/pagefind --site "public"
4244
4345
# Copy SSH Key
4446
- name: copy key

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939

4040
# Builds arm-software-developer repo
4141
- name: Build
42-
run: hugo --minify
42+
run: |
43+
hugo --minify
44+
bin/pagefind --site "public"
4345
4446
# Deploys website to AWS S3
4547
- name: Deploy to S3

.github/workflows/maintenance.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
report:
1818
# The type of runner that the job will run on
1919
runs-on: ubuntu-latest
20-
2120
# Steps represent a sequence of tasks that will be executed as part of the job
2221
steps:
2322
# Check out repo and the whole history
@@ -29,7 +28,7 @@ jobs:
2928
# Report outdated files, store result as artifact and updates stats
3029
- name: Report outdated files of more than 20 days
3130
run: |
32-
pip install junit-xml
31+
pip install -r tools/requirements.txt
3332
python3 tools/maintenance.py -r 20
3433
3534
# Upload report as artifact
@@ -66,11 +65,11 @@ jobs:
6665
done
6766
6867
# Run tests for learning paths
69-
- name: Test commands and output reports for learning paths
70-
run: |
71-
for i in $(tree -i -d -f content/learning-paths/ | tail -n +2); do
72-
python3 tools/maintenance.py -i $i -l ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
73-
done
68+
#- name: Test commands and output reports for learning paths
69+
# run: |
70+
# for i in $(tree -i -d -f content/learning-paths/ | tail -n +2); do
71+
# python3 tools/maintenance.py -i $i -l ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
72+
# done
7473

7574
# Move reports to result folder
7675
- name: Move reports

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
/public
2+
/static/
3+
__pycache__/
24
resources/
35
node_modules/
46
package-lock.json
57
.hugo_build.lock
68

79
# macOS files
8-
*.DS_Store
10+
*.DS_Store

.gitpod.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ tasks:
22
- name: Install Hugo
33
before: brew install hugo
44
init: echo "Your version of Hugo is `hugo version`"
5-
command: hugo server -D -F --baseURL $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
5+
command: |
6+
hugo
7+
bin/pagefind --site "public" --output-subdir ../static/pagefind
8+
hugo server -D -F --baseURL $(gp url 1313) --liveReloadPort=443 --appendPort=false --bind=0.0.0.0
69
710
ports:
811
- port: 1313

0 commit comments

Comments
 (0)