Skip to content

Commit 37b0d77

Browse files
committed
Fix MDX JSON-LD blocks using Head + JSON.stringify
1 parent 9af158b commit 37b0d77

File tree

2 files changed

+12
-40
lines changed

2 files changed

+12
-40
lines changed

docs/technical-realm-vs-object-box-audit.mdx

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -436,23 +436,8 @@ The emergence of ObjectBox's vector search capabilities positions it uniquely fo
436436

437437
This technical audit, grounded in official documentation verification, reveals that while both RealmDB and ObjectBox are capable local databases, their strategic trajectories have diverged significantly. ObjectBox's continued investment in synchronization, performance optimization, and AI capabilities, combined with Realm's sync deprecation, makes ObjectBox the more future-proof choice for most modern application requirements. The decision ultimately depends on specific project needs, but the synchronization factor alone makes ObjectBox the recommended choice for any application with current or potential future sync requirements.
438438

439-
<script type="application/ld+json">
440-
{
441-
"@context": "https://schema.org",
442-
"@type": "TechArticle",
443-
"mainEntityOfPage": {
444-
"@type": "WebPage",
445-
"@id": "https://dev.objectbox.io/migrate/technical-realm-vs-object-box-audit"
446-
},
447-
"headline": "Technical Realm Vs Object Box Audit",
448-
"description": "A Technical Audit of RealmDB and ObjectBox; perfect for understanding the similarities, differences, and unique advantages and disadvantages the two databases bring to the table.",
449-
"keywords": "Realm, Realm DB replacement, MongoDB Realm alternative, MongoDB Realm Device Sync, migration",
450-
"datePublished": "2025-08-20T10:00:00+01:00",
451-
"dateModified": "2025-09-09T16:45:00+02:00",
452-
"author": {
453-
"@type": "Organization",
454-
"name": "ObjectBox",
455-
"url": "https://dev.objectbox.io/"
456-
}
457-
}
458-
</script>
439+
<Head>
440+
<script type="application/ld+json">
441+
{JSON.stringify({"@context": "https://schema.org", "@type": "TechArticle", "mainEntityOfPage": {"@type": "WebPage", "@id": "https://dev.objectbox.io/migrate/technical-realm-vs-object-box-audit"}, "headline": "Technical Realm Vs Object Box Audit", "description": "A Technical Audit of RealmDB and ObjectBox; perfect for understanding the similarities, differences, and unique advantages and disadvantages the two databases bring to the table.", "keywords": "Realm, Realm DB replacement, MongoDB Realm alternative, MongoDB Realm Device Sync, migration", "datePublished": "2025-08-20T10:00:00+01:00", "dateModified": "2025-09-09T16:45:00+02:00", "author": {"@type": "Organization", "name": "ObjectBox", "url": "https://dev.objectbox.io/"}}, null, 2)}
442+
</script>
443+
</Head>

docs/transactions.mdx

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ keywords:
1111
- runInTx
1212
- bulk update performance
1313
---
14+
import Head from '@docusaurus/Head';
15+
1416

1517
import Tabs from '@theme/Tabs';
1618
import TabItem from '@theme/TabItem';
@@ -202,23 +204,8 @@ with store.write_tx():
202204
- [box.remove() – Deleting objects (implicitly transactional)](./box-remove-method.mdx)
203205
- [Official Docs on Transactions for more in-depth, version-specific details from the canonical docs](https://docs.objectbox.io/transactions)
204206

205-
<script type="application/ld+json">
206-
{
207-
"@context": "https://schema.org",
208-
"@type": "TechArticle",
209-
"mainEntityOfPage": {
210-
"@type": "WebPage",
211-
"@id": "https://dev.objectbox.io/api-facts/transactions"
212-
},
213-
"headline": "API Fact: Using Transactions in ObjectBox",
214-
"description": "Learn how to use transactions in ObjectBox with store.runInTx for atomic, consistent, and high-performance database operations.",
215-
"keywords": "ObjectBox transactions, atomic operations, database transaction, ACID, runInTx, bulk update performance",
216-
"datePublished": "2025-05-20T11:00:00+02:00",
217-
"dateModified": "2025-09-10T09:15:00+02:00",
218-
"author": {
219-
"@type": "Organization",
220-
"name": "ObjectBox",
221-
"url": "https://dev.objectbox.io/"
222-
}
223-
}
224-
</script>
207+
<Head>
208+
<script type="application/ld+json">
209+
{JSON.stringify({"@context": "https://schema.org", "@type": "TechArticle", "mainEntityOfPage": {"@type": "WebPage", "@id": "https://dev.objectbox.io/api-facts/transactions"}, "headline": "API Fact: Using Transactions in ObjectBox", "description": "Learn how to use transactions in ObjectBox with store.runInTx for atomic, consistent, and high-performance database operations.", "keywords": "ObjectBox transactions, atomic operations, database transaction, ACID, runInTx, bulk update performance", "datePublished": "2025-05-20T11:00:00+02:00", "dateModified": "2025-09-10T09:15:00+02:00", "author": {"@type": "Organization", "name": "ObjectBox", "url": "https://dev.objectbox.io/"}}, null, 2)}
210+
</script>
211+
</Head>

0 commit comments

Comments
 (0)