Skip to content

Commit

Permalink
[web] migrate cs pages from nuxt to next #1161 (#1168)
Browse files Browse the repository at this point in the history
migrate cs pages

Co-authored-by: agnesoft <62834902+agnesoft@users.noreply.github.com>
  • Loading branch information
janavlachova and agnesoft authored Jul 29, 2024
1 parent 9f164c1 commit 9a05ae7
Show file tree
Hide file tree
Showing 36 changed files with 193 additions and 46 deletions.
1 change: 1 addition & 0 deletions agdb_web_next/components/layout/footer.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.footer {
padding: 1rem;
width: 100%;
.copyright {
font-size: 0.75rem;
font-weight: 300;
Expand Down
9 changes: 4 additions & 5 deletions agdb_web_next/components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ export default function Footer() {
<div className={styles.footerColumn}>
<LinkItem i18nKey="docs" />
<LinkItem i18nKey="api" />
<LinkItem i18nKey="enterprise" />
<LinkItem i18nKey="blog" />
</div>
<div className={styles.footerColumn}>
<LinkItem i18nKey="about" />
<LinkItem i18nKey="contact" />
<LinkItem i18nKey="license" />
<LinkItem i18nKey="enterprise" />
</div>
<div className={styles.footerColumn}>
<LinkItem i18nKey="about" />
<LinkItem i18nKey="contact" />
<LinkItem i18nKey="license" />
<LinkItem i18nKey="privacy-policy" />
<LinkItem i18nKey="terms-and-conditions" />
</div>
</div>
<div className={styles.copyright}>
Expand Down
8 changes: 4 additions & 4 deletions agdb_web_next/messages/cs-CZ.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"home": "/",
"about": "/o-agdb",
"contact": "/kontakt",
"docs": "/docs",
"blog": "/blog",
"api": "/api",
"enterprise": "/enterprise",
"docs": "/docs/dokumentace",
"blog": "/blog/blog",
"api": "/api-docs/openapi",
"enterprise": "/enterprise/enterprise",
"terms-and-conditions": "/podminky-uziti",
"privacy-policy": "/ochrana-osobnich-udaju",
"license": "/license"
Expand Down
8 changes: 4 additions & 4 deletions agdb_web_next/messages/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"home": "/",
"about": "/about",
"contact": "/contact",
"docs": "/docs",
"blog": "/blog",
"api": "/api",
"enterprise": "/enterprise",
"docs": "/docs/docs",
"blog": "/blog/blog",
"api": "/api-docs/openapi",
"enterprise": "/enterprise/enterprise",
"terms-and-conditions": "/terms-and-conditions",
"privacy-policy": "/privacy-policy",
"license": "/license"
Expand Down
55 changes: 47 additions & 8 deletions agdb_web_next/pages/_meta.cs-CZ.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,50 @@
{
"index": "Domů",
"about": {
"title": "O agdb",
"type": "page"
},
"contact": {
"title": "Kontakt ↗",
"type": "page"
"*": {
"display": "hidden",
"theme": {
"sidebar": false,
"toc": false,
"breadcrumb": false
}
},
"api-docs": {
"title": "API",
"type": "page",
"display": "visible",
"theme": {
"sidebar": true,
"toc": true,
"breadcrumb": true
}
},
"enterprise": {
"title": "Enterprise",
"type": "page",
"display": "visible",
"theme": {
"sidebar": true,
"toc": true,
"breadcrumb": true
}
},
"blog": {
"title": "Blog",
"type": "page",
"display": "visible",
"theme": {
"sidebar": true,
"toc": true,
"breadcrumb": true
}
},
"docs": {
"title": "Docs",
"type": "page",
"display": "visible",
"theme": {
"sidebar": true,
"toc": true,
"breadcrumb": true
}
}
}
9 changes: 9 additions & 0 deletions agdb_web_next/pages/api-docs/_meta.cs-CZ.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"*": {
"display": "hidden"
},
"openapi": {
"title": "OpenAPI",
"display": "visible"
}
}
23 changes: 19 additions & 4 deletions agdb_web_next/pages/api-docs/_meta.en-US.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"openapi": "OpenAPI",
"rust": "Rust",
"typescript": "TypeScript",
"python": "Python"
"*": {
"display": "hidden"
},
"openapi": {
"title": "OpenAPI",
"display": "visible"
},
"rust": {
"title": "Rust",
"display": "visible"
},
"typescript": {
"title": "TypeScript",
"display": "visible"
},
"python": {
"title": "Python",
"display": "visible"
}
}
5 changes: 5 additions & 0 deletions agdb_web_next/pages/api-docs/openapi.cs-CZ.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# agdb dokumentace

Stránky jsou v přípravě.

[Dokumentace v angličtině](/en-US/docs)
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "Python"
description: "Python, Agnesoft Graph Database"
navigation:
title: "Python"
---

# python
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "Rust"
description: "Rust, Agnesoft Graph Database"
navigation:
title: "Rust"
---

# rust
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "Typescript, Javascript"
description: "Typescript, Javascript, Agnesoft Graph Database"
navigation:
title: "Typescript, Javascript"
---

# typescript / javascript
Expand Down
9 changes: 9 additions & 0 deletions agdb_web_next/pages/blog/_meta.cs-CZ.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"*": {
"display": "hidden"
},
"blog": {
"title": "Blog",
"display": "visible"
}
}
13 changes: 13 additions & 0 deletions agdb_web_next/pages/blog/_meta.en-US.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"*": {
"display": "hidden"
},
"blog": {
"title": "Blog",
"display": "visible"
},
"why-not-sql": {
"title": "Why Not SQL?",
"display": "visible"
}
}
4 changes: 0 additions & 4 deletions agdb_web_next/pages/blog/_meta.json

This file was deleted.

1 change: 1 addition & 0 deletions agdb_web_next/pages/blog/blog.cs-CZ.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# agdb blog
9 changes: 9 additions & 0 deletions agdb_web_next/pages/docs/_meta.cs-CZ.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"*": {
"display": "hidden"
},
"dokumentace": {
"title": "Dokumentace",
"display": "visible"
}
}
23 changes: 19 additions & 4 deletions agdb_web_next/pages/docs/_meta.en-US.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
{
"docs": "Docs",
"guides": "Guides",
"examples": "Examples",
"references": "References"
"*": {
"display": "hidden"
},
"docs": {
"title": "Docs",
"display": "visible"
},
"guides": {
"title": "Guides",
"display": "visible"
},
"examples": {
"title": "Examples",
"display": "visible"
},
"references": {
"title": "references",
"display": "visible"
}
}
File renamed without changes.
5 changes: 5 additions & 0 deletions agdb_web_next/pages/docs/dokumentace.cs-CZ.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# agdb dokumentace

Stránky jsou v přípravě.

[Dokumentace v angličtině](/en-US/docs)
9 changes: 9 additions & 0 deletions agdb_web_next/pages/enterprise/_meta.cs-CZ.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"*": {
"display": "hidden"
},
"enterprise": {
"title": "Enterprise",
"display": "visible"
}
}
33 changes: 27 additions & 6 deletions agdb_web_next/pages/enterprise/_meta.en-US.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
{
"enterprise": "Enterprise",
"pricing": "Pricing",
"cloud": "Cloud",
"self-hosted": "Self-hosted",
"support": "Support",
"sponsors": "Sponsors"
"*": {
"display": "hidden"
},
"enterprise": {
"title": "Enterprise",
"display": "visible"
},
"pricing": {
"title": "Pricing",
"display": "visible"
},
"cloud": {
"title": "Cloud",
"display": "visible"
},
"self-hosted": {
"title": "Self-hosted",
"display": "visible"
},
"support": {
"title": "Support",
"display": "visible"
},
"sponsors": {
"title": "Sponsors",
"display": "visible"
}
}
3 changes: 3 additions & 0 deletions agdb_web_next/pages/enterprise/enterprise-cs-CZ.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# agdb enterprise

Stránky jsou v přípravě.
1 change: 1 addition & 0 deletions agdb_web_next/pages/kontakt.cs-CZ.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Kontaktujte nás
1 change: 1 addition & 0 deletions agdb_web_next/pages/o-agdb.cs-CZ.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# O agdb
1 change: 1 addition & 0 deletions agdb_web_next/pages/ochrana-osobnich-udaju.cs-CZ.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Ochrana osobních údajů
1 change: 1 addition & 0 deletions agdb_web_next/pages/podminky-uziti.cs-CZ.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Podmínky užití
File renamed without changes.
2 changes: 1 addition & 1 deletion agdb_web_next/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const config: DocsThemeConfig = {
// link: "https://discord.com",
// },
docsRepositoryBase: "https://github.com/agnesoft/agdb",
footer: { component: Footer },
footer: { text: Footer },
i18n: [
{ locale: "en-US", text: "English" },
{ locale: "cs-CZ", text: "Čeština" },
Expand Down

0 comments on commit 9a05ae7

Please sign in to comment.