Skip to content
Merged
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ dist
package-lock.json
.vscode
.DS_Store

# Substrate proxy
substrate-proxy
File renamed without changes.
File renamed without changes.
File renamed without changes.
271 changes: 136 additions & 135 deletions docs/tutorials/evm/how-to-ethereum.md → archive/how-to-ethereum.md

Large diffs are not rendered by default.

File renamed without changes.

Large diffs are not rendered by default.

47 changes: 23 additions & 24 deletions docs/.vuepress/components/HomePageSections.vue
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
<template>
<div :class="$style.welcome">
<h1>Welcome to the <span style="white-space: nowrap">Unique Network</span><br>documentation</h1>
<h1>
Welcome to the <span style="white-space: nowrap">Unique Network</span
><br />documentation
</h1>
<p>Take the first step by choosing your path</p>
</div>
<div :class="$style.root">
<div v-for="item in menu" :class="$style.item">
<RouterLink :to="item.path">
<img :src="withBase(`/images/icons/${item.iconName}.svg`)" :class="$style.icon"/>
<div :class="$style.title" v-html="item.title"/>
<div :class="$style.subtitle" v-html="item.subtitle"/>
<img
:src="withBase(`/images/icons/${item.iconName}.svg`)"
:class="$style.icon"
/>
<div :class="$style.title" v-html="item.title" />
<div :class="$style.subtitle" v-html="item.subtitle" />
</RouterLink>
</div>
</div>
</template>

<script setup lang="ts">
import {withBase} from '@vuepress/client';
import { withBase } from "@vuepress/client";

interface MenuItem {
title: string
path: string
subtitle: string
iconName: string
title: string;
path: string;
subtitle: string;
iconName: string;
}

const menu: MenuItem[] = [
{
title: 'Learn',
path: '/about',
subtitle: 'The basic concepts and what can you do',
iconName: 'Palette',
title: "Learn",
path: "/about",
subtitle: "The basic concepts and what can you do",
iconName: "Palette",
},
{
title: 'Build',
path: '/build',
subtitle: 'Build applications using JavaScript SDK and EVM tools',
iconName: 'Monitor',
},
{
title: 'Tutorials',
path: '/tutorials',
subtitle: 'Learn with Real-life Examples',
iconName: 'MonitorPlay',
title: "Build",
path: "/build",
subtitle: "Build applications using JavaScript SDK and EVM tools",
iconName: "Monitor",
},
];
</script>
Expand Down Expand Up @@ -71,7 +71,6 @@ a {
min-height: 35vh;
}


.welcome h1 {
font-size: 48px;
font-weight: bold;
Expand Down
22 changes: 9 additions & 13 deletions docs/.vuepress/configs/navbar.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
import {NavbarConfig} from '@vuepress/theme-default'
import { NavbarConfig } from "@vuepress/theme-default";

export const navbar: Record<string, NavbarConfig> = {
en: [
{
text: 'Learn',
link: '/about',
text: "Learn",
link: "/about",
},
{
text: 'Build',
link: '/build'
text: "Build",
link: "/build",
},
{
text: 'Tutorials',
link: '/tutorials',
text: "Reference",
link: "/reference",
},
{
text: 'Reference',
link: '/reference'
},
]
}
],
};
215 changes: 93 additions & 122 deletions docs/.vuepress/configs/sidebar.ts
Original file line number Diff line number Diff line change
@@ -1,71 +1,73 @@
import { SidebarConfig } from '@vuepress/theme-default';
import { SidebarConfig } from "@vuepress/theme-default";

export const sidebar: Record<string, SidebarConfig> = {
en: {
'/about': [
"/about": [
{
text: 'Intro',
text: "Intro",
children: [
'/about',
'/about/approach.md',
'/about/timeline.md',
'/about/networks.md',
"/about",
"/about/approach.md",
"/about/timeline.md",
"/about/networks.md",
],
},
{
text: 'Functionality',
text: "Functionality",
children: [
{
text: 'Token types ▾',
link: '/about/token-types/main-types.md',
text: "Token types ▾",
link: "/about/token-types/main-types.md",
collapsible: true,
children: [
'/about/token-types/main-types.md',
'/about/token-types/nft.md',
'/about/token-types/rft.md',
'/about/token-types/coins.md',
"/about/token-types/main-types.md",
"/about/token-types/nft.md",
"/about/token-types/rft.md",
"/about/token-types/coins.md",
],
},
{
text: 'Advanced NFT Features ▾',
link: '/about/nft-features/native.md',
text: "Advanced NFT Features ▾",
link: "/about/nft-features/native.md",
collapsible: true,
children: [
'/about/nft-features/native.md',
'/about/nft-features/multimedia.md',
'/about/nft-features/nested.md',
'/about/nft-features/dynamic.md',
'/about/nft-features/customizable.md',
'/about/nft-features/composable.md',
"/about/nft-features/native.md",
"/about/nft-features/multimedia.md",
"/about/nft-features/nested.md",
"/about/nft-features/dynamic.md",
"/about/nft-features/customizable.md",
"/about/nft-features/composable.md",
],
},
'/about/network-features/evm.md',
'/about/network-features/pricing.md',
'/about/network-features/sponsoring.md',
'/about/network-features/staking.md',
'/about/network-features/sdk-indexer',
'/about/network-features/marketplace.md',
"/about/network-features/evm.md",
"/about/network-features/pricing.md",
"/about/network-features/sponsoring.md",
"/about/network-features/staking.md",
"/about/network-features/sdk-indexer",
"/about/network-features/marketplace.md",
],
},
],
'/build': [
"/build": [
{
text: 'Intro',
children: ['/build'],
text: "Intro",
children: ["/build"],
},
{
text: 'SDK-2.0',
text: "Development",
children: [
'/build/sdk/v2/quick-start.md',
'/build/sdk/v2/balances.md',
'/build/sdk/v2/collections.md',
'/build/sdk/v2/tokens.md',
'/build/sdk/v2/sponsoring.md',
'/build/sdk/v2/indexer.md',
'/build/sdk/v2/evm.md',
'/build/sdk/v2/asset-hub.md',
'/build/sdk/v2/dapps.md',
'/build/sdk/v2/migration.md',
"/build/sdk/v2/environment.md",
"/build/sdk/v2/quick-start.md",
"/build/sdk/v2/balances.md",
"/build/sdk/v2/collections.md",
"/build/sdk/v2/tokens.md",
"/build/sdk/v2/sponsoring.md",
"/build/sdk/v2/mass-transactions.md",
"/build/sdk/v2/indexer.md",
"/build/sdk/v2/evm.md",
"/build/sdk/v2/asset-hub.md",
"/build/sdk/v2/dapps.md",
"/build/sdk/v2/migration.md",
],
},
// {
Expand All @@ -81,114 +83,83 @@ export const sidebar: Record<string, SidebarConfig> = {
// ]
// },
{
text: 'EVM',
text: "EVM",
children: [
'/build/evm/',
'/build/evm/getting-started.md',
'/build/evm/accounts.md',
"/build/evm/",
"/build/evm/getting-started.md",
"/build/evm/accounts.md",
{
text: 'Smart contracts',
link: '/build/evm/smart-contracts/index.md',
text: "Smart contracts",
link: "/build/evm/smart-contracts/index.md",
collapsible: true,
children: [
'/build/evm/smart-contracts/index.md',
'/build/evm/smart-contracts/collection-helpers.md',
'/build/evm/smart-contracts/contract-helpers.md',
'/build/evm/smart-contracts/writing-contracts.md',
"/build/evm/smart-contracts/index.md",
"/build/evm/smart-contracts/collection-helpers.md",
"/build/evm/smart-contracts/contract-helpers.md",
"/build/evm/smart-contracts/writing-contracts.md",
],
},
'/build/evm/UniqueNFT.md',
"/build/evm/UniqueNFT.md",
],
},
{
text: 'Tech Concepts',
children: [
'/build/tech-concepts/addresses',
'/build/tech-concepts/balances/index.md',
],
},
],
'/tutorials': [
{
text: 'Intro',
children: ['/tutorials'],
},
{
text: 'Minting guides',
children: [
'/tutorials/minting/main.md',
'/tutorials/minting/setup-environment.md',
'/tutorials/minting/prepare-scripts.md',
// remove OPL: '/tutorials/minting/prepare-account.md',
'/tutorials/minting/generative-nft.md',
'/tutorials/minting/mass-minting.md',
'/tutorials/minting/customizable-nfts.md',
'/tutorials/minting/mass-listing.md',
],
},
// TODO: we need to improve build/EVM section instead of this one:
// {
// text: 'EVM',
// children: [
// '/tutorials/evm/eth-general.md',
// '/tutorials/evm/using-contracts.md',
// '/tutorials/evm/using-sol-interfaces.md',
// '/tutorials/evm/ready-samples.md',
// // '/tutorials/evm/how-to-ethereum.md', - disassembled
// ],
// },
// {
// text: 'REST API',
// children: [
// ]
// },
{
text: 'How to',
children: ['/tutorials/mass-transactions.md'],
},
{
text: 'User guides',
text: "Tutorials",
children: [
{
text: 'Choose your wallet',
link: '/tutorials/user-guides/wallets.md',
text: "Minting NFTs",
link: "/build/guides/minting/main.md",
collapsible: true,
children: [
'/tutorials/user-guides/polkadotjs.md',
'/tutorials/user-guides/ledger-connect.md',
"/build/guides/minting/main.md",
"/build/guides/minting/setup-environment.md",
"/build/guides/minting/prepare-scripts.md",
"/build/guides/minting/generative-nft.md",
"/build/guides/minting/mass-minting.md",
"/build/guides/minting/customizable-nfts.md",
"/build/guides/minting/mass-listing.md",
],
},
],
},
{
text: "Tech Concepts",
children: [
"/build/tech-concepts/addresses",
"/build/tech-concepts/balances/index.md",
],
},
],
'/reference': [
"/reference": [
{
text: 'Blockchains',
children: ['/reference'],
text: "Blockchains",
children: ["/reference"],
},
{
text: 'SDK',
children: ['/reference/sdk-endpoints.md', '/reference/sdk-methods.md'],
text: "SDK",
children: ["/reference/sdk-endpoints.md"],
},
{
text: 'EVM',
children: ['/reference/tools.md'],
text: "EVM",
children: [
"/reference/tools.md",
"/reference/blockchain/contract-helpers.md",
],
},
{
text: 'Blockchain API',
text: "Blockchain API",
children: [
'/reference/blockchain/collections.md',
'/reference/blockchain/properties.md',
'/reference/blockchain/nesting.md',
'/reference/blockchain/owner-admin-roles.md',
'/reference/blockchain/rpc.md',
'/reference/blockchain/extrinsics.md',
'/reference/blockchain/events.md',
'/reference/blockchain/contract-helpers.md',
"/reference/blockchain/collections.md",
"/reference/blockchain/properties.md",
"/reference/blockchain/nesting.md",
"/reference/blockchain/owner-admin-roles.md",
"/reference/blockchain/rpc.md",
"/reference/blockchain/extrinsics.md",
"/reference/blockchain/events.md",
],
},
{
text: 'Schemas',
children: ['/reference/schemas'],
text: "Metadata",
children: ["/reference/schemas"],
},
],
},
Expand Down
Loading