Skip to content

Commit

Permalink
readthedocs: pre generate kas-container docs
Browse files Browse the repository at this point in the history
The kas-container documentation needs manual pre-processing before the
sphinx build can run. As the readthedocs build works differently, we
need to manually call the pre-processing.

Signed-off-by: Felix Moessbauer <[email protected]>
[Jan: update base build os, add podman as dependency]
Signed-off-by: Jan Kiszka <[email protected]>
  • Loading branch information
fmoessbauer authored and jan-kiszka committed Sep 30, 2024
1 parent f537669 commit 2ad8df2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kas - setup tool for bitbake based projects
#
# Copyright (c) Siemens AG, 2021
# Copyright (c) Siemens AG, 2021-2024
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand All @@ -23,11 +23,16 @@
version: 2

build:
os: ubuntu-20.04
os: ubuntu-24.04
tools:
python: "3.9"
python: "3.12"
apt_packages:
- python3-newt
- make
- podman
jobs:
pre_build:
- cd docs && make kas-container-usage && cd ..

python:
install:
Expand Down
1 change: 1 addition & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ text:

kas-container-usage:
@echo Generate kas-container usage documentation
@mkdir -p $(BUILDDIR)
@../kas-container --help | ../scripts/kas-container-usage-to-rst.sh | awk '/KAS-COMMANDS/ {exit} {print}' \
> $(BUILDDIR)/kas-container-usage-synopsis.inc
@../kas-container --help | ../scripts/kas-container-usage-to-rst.sh | awk '/KAS-COMMANDS/ {found=1} found' \
Expand Down

0 comments on commit 2ad8df2

Please sign in to comment.