From 9c04f8d6041c008225d42a988d26f6a779321c31 Mon Sep 17 00:00:00 2001 From: Dariusz Depta <141360751+DariuszDepta@users.noreply.github.com> Date: Wed, 15 Oct 2025 14:29:45 +0200 Subject: [PATCH] Made the Welcome chapter the starting page. --- docs/welcome.md | 6 +++++- docusaurus.config.ts | 17 +++-------------- src/pages/index.module.css | 23 ----------------------- src/pages/index.tsx | 34 ---------------------------------- 4 files changed, 8 insertions(+), 72 deletions(-) delete mode 100644 src/pages/index.module.css delete mode 100644 src/pages/index.tsx diff --git a/docs/welcome.md b/docs/welcome.md index ebbaf65..c0af82a 100644 --- a/docs/welcome.md +++ b/docs/welcome.md @@ -1,8 +1,12 @@ --- +slug: / +title: Welcome sidebar_position: 1 --- -# Welcome +![CosmWasm](/img/cosmwasm.svg) + +# Welcome to CosmWasm The [x/wasm] module, the root of CosmWasm, is a [Cosmos SDK] module enabling smart contracts to execute on the CosmWasm virtual machine. CosmWasm itself refers to the whole ecosystem diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 49521ce..fa6df4c 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -7,7 +7,7 @@ import rehypeKatex from 'rehype-katex'; // This runs in Node.js - Don't use client-side code here (browser APIs, JSX...) const config: Config = { - title: 'CosmWasm', + title: 'CosmWasm Docs', favicon: 'img/cosmwasm-small.svg', // Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future @@ -42,7 +42,7 @@ const config: Config = { 'classic', { docs: { - path: 'docs', + routeBasePath: '/', sidebarPath: './sidebars.ts', remarkPlugins: [remarkMath], rehypePlugins: [rehypeKatex], @@ -62,18 +62,12 @@ const config: Config = { respectPrefersColorScheme: true, }, navbar: { - title: 'CosmWasm', + title: 'CosmWasm Docs', logo: { alt: 'CosmWasm Logo', src: 'img/cosmwasm-small.svg', }, items: [ - { - type: 'docSidebar', - sidebarId: 'tutorialSidebar', - position: 'left', - label: 'Docs', - }, { href: 'https://github.com/CosmWasm', label: 'GitHub', @@ -84,12 +78,7 @@ const config: Config = { footer: { links: [ { - title: 'CosmWasm', items: [ - { - label: 'Docs', - to: '/docs/welcome', - }, { label: 'GitHub', href: 'https://github.com/CosmWasm', diff --git a/src/pages/index.module.css b/src/pages/index.module.css deleted file mode 100644 index 9f71a5d..0000000 --- a/src/pages/index.module.css +++ /dev/null @@ -1,23 +0,0 @@ -/** - * CSS files with the .module.css suffix will be treated as CSS modules - * and scoped locally. - */ - -.heroBanner { - padding: 4rem 0; - text-align: center; - position: relative; - overflow: hidden; -} - -@media screen and (max-width: 996px) { - .heroBanner { - padding: 2rem; - } -} - -.buttons { - display: flex; - align-items: center; - justify-content: center; -} diff --git a/src/pages/index.tsx b/src/pages/index.tsx deleted file mode 100644 index 45b1d31..0000000 --- a/src/pages/index.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import type {ReactNode} from 'react'; -import clsx from 'clsx'; -import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; -import Layout from '@theme/Layout'; -import HomepageFeatures from '@site/src/components/HomepageFeatures'; -import Heading from '@theme/Heading'; - -import styles from './index.module.css'; - -function HomepageHeader() { - const {siteConfig} = useDocusaurusContext(); - return ( -
-
- CosmWasm Docs -

The definitive guide to CosmWasm smart contract development

-
-
- ); -} - -export default function Home(): ReactNode { - const {siteConfig} = useDocusaurusContext(); - return ( - - -
- -
-
- ); -}