Compare commits
2 Commits
36e2785290
...
330c65697a
| Author | SHA1 | Date | |
|---|---|---|---|
|
330c65697a
|
|||
|
3dcdc6f847
|
8
.gitignore
vendored
8
.gitignore
vendored
@@ -1,12 +1,14 @@
|
|||||||
/.data/*
|
/.data/*
|
||||||
/rag/input_html/*
|
/rag/input_html*/*
|
||||||
/rag/output_md/*
|
/rag/output_md*/*
|
||||||
/rag/ready_rag/*
|
/rag/ready_rag*/*
|
||||||
/rag/venv
|
/rag/venv
|
||||||
|
|
||||||
.env
|
.env
|
||||||
*.html
|
*.html
|
||||||
*.pdf
|
*.pdf
|
||||||
*.sqlite*
|
*.sqlite*
|
||||||
|
*.bin
|
||||||
|
*.pickle
|
||||||
|
|
||||||
!.gitkeep
|
!.gitkeep
|
||||||
|
|||||||
@@ -49,7 +49,12 @@ if [ -z "$content" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
path="$output_path/${title//\//_}.html"
|
path="$output_path/${title//\//_}.html"
|
||||||
echo "<html><body>Страница: <a href=\"$CONF_URL/pages/viewpage.action?pageId=$PAGE_ID\">$title</a><br><br>$content</body></html>" > "$path"
|
content=$(echo "$content" | sed "s#href=\"/#href=\"$CONF_URL/#g")
|
||||||
|
content=$(echo "$content" | sed "s#src=\"/#src=\"$CONF_URL/#g")
|
||||||
|
# content=${content//href=\"\//href=\"$CONF_URL}
|
||||||
|
# content=${content//src=\"\//src=\"$CONF_URL}
|
||||||
|
|
||||||
|
echo "<html><body>Страница: <a href=\"$CONF_URL/pages/viewpage.action?pageId=$PAGE_ID\">$CONF_URL/pages/viewpage.action?pageId=$PAGE_ID</a><br><br><h1>$title</h1>$content</body></html>" > "$path"
|
||||||
echo "Сохранено: $output_path/$title.html"
|
echo "Сохранено: $output_path/$title.html"
|
||||||
|
|
||||||
child_ids=$(echo "$response" | jq -r '.children.page.results[]?.id' 2>/dev/null)
|
child_ids=$(echo "$response" | jq -r '.children.page.results[]?.id' 2>/dev/null)
|
||||||
|
|||||||
Reference in New Issue
Block a user