Skip to content

Commit

Permalink
Chore: Always fetch the latest commit for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonZiweiWang committed Mar 4, 2024
1 parent 98954e3 commit 3a80535
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/fetch-docs.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#!/bin/bash

BITBAKE_DOCS_COMMIT=595176d6be95a9c4718d3a40499d1eb576b535f5
BITBAKE_DOCS_LIST="bitbake-user-manual-metadata.rst bitbake-user-manual-ref-variables.rst"

YOCTO_DOCS_COMMIT=897d5017eae6b3af2d5d489fc4e0915d9ce21458
YOCTO_DOCS_LIST=" tasks.rst variables.rst"

set -e
Expand All @@ -14,7 +12,7 @@ git clone --depth 1 --filter=blob:none --sparse https://github.com/openembedded/
cd bitbake
git sparse-checkout set doc/bitbake-user-manual/
git fetch origin
git checkout $BITBAKE_DOCS_COMMIT
git checkout HEAD
cd doc/bitbake-user-manual/
mv $BITBAKE_DOCS_LIST ../../../client/resources/docs
cd ../../../
Expand All @@ -25,7 +23,7 @@ git clone --depth 1 --filter=blob:none --sparse https://git.yoctoproject.org/yoc
cd yocto-docs
git sparse-checkout set documentation/ref-manual
git fetch origin
git checkout $YOCTO_DOCS_COMMIT
git checkout HEAD
cd documentation/ref-manual
mv $YOCTO_DOCS_LIST ../../../client/resources/docs
cd ../../../
Expand Down

0 comments on commit 3a80535

Please sign in to comment.