mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-14 13:40:54 +00:00
fix(docs): Fix document build error (#2271)
This commit is contained in:
@@ -51,6 +51,19 @@ RUN git config --global --add safe.directory /app && \
|
||||
echo "Creating version $TAG"; \
|
||||
cd /app/docs && git checkout $TAG; \
|
||||
echo "Checked out to tag: $TAG"; \
|
||||
# Check if there is a patch for the current version in app-build
|
||||
echo "Checking patch in /app-build/docs/patchs..." && \
|
||||
if [ -f "/app-build/docs/patchs/fix_${TAG/v/}.patch" ]; then \
|
||||
echo "Found patch for version $TAG in /app-build/docs/patchs, applying..."; \
|
||||
cd /app && \
|
||||
git apply "/app-build/docs/patchs/fix_${TAG/v/}.patch" && \
|
||||
echo "Patch applied successfully" || \
|
||||
echo "Failed to apply patch for $TAG"; \
|
||||
echo "Current sidebars.js content:"; \
|
||||
cat /app/docs/sidebars.js; \
|
||||
else \
|
||||
echo "No patch found for $TAG in /app-build/docs/patchs"; \
|
||||
fi; \
|
||||
# Copy the necessary files to the build directory for each tag
|
||||
rm -rf /app-build/docs/docs /app-build/docs/sidebars.js /app-build/docs/static /app-build/docs/src && \
|
||||
cp -r /app/docs/docs /app-build/docs/ && \
|
||||
|
13
docs/patchs/fix_0.6.3.patch
Normal file
13
docs/patchs/fix_0.6.3.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/docs/sidebars.js b/docs/sidebars.js
|
||||
index e95be6d2..561bc8f7 100755
|
||||
--- a/docs/sidebars.js
|
||||
+++ b/docs/sidebars.js
|
||||
@@ -186,7 +186,7 @@ const sidebars = {
|
||||
id: "awel/awel_tutorial/advanced_guide/4.1_lifecycle"
|
||||
}
|
||||
]
|
||||
- },,
|
||||
+ },
|
||||
{
|
||||
type: "category",
|
||||
label: "5. AWEL Template",
|
Reference in New Issue
Block a user