mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-30 01:51:28 +00:00
Merge dbf143f330 into 0e12f0b3a6
This commit is contained in:
commit
1963552ef1
3 changed files with 22 additions and 3 deletions
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
|
@ -106,3 +106,21 @@ jobs:
|
|||
|
||||
- name: Run Biome CI (format & lint on changed files)
|
||||
run: bunx biome ci --changed --since=origin/main --no-errors-on-unmatched
|
||||
|
||||
- name: Detect docs changes
|
||||
id: docs-changes
|
||||
run: |
|
||||
if git diff --quiet "${{ github.event.pull_request.base.sha }}" HEAD -- apps/docs; then
|
||||
echo "docs=false" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "docs=true" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
# Isolated bunx avoids the monorepo React/ink hook crash from hoisted mintlify.
|
||||
# mintlify@4.2.x may exit 0 even when it prints broken links.
|
||||
- name: Check docs for broken internal links
|
||||
if: steps.docs-changes.outputs.docs == 'true'
|
||||
working-directory: apps/docs
|
||||
run: |
|
||||
set -o pipefail
|
||||
bun run check-links 2>&1 | tee /dev/stderr | grep -q "no broken links found"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ Use `POST /v3/documents/batch` to backfill exports, emails, messages, or other d
|
|||
|
||||
Backfill dated content by setting `documentDate` on each document, sorting the source records oldest to newest, and sending them in batches. Each request can contain up to 600 documents.
|
||||
|
||||
**Endpoint:** [`POST /v3/documents/batch`](/api-reference/ingest/batch-add-documents)
|
||||
**Endpoint:** [`POST /v3/documents/batch`](/api-reference/ingest)
|
||||
|
||||
<CodeGroup>
|
||||
|
||||
|
|
@ -93,7 +93,7 @@ def backfill_historical_data(source_documents: list[dict[str, str]]) -> None:
|
|||
|
||||
## Optional: wait for processing to finish
|
||||
|
||||
**Endpoint:** [`GET /v3/documents/{id}`](/api-reference/documents/get-document)
|
||||
**Endpoint:** [`GET /v3/documents/{id}`](/api-reference/ingest)
|
||||
|
||||
The batch endpoint returns after accepting the documents. If a later step depends on completed memory generation, poll the returned document IDs until both `status` and `dreamingStatus` are `done`.
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
"portless": { "name": "docs.dev.supermemory", "script": "dev:app", "appPort": 3003 },
|
||||
"scripts": {
|
||||
"dev": "portless",
|
||||
"dev:app": "bunx mintlify@latest dev --no-open --port 3003"
|
||||
"dev:app": "bunx mintlify@latest dev --no-open --port 3003",
|
||||
"check-links": "bunx --bun mintlify@4.2.112 broken-links"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue