Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions documentation/next.config.js → documentation/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
// Modifications Copyright (c) 2025 IOTA Stiftung
// SPDX-License-Identifier: Apache-2.0

const withNextra = require('nextra')({
import nextra from 'nextra'

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.jsx'
})
module.exports = withNextra()

export default withNextra()

// If you have other Next.js configurations, you can pass them as the parameter:
// module.exports = withNextra({ /* other next.js config */ })
// export default withNextra({ /* other next.js config */ })
4 changes: 2 additions & 2 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"dependencies": {
"autoprefixer": "^10.4.19",
"next": "^15.5.11",
"nextra": "^2.13.3",
"nextra-theme-docs": "^2.13.3",
"nextra": "^3.0.0",
"nextra-theme-docs": "^3.0.0",
"postcss": "^8.4.38",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
export default {
"index": "IOTA-Names Documentation",
"developer": "Developer",
"user": {
"title": "User",
"display": "hidden"
},
"user": "User",
"dapp": {
"title": "IOTA-Names Dapp ↗",
"type": "page",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
export default {
"integration": "Integration",
"subnames": "Subnames",
"sdk": "IOTA-Names SDK",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
export default {
"querying": "Querying",
"transactions": "Transactions"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
export default {
"registration": "Register Names",
"renew": "Renew Names",
"avatar": "Update Avatars",
"linked-address": "Link Addresses"
}
}
34 changes: 11 additions & 23 deletions documentation/theme.config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// SPDX-License-Identifier: Apache-2.0

import React from 'react';
import { useRouter } from 'next/router';
import Footer from './components/footer';

export default {
Expand All @@ -12,28 +11,17 @@ export default {
project: {
link: 'https://github.com/iotaledger/iota-names'
},
useNextSeoProps() {
const { asPath } = useRouter();

return {
titleTemplate: asPath !== '/' ? '%s | IOTA-Names Docs' : 'IOTA-Names Docs',
description:
'IOTA Name Space Documentation. Integrate IOTA-Names in your projects for the IOTA blockchain.',
openGraph: {
title: 'IOTA-Names Docs',
description:
'IOTA Name Space Documentation. Integrate IOTA-Names in your projects for the IOTA blockchain.',
site_name: 'IOTA Name Space Docs',
},
additionalMetaTags: [{ content: 'IOTA Name Space Docs', name: 'apple-mobile-web-app-title' }],
};
},
feedback: {
content: ""
},
editLink: {
component: null
},
head: (
<>
<meta name="description" content="IOTA Name Space Documentation. Integrate IOTA-Names in your projects for the IOTA blockchain." />
<meta property="og:title" content="IOTA-Names Docs" />
<meta property="og:description" content="IOTA Name Space Documentation. Integrate IOTA-Names in your projects for the IOTA blockchain." />
<meta property="og:site_name" content="IOTA Name Space Docs" />
<meta name="apple-mobile-web-app-title" content="IOTA Name Space Docs" />
</>
),
feedback: false,
editLink: false,
footer: {
component: Footer,
}
Expand Down
Loading