Skip to content

Commit 99a8d62

Browse files
authored
Merge pull request #50 from NationalSecurityAgency/6-publish-documentation-to-github-pages
6 publish documentation to GitHub pages
2 parents d687b7f + 8358035 commit 99a8d62

23 files changed

+3672
-1709
lines changed

.github/workflows/pages.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Publish Documentation
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
packages: read
10+
11+
env:
12+
SITE_URL: 'https://NationalSecurityAgency.github.io/seabee/'
13+
REPO_URL: 'https://github.com/NationalSecurityAgency/seabee/'
14+
EDIT_URI: 'edit/main/docs'
15+
REPO_ICON: 'fontawesome/brands/github'
16+
17+
jobs:
18+
publish-docs:
19+
runs-on: ubuntu-24.04
20+
21+
container:
22+
image: ghcr.io/nationalsecurityagency/seabee-build-ubuntu-noble:latest
23+
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
28+
- name: Build rust docs
29+
run: make docs && cp -r target/doc docs/docs/assets/rust
30+
31+
- name: Build doxygen
32+
run: cd docs && doxygen
33+
34+
- name: Poetry Install
35+
run: poetry install
36+
37+
- name: Trust git directory
38+
run: git config --global --add safe.directory /__w/seabee/seabee
39+
40+
- name: Deploy mkdocs
41+
run: cd docs && poetry run mkdocs gh-deploy --force

.github/workflows/rust-clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-24.04
1313

1414
container:
15-
image: ghcr.io/nationalsecurityagency/seabee-build-ubuntu-jammy
15+
image: ghcr.io/nationalsecurityagency/seabee-build-ubuntu-jammy:latest
1616

1717
steps:
1818
- name: Checkout code

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,33 @@
2828
}
2929
],
3030
"cSpell.words": [
31+
"argjson",
32+
"batcat",
3133
"bindgen",
34+
"BPFFS",
3235
"bpftool",
3336
"distro",
3437
"Dockerfiles",
3538
"Doxygen",
3639
"ebpf",
3740
"EOPNOTSUPP",
3841
"FIPS",
42+
"fontawesome",
43+
"journalctl",
3944
"karmor",
4045
"keylist",
4146
"kmod",
4247
"kubearmor",
4348
"libbpf",
4449
"libtest",
50+
"mkdocs",
4551
"nationalsecurityagency",
4652
"NLMSG",
4753
"nlmsghdr",
4854
"Pkey",
4955
"prctl",
5056
"printk",
57+
"pstree",
5158
"ptrace",
5259
"RAII",
5360
"ringbuf",

ci/fedora-41.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ FROM ${DOCKER_MIRROR}fedora:41
55
LABEL org.opencontainers.image.source=https://github.com/NationalSecurityAgency/seabee
66

77
COPY scripts /scripts
8+
COPY pyproject.toml /pyproject.toml
89

910
# fedora image does not include python, python not added by update_dependencies.sh
1011
RUN dnf -y install python3
1112

1213
RUN DOCKER=1 /scripts/update_dependencies.sh \
1314
&& dnf clean all
1415

15-
# update the path for rust installation
16+
# update the path for rust and poetry installation
1617
ENV RUSTUP_HOME=/root/.rustup \
1718
CARGO_HOME=/root/.cargo \
18-
PATH=/root/.cargo/bin:$PATH
19+
PATH=/root/.cargo/bin:/root/.local/bin:$PATH

ci/fedora-42.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ FROM ${DOCKER_MIRROR}fedora:42
55
LABEL org.opencontainers.image.source=https://github.com/NationalSecurityAgency/seabee
66

77
COPY scripts /scripts
8+
COPY pyproject.toml /pyproject.toml
89

910
# fedora image does not include python, python not added by update_dependencies.sh
1011
RUN dnf -y install python3
1112

1213
RUN DOCKER=1 /scripts/update_dependencies.sh \
1314
&& dnf clean all
1415

15-
# update the path for rust installation
16+
# update the path for rust and poetry installation
1617
ENV RUSTUP_HOME=/root/.rustup \
1718
CARGO_HOME=/root/.cargo \
18-
PATH=/root/.cargo/bin:$PATH
19+
PATH=/root/.cargo/bin:/root/.local/bin:$PATH

ci/rocky-9.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ FROM ${DOCKER_MIRROR}rockylinux:9
55
LABEL org.opencontainers.image.source=https://github.com/NationalSecurityAgency/seabee
66

77
COPY scripts /scripts
8+
COPY pyproject.toml /pyproject.toml
89

910
RUN DOCKER=1 /scripts/update_dependencies.sh \
1011
&& dnf clean all \
1112
&& rm -rf /var/cache/dnf
1213

13-
# update the path for rust installation
14+
# update the path for rust and poetry installation
1415
ENV RUSTUP_HOME=/root/.rustup \
1516
CARGO_HOME=/root/.cargo \
16-
PATH=/root/.cargo/bin:$PATH
17+
PATH=/root/.cargo/bin:/root/.local/bin:$PATH

ci/ubuntu-jammy.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ FROM ${DOCKER_MIRROR}ubuntu:jammy
55
LABEL org.opencontainers.image.source=https://github.com/NationalSecurityAgency/seabee
66

77
COPY scripts /scripts
8+
COPY pyproject.toml /pyproject.toml
89

910
RUN DOCKER=1 /scripts/update_dependencies.sh \
1011
&& rm -rf /var/lib/apt/lists/*
1112

12-
# update the path for rust installation
13+
# update the path for rust and poetry installation
1314
ENV RUSTUP_HOME=/root/.rustup \
1415
CARGO_HOME=/root/.cargo \
15-
PATH=/root/.cargo/bin:$PATH
16+
PATH=/root/.cargo/bin:/root/.local/bin:$PATH

ci/ubuntu-noble.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ FROM ${DOCKER_MIRROR}ubuntu:noble
55
LABEL org.opencontainers.image.source=https://github.com/NationalSecurityAgency/seabee
66

77
COPY scripts /scripts
8+
COPY pyproject.toml /pyproject.toml
89

910
RUN DOCKER=1 /scripts/update_dependencies.sh \
1011
&& rm -rf /var/lib/apt/lists/*
1112

12-
# update the path for rust installation
13+
# update the path for rust and poetry installation
1314
ENV RUSTUP_HOME=/root/.rustup \
1415
CARGO_HOME=/root/.cargo \
15-
PATH=/root/.cargo/bin:$PATH
16+
PATH=/root/.cargo/bin:/root/.local/bin:$PATH

docs/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ RUST_TGT = docs/assets/rust
1313
help:
1414
$(MKDOCS) --help
1515

16-
build: $(DEMO) rust-docs
16+
build: rust-docs
1717
doxygen
1818
$(BUILD_CMD)
1919

2020
# Doxygen and asciinema are not supported under this rule
2121
serve-dev:
2222
$(MKDOCS) serve
2323

24-
serve-build: $(DEMO) rust-docs
24+
serve-build: rust-docs
2525
SITE_URL="http://localhost:8080/" $(BUILD_CMD)
2626
$(PYTHON) -m http.server -d $(BUILD_PATH) 8080
2727

@@ -30,7 +30,7 @@ rust-docs:
3030
rm -r $(RUST_TGT) || true
3131
cp -r $(RUST_SRC) $(RUST_TGT)
3232

33-
$(DEMO): $(DEMO_SRC)
33+
demo: $(DEMO_SRC)
3434
if [ -z $$CI ]; then make -C .. release; fi
3535
if [ -z $$CI ]; then autocast --overwrite $(DEMO_SRC) $(DEMO); fi
3636

docs/docs/_static/css/class.css

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)