-}
diff --git a/sites/org/hooks/use-navigation.mjs b/sites/org/hooks/use-navigation.mjs
index 68721633cb7..a27da00ba5b 100644
--- a/sites/org/hooks/use-navigation.mjs
+++ b/sites/org/hooks/use-navigation.mjs
@@ -15,12 +15,16 @@ import { freeSewingConfig as conf } from 'site/freesewing.config.mjs'
* Note: Set 'c' to set the control level to hide things from users
*/
-const ns = ['account']
+const ns = ['account', 'sections']
const sitePages = (locale, t = false) => {
// Handle t not being present
if (!t) t = (string) => string
const pages = {
+ account: {
+ t: t('sections:account'),
+ s: 'account',
+ },
profile: {
t: t('yourProfile'),
s: 'profile',
@@ -31,10 +35,6 @@ const sitePages = (locale, t = false) => {
s: 'typography',
h: 1,
},
- account: {
- t: t('account'),
- s: 'account',
- },
}
for (const section in conf.account.fields) {
for (const field in conf.account.fields[section]) {
diff --git a/sites/org/pages/docs/docs.en.yaml b/sites/org/pages/docs/docs.en.yaml
new file mode 100644
index 00000000000..e6601d7e4ca
--- /dev/null
+++ b/sites/org/pages/docs/docs.en.yaml
@@ -0,0 +1 @@
+docs: Documentation
diff --git a/sites/org/pages/docs/index.mjs b/sites/org/pages/docs/index.mjs
index c50daf2b5fa..478de5660f2 100644
--- a/sites/org/pages/docs/index.mjs
+++ b/sites/org/pages/docs/index.mjs
@@ -1,17 +1,19 @@
// Hooks
import { useApp } from 'shared/hooks/use-app.mjs'
// Dependencies
-import Head from 'next/head'
import { mdxLoader } from 'shared/mdx/loader.mjs'
+import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
// Components
-import { PageWrapper } from 'shared/components/wrappers/page.mjs'
+import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
import { MdxWrapper } from 'shared/components/wrappers/mdx.mjs'
import { ReadMore } from 'shared/components/mdx/read-more.mjs'
import { jargon } from 'site/jargon.mjs'
-const DocsPage = ({ title, mdx, bugsnag }) => {
- const app = useApp({ bugsnag })
- const fullTitle = title + ' - FreeSewing.org'
+// Translation namespaces used on this page
+const namespaces = [...new Set(['docs', ...pageNs])]
+
+const DocsPage = (props) => {
+ const app = useApp(props)
// We don't need all MDX components here, just ReadMore
const components = {
@@ -19,15 +21,11 @@ const DocsPage = ({ title, mdx, bugsnag }) => {
}
return (
-
-
- {fullTitle}
-
+
)
}
-//
export default DocsPage
@@ -43,13 +41,15 @@ export default DocsPage
* To learn more, see: https://nextjs.org/docs/basic-features/data-fetching
*/
export async function getStaticProps({ locale }) {
- const { mdx, frontmatter } = await mdxLoader(locale, 'org', ['docs'], jargon[locale])
- const { title = 'FIXME: Please give this page a title' } = frontmatter
+ const { mdx } = await mdxLoader(locale, 'org', ['docs'], jargon[locale])
return {
props: {
+ ...(await serverSideTranslations(locale, namespaces)),
mdx,
- title,
+ page: {
+ path: ['docs'],
+ },
},
}
}
diff --git a/sites/org/pages/index.mjs b/sites/org/pages/index.mjs
index 959b3e168c1..f1824928e45 100644
--- a/sites/org/pages/index.mjs
+++ b/sites/org/pages/index.mjs
@@ -26,6 +26,31 @@ const HomePage = (props) => {
Create homepage. Meanwhile check
+
What is FreeSewing?
+ (by ChatGPT)
+
+ Freesewing is an open-source pattern making software that allows users to generate
+ custom sewing patterns based on their own measurements. It is designed to be flexible
+ and customizable, and can be used to create a wide range of garments, from simple
+ t-shirts and skirts to more complex dresses and jackets.
+
+
+ Freesewing is available for free, and users can access a wide range of pre-made patterns
+ or create their own from scratch. The software is designed to be easy to use, with an
+ intuitive interface that guides users through the process of creating a pattern
+ step-by-step.
+
+
+ In addition to the pattern making software, freesewing also has an active online
+ community of sewists and pattern makers who share tips, techniques, and advice on all
+ aspects of sewing. The community also collaborates on creating new patterns and
+ improving existing ones, and users can contribute their own patterns to the project as
+ well.
+
+
+ Overall, freesewing is a powerful tool for anyone interested in sewing and pattern
+ making, whether they are seasoned professionals or beginners just starting out.
+