Skip to content

Commit

Permalink
Fix: Move resources from client to server
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Mar 11, 2024
1 parent 124a476 commit 2fabf53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/fetch-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ YOCTO_DOCS_LIST=" tasks.rst variables.rst"
set -e
cd "$(dirname "$(readlink -f "$0")")/.."

mkdir -p client/resources/docs
mkdir -p server/resources/docs
# Bitbake docs
git clone --depth 1 --filter=blob:none --sparse https://github.com/openembedded/bitbake.git
cd bitbake
git sparse-checkout set doc/bitbake-user-manual/
git fetch origin
git checkout $BITBAKE_DOCS_COMMIT
cd doc/bitbake-user-manual/
mv $BITBAKE_DOCS_LIST ../../../client/resources/docs
mv $BITBAKE_DOCS_LIST ../../../server/resources/docs
cd ../../../
rm -rf bitbake

Expand All @@ -30,9 +30,9 @@ git sparse-checkout set documentation/ref-manual
git fetch origin
git checkout $YOCTO_DOCS_COMMIT
cd documentation/ref-manual
mv $YOCTO_DOCS_LIST ../../../client/resources/docs
mv $YOCTO_DOCS_LIST ../../../server/resources/docs
cd ../../../
rm -rf yocto-docs

# This line is added to let the last task in tasks.rst get matched by the regex in doc scanner
echo "\n.. _ref-dummy-end-for-matching-do-validate-branches:" >> client/resources/docs/tasks.rst
echo "\n.. _ref-dummy-end-for-matching-do-validate-branches:" >> server/resources/docs/tasks.rst
1 change: 1 addition & 0 deletions server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/resources

0 comments on commit 2fabf53

Please sign in to comment.