Skip to content

Commit 200b12e

Browse files
committed
moved some files a level up
1 parent a2bbf9a commit 200b12e

File tree

8 files changed

+17398
-0
lines changed

8 files changed

+17398
-0
lines changed

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

.markdownlint.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"plugins": [
3+
["remark-frontmatter", ["yaml"]],
4+
"remark-gfm",
5+
["remark-lint", {}],
6+
7+
// Helpful checks
8+
["remark-lint-no-dead-urls", { "skipLocalhost": true, "skipOffline": true }],
9+
["remark-lint-no-duplicate-headings", false],
10+
11+
// Allow inline HTML because MDX uses components/HTML
12+
["remark-lint-no-html", false]
13+
]
14+
}

.remarkrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": []
3+
}

docusaurus.config.ts

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
import {themes as prismThemes} from 'prism-react-renderer';
2+
import type {Config} from '@docusaurus/types';
3+
import type * as Preset from '@docusaurus/preset-classic';
4+
5+
const config: Config = {
6+
title: 'ObjectBox for Embedded AI, Mobile AI, Edge AI & Offline-First Apps',
7+
tagline: 'Dev-TidBits around Edge AI, Databases, Data Sync',
8+
favicon: 'img/favicon.ico',
9+
10+
url: ' https://objectbox.io',
11+
baseUrl: '/dev-how-to/',
12+
13+
organizationName: 'objectbox',
14+
projectName: 'objectbox-dev-site',
15+
16+
onBrokenLinks: 'throw',
17+
onBrokenMarkdownLinks: 'warn',
18+
19+
i18n: {
20+
defaultLocale: 'en',
21+
locales: ['en'],
22+
},
23+
24+
themes: [
25+
[
26+
'@easyops-cn/docusaurus-search-local',
27+
{
28+
hashed: true,
29+
language: ['en'],
30+
highlightSearchTermsOnTargetPage: true,
31+
explicitSearchResultPath: false,
32+
indexDocs: true,
33+
indexBlog: false,
34+
indexPages: true,
35+
docsRouteBasePath: '/',
36+
searchResultLimits: 8,
37+
searchResultContextMaxLength: 50,
38+
ignoreFiles: [],
39+
},
40+
],
41+
],
42+
43+
presets: [
44+
[
45+
'classic',
46+
{
47+
docs: {
48+
routeBasePath: '/',
49+
sidebarPath: require.resolve('./sidebars.ts'),
50+
editUrl: 'https://github.com/objectbox/objectbox-dev-site/edit/main/',
51+
52+
},
53+
blog: false,
54+
theme: {
55+
customCss: [require.resolve('./src/css/custom.css')],
56+
},
57+
sitemap: {
58+
lastmod: 'date',
59+
changefreq: 'weekly',
60+
priority: 0.5,
61+
filename: 'sitemap.xml',
62+
},
63+
gtag: {
64+
trackingID: 'G-73JHY4DBKQ',
65+
anonymizeIP: true,
66+
},
67+
} satisfies Preset.Options,
68+
],
69+
],
70+
71+
themeConfig: {
72+
image: 'img/objectbox-social-card.jpg',
73+
navbar: {
74+
title: 'Dev TidBits and How-tos around Edge AI, Databases, Data Sync',
75+
logo: {
76+
alt: 'ObjectBox Logo',
77+
src: 'img/objectbox-logo-rect.jpg',
78+
srcDark: 'img/objectbox-logo-dm.png',
79+
},
80+
items: [
81+
{ href: 'https://docs.objectbox.io', label: 'Main Docs', position: 'right' },
82+
{ href: 'https://objectbox.io/blog/', label: 'Blog', position: 'right' },
83+
{ href: 'https://github.com/objectbox', label: 'GitHub', position: 'right' },
84+
],
85+
},
86+
prism: {
87+
theme: prismThemes.github,
88+
darkTheme: prismThemes.dracula,
89+
additionalLanguages: [
90+
'bash', 'javascript', 'typescript', 'json',
91+
'swift', 'kotlin', 'java', 'python',
92+
'dart', 'go', 'c', 'cpp', 'csharp', 'rust',
93+
'php', 'ruby', 'groovy',
94+
],
95+
},
96+
} satisfies Preset.ThemeConfig,
97+
98+
// ✅ Add site-wide scripts here (e.g., GA4 search logging)
99+
scripts: [{ src: '/js/search-analytics.js', async: true }],
100+
};
101+
102+
export default config;

0 commit comments

Comments
 (0)