[gimp-web-devel/hugo] scripts: install the API docs in the right folders.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp-web-devel/hugo] scripts: install the API docs in the right folders.
- Date: Sat, 6 Aug 2022 14:25:24 +0000 (UTC)
commit 6eed05a77fb5e27d78277e32562c68006a42182b
Author: Jehan <jehan girinstud io>
Date: Sat Aug 6 16:24:43 2022 +0200
scripts: install the API docs in the right folders.
Makefile | 2 +-
scripts/update_api_docs.sh | 27 ++++++++++-----------------
2 files changed, 11 insertions(+), 18 deletions(-)
---
diff --git a/Makefile b/Makefile
index c0d81a8..a690bdc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
all: build
build:
- bash scripts/update_api_docs.sh
hugo
+ bash scripts/update_api_docs.sh
test:
hugo server
diff --git a/scripts/update_api_docs.sh b/scripts/update_api_docs.sh
index a928d6e..fa71d52 100644
--- a/scripts/update_api_docs.sh
+++ b/scripts/update_api_docs.sh
@@ -13,23 +13,16 @@ echo "Extracting..."
tar xf gimp-$VERSION.tar.bz2
echo "Installing into static/..."
-mkdir -p static/libgimp/$1
-mkdir -p static/libgimpbase/$1
-mkdir -p static/libgimpcolor/$1
-mkdir -p static/libgimpconfig/$1
-mkdir -p static/libgimpmath/$1
-mkdir -p static/libgimpmodule/$1
-mkdir -p static/libgimpthumb/$1
-mkdir -p static/libgimpwidgets/$1
-
-mv gimp-$VERSION/devel-docs/libgimp/html/* static/libgimp/$1
-mv gimp-$VERSION/devel-docs/libgimpbase/html/* static/libgimpbase/$1
-mv gimp-$VERSION/devel-docs/libgimpcolor/html/* static/libgimpcolor/$1
-mv gimp-$VERSION/devel-docs/libgimpconfig/html/* static/libgimpconfig/$1
-mv gimp-$VERSION/devel-docs/libgimpmath/html/* static/libgimpmath/$1
-mv gimp-$VERSION/devel-docs/libgimpmodule/html/* static/libgimpmodule/$1
-mv gimp-$VERSION/devel-docs/libgimpthumb/html/* static/libgimpthumb/$1
-mv gimp-$VERSION/devel-docs/libgimpwidgets/html/* static/libgimpwidgets/$1
+mkdir -p public/api/2.0/
+
+mv gimp-$VERSION/devel-docs/libgimp/html public/api/2.0/libgimp
+mv gimp-$VERSION/devel-docs/libgimpbase/html public/api/2.0/libgimpbase
+mv gimp-$VERSION/devel-docs/libgimpcolor/html public/api/2.0/libgimpcolor
+mv gimp-$VERSION/devel-docs/libgimpconfig/html public/api/2.0/libgimpconfig
+mv gimp-$VERSION/devel-docs/libgimpmath/html public/api/2.0/libgimpmath
+mv gimp-$VERSION/devel-docs/libgimpmodule/html public/api/2.0/libgimpmodule
+mv gimp-$VERSION/devel-docs/libgimpthumb/html public/api/2.0/libgimpthumb
+mv gimp-$VERSION/devel-docs/libgimpwidgets/html public/api/2.0/libgimpwidgets
echo "Tidying up..."
rm -fr gimp-$VERSION gimp-$VERSION.tar.bz2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]