coreos-doc: recipe added
This commit is contained in:
parent
192ba4c555
commit
fb4838e2b6
|
|
@ -0,0 +1,29 @@
|
||||||
|
DESCRIPTION = "CoreOS Documentation"
|
||||||
|
SECTION = "devtool"
|
||||||
|
LICENSE = "CLOSED"
|
||||||
|
PV = "0.0.1+git${METADATA_REVISION}"
|
||||||
|
|
||||||
|
inherit externalsrc
|
||||||
|
inherit allarch
|
||||||
|
|
||||||
|
EXTERNALSRC := "${THISDIR}/../../../../documentation"
|
||||||
|
DEPENDS += "python3-sphinx python3-sphinx-rtd-theme"
|
||||||
|
|
||||||
|
do_compile() {
|
||||||
|
python3 -m sphinx.cmd.build -b html ${S} ${B}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Ensure the doc is in the coreos-doc package and not in coreos-doc-doc
|
||||||
|
FILES:${PN} += "${docdir}/coreos"
|
||||||
|
PACKAGES:remove = "${PN}-doc"
|
||||||
|
do_install() {
|
||||||
|
install -d ${D}${docdir}
|
||||||
|
cp --no-preserve=ownership -r ${B} ${D}${docdir}/coreos
|
||||||
|
}
|
||||||
|
|
||||||
|
# Deploy to build/tmp/deploy/documentation
|
||||||
|
do_deploy() {
|
||||||
|
cp --no-preserve=ownership -r ${B} ${DEPLOY_DIR}/documentation
|
||||||
|
}
|
||||||
|
|
||||||
|
addtask deploy after do_compile
|
||||||
Loading…
Reference in New Issue