diff --git a/docusaurus.config.js b/docusaurus.config.js index d153d336..b12b8090 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -25,16 +25,11 @@ const config = { 'classic', { docs: { + routeBasePath: '/', sidebarPath: require.resolve('./sidebars.js'), remarkPlugins: [math], rehypePlugins: [katex], - includeCurrentVersion: true, - versions: { - current: { - label: '1.4.0-alpha', - path: '1.4.0', - }, - }, + includeCurrentVersion: false, }, theme: { customCss: [ @@ -68,13 +63,7 @@ const config = { alt: 'Aragon', src: 'img/logo-light.png', }, - items: [ - { - type: 'docsVersionDropdown', - position: 'right', - dropdownActiveClassDisabled: true, - }, - ], + items: [], }, metadata: [ {name: 'og:title', content: 'Aragon Developer Portal'}, @@ -170,7 +159,7 @@ const config = { rootPath: './versioned_docs/version-1.3.0', baseURL: 'osx/subgraph/reference-guide', homepage: './static/subgraph/index.md', - linkRoot: '/docs', + linkRoot: '/', loaders: { JsonFileLoader: { module: '@graphql-tools/json-file-loader', diff --git a/src/components/ComponentCard/index.tsx b/src/components/ComponentCard/index.tsx deleted file mode 100644 index fc1d2084..00000000 --- a/src/components/ComponentCard/index.tsx +++ /dev/null @@ -1,97 +0,0 @@ -import {IconChevronRight} from '@aragon/ui-components'; -import React, {ReactNode} from 'react'; -import styled from 'styled-components'; -import {Link} from '@aragon/ui-components'; -import {useScreenSize} from '../../hooks/useScreenSize'; - -export interface IComponentCardProps { - title: string; - description: string; - img: ReactNode; - to: string; - cta?: string; -} - -type SvgContainerProps = { - isMobile: boolean; -}; - -export const ComponentCard = (props: IComponentCardProps) => { - const {isMobile} = useScreenSize(); - - return ( - - - {props.img} - - - {props.title} - {props.description} - - } - label={props.cta || 'Learn More'} - /> - - - - ); -}; - -const CardWrapper = styled.div.attrs({ - className: 'flex flex-col md:flex-row rounded-xl border-2 border-neutral-50', -})` - box-shadow: 0px 10px 20px rgba(31, 41, 51, 0.04), - 0px 2px 6px rgba(31, 41, 51, 0.04), 0px 0px 1px rgba(31, 41, 51, 0.04); -`; -const ContentWrapper = styled.div.attrs({ - className: 'flex flex-col space-y-3 md:py-8 p-6', -})``; -const TextWrapper = styled.div.attrs({ - className: 'flex flex-col space-y-1', -})``; -const SvgContainer = styled.div.attrs({ - className: 'flex rounded-xl', -})` - svg { - width: ${getSvgSize}; - height: ${getSvgSize}; - border-radius: ${getSvgBorderRadius}; - } -`; -const Title = styled.p.attrs({ - className: 'text-xl font-bold', -})` - color: var(--neutral-700); -`; -const Description = styled.p.attrs({ - className: 'line-clamp-4 md:line-clamp-2', -})` - color: var(--neutral-500); -`; -const Image = styled.img.attrs({ - className: 'max-h-46', -})` - object-fit: cover; -`; -const A = styled.a.attrs({ - className: 'hover:no-underline', -})` -&:hover { - text-decoration: none !important; -} -`; - -function getSvgBorderRadius(props: SvgContainerProps) { - if (props.isMobile) { - return '8px 8px 0px 0px'; - } - return '8px 0px 0px 8px'; -} -function getSvgSize(props: SvgContainerProps) { - if (props.isMobile) { - return '100%'; - } - return ''; -} diff --git a/src/components/index.ts b/src/components/index.ts index 6a84f30d..64588ebd 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -1,4 +1,3 @@ -export * from './ComponentCard'; export * from './Footer'; export * from './HeroHeader'; export * from './WelcomeCard'; diff --git a/src/data/ComponentCards.tsx b/src/data/ComponentCards.tsx deleted file mode 100644 index 5a438267..00000000 --- a/src/data/ComponentCards.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import React from 'react'; -import {IComponentCardProps} from '../components/ComponentCard'; -import {IllustrationOsx, IllustrationDesignSystem} from '../components'; - -const componentCards: IComponentCardProps[] = [ - { - title: 'Aragon OSx', - description: - 'Secure, modular, and lean, the Aragon OSx protocol is your go-to DAO framework for building custom organizations on-chain.', - img: , - to: '/docs/osx', - }, - { - title: 'Design System', - description: - "Aragon's ODS is a human-centered, open-source design system powering designers and developers alike through a unified, builder-friendly framework.", - img: , - to: 'https://github.com/aragon/apps/tree/develop/packages/ui-components', - cta: 'Coming soon', - }, -]; - -export default componentCards; diff --git a/src/data/WelcomeCards.tsx b/src/data/WelcomeCards.tsx deleted file mode 100644 index e0e7e520..00000000 --- a/src/data/WelcomeCards.tsx +++ /dev/null @@ -1,16 +0,0 @@ -import React from 'react'; -import {IWelcomeCardProps} from '../components/WelcomeCard'; -import {RocketIcon, PageIcon, InfoIcon} from '../components'; - -const welcomeCards: IWelcomeCardProps[] = [ - { - title: 'Join our Developer Community', - description: - 'Keep up to date on the latest product releases and learn about working with Aragon', - icon: , - linkLabel: 'Join here', - href: 'https://aragondevelopers.substack.com/', - }, -]; - -export default welcomeCards; diff --git a/src/pages/index.tsx b/src/pages/index.tsx deleted file mode 100644 index 9f9385fd..00000000 --- a/src/pages/index.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import React from 'react'; -import Layout from '@theme/Layout'; -import styled from 'styled-components'; -import {HeroHeader} from '../components/HeroHeader'; -import {ComponentCard} from '../components/ComponentCard'; -import {WelcomeCard} from '../components/WelcomeCard'; -import componentCards from '../data/ComponentCards'; -import welcomeCards from '../data/WelcomeCards'; - -export default function Home(): JSX.Element { - return ( - - - - - Explore Products - {componentCards.map((card, index) => ( - - ))} - - - {welcomeCards.map((card, index) => ( - - ))} - - - - ); -} - -const Container = styled.div.attrs({ - className: 'md:p-18 p-6 flex-col flex space-y-12', -})``; -const ComponentCardsWrapper = styled.div.attrs({ - className: 'flex flex-col space-y-6', -})``; -const WelcomeCardsWrapper = styled.div.attrs({ - className: 'flex md:flex-row md:space-x-4 md:space-y-0 flex-col space-y-4', -})` - display: flex; - justify-content: center; /* Centers children horizontally */ - align-items: center; /* Centers children vertically */ - margin: auto; /* Centers the wrapper itself within its parent */ -`; - -const ComponentCardsTitle = styled.p.attrs({ - className: 'font-medium text-xl', -})` - color: var(--neutral-700); -`; diff --git a/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js b/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js deleted file mode 100644 index 921d804a..00000000 --- a/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +++ /dev/null @@ -1,20 +0,0 @@ -import React from 'react'; -import DocsVersionDropdownNavbarItem from '@theme-original/NavbarItem/DocsVersionDropdownNavbarItem'; -import {useLocation} from '@docusaurus/router'; - -// We don't want to show the Versions Dropdown in the mainpage. -export default function DocsVersionDropdownNavbarItemWrapper(props) { - const {pathname} = useLocation(); - - const isRootPath = pathname === '' || pathname === '/'; - - // Render null if the pathname does not start with /docs - if (isRootPath) { - return null; - } - return ( - <> - - - ); -} diff --git a/static/subgraph/index.md b/static/subgraph/index.md index 0b8d731f..d5c0a622 100644 --- a/static/subgraph/index.md +++ b/static/subgraph/index.md @@ -1,5 +1,5 @@ --- -title: Reference Guide [WIP] +title: Reference Guide sidebar_label: Reference Guide pagination_next: osx/subgraph/reference-guide/enums/permission-operation --- diff --git a/versioned_docs/version-1.3.0/osx/02-how-to-guides/index.md b/versioned_docs/version-1.3.0/osx/02-how-to-guides/index.md index 888044c7..9be344d3 100644 --- a/versioned_docs/version-1.3.0/osx/02-how-to-guides/index.md +++ b/versioned_docs/version-1.3.0/osx/02-how-to-guides/index.md @@ -3,7 +3,7 @@ title: Tutorials sidebar_label: Tutorials --- -## Welcome to our How To Guides on Using the Aragon OSx Protocol! +## Welcome to our Tutorials on Using the Aragon OSx Protocol! With a few lines of code, the Aragon OSx protocol allows you create, manage, and change your on-chain organizations, through extending functionality for DAOs through the installation and uninstallation of plugins. diff --git a/versioned_docs/version-1.3.0/osx/index.md b/versioned_docs/version-1.3.0/osx/index.md index d35031bf..8a2f0ad9 100644 --- a/versioned_docs/version-1.3.0/osx/index.md +++ b/versioned_docs/version-1.3.0/osx/index.md @@ -2,6 +2,7 @@ title: Aragon OSx sidebar_label: Introduction sidebar_position: 0 +slug: / --- ## The Contracts Behind the Protocol