Skip to content

Commit 5e62e63

Browse files
committed
docs: update docs pages
1 parent e5f1616 commit 5e62e63

File tree

9 files changed

+54
-164
lines changed

9 files changed

+54
-164
lines changed

docs/blog/2019-05-28-first-blog-post.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/blog/2019-05-29-long-blog-post.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/blog/2021-08-01-mdx-blog-post.mdx

Lines changed: 0 additions & 20 deletions
This file was deleted.
-93.9 KB
Binary file not shown.

docs/blog/2021-08-26-welcome/index.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/blog/authors.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/docusaurus.config.js

Lines changed: 33 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,15 @@ const config = {
3636
sidebarPath: require.resolve('./sidebars.js'),
3737
// Please change this to your repo.
3838
// Remove this to remove the "edit this page" links.
39-
editUrl:
40-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
41-
},
42-
blog: {
43-
showReadingTime: true,
44-
// Please change this to your repo.
45-
// Remove this to remove the "edit this page" links.
46-
editUrl:
47-
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
39+
editUrl: 'https://github.com/ReactTooltip/react-tooltip/tree/v5/docs/',
4840
},
41+
// blog: {
42+
// showReadingTime: true,
43+
// // Please change this to your repo.
44+
// // Remove this to remove the "edit this page" links.
45+
// editUrl:
46+
// 'https://github.com/ReactTooltip/react-tooltip/tree/v5/docs/',
47+
// },
4948
theme: {
5049
customCss: require.resolve('./src/css/custom.css'),
5150
},
@@ -57,21 +56,20 @@ const config = {
5756
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
5857
({
5958
navbar: {
60-
title: 'My Site',
59+
title: 'React Tooltip',
6160
logo: {
62-
alt: 'My Site Logo',
61+
alt: 'React Tooltip Logo',
6362
src: 'img/logo.svg',
6463
},
6564
items: [
6665
{
6766
type: 'doc',
6867
docId: 'getting-started',
6968
position: 'left',
70-
label: 'Tutorial',
69+
label: 'Docs',
7170
},
72-
{ to: '/blog', label: 'Blog', position: 'left' },
7371
{
74-
href: 'https://github.com/facebook/docusaurus',
72+
href: 'https://github.com/ReactTooltip/react-tooltip/',
7573
label: 'GitHub',
7674
position: 'right',
7775
},
@@ -84,43 +82,39 @@ const config = {
8482
title: 'Docs',
8583
items: [
8684
{
87-
label: 'Tutorial',
88-
to: '/docs/intro',
89-
},
90-
],
91-
},
92-
{
93-
title: 'Community',
94-
items: [
95-
{
96-
label: 'Stack Overflow',
97-
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
98-
},
99-
{
100-
label: 'Discord',
101-
href: 'https://discordapp.com/invite/docusaurus',
102-
},
103-
{
104-
label: 'Twitter',
105-
href: 'https://twitter.com/docusaurus',
85+
label: 'Getting Started',
86+
to: '/docs/getting-started',
10687
},
10788
],
10889
},
90+
// {
91+
// title: 'Community',
92+
// items: [
93+
// {
94+
// label: 'Stack Overflow',
95+
// href: 'https://stackoverflow.com/questions/tagged/docusaurus',
96+
// },
97+
// {
98+
// label: 'Discord',
99+
// href: 'https://discordapp.com/invite/docusaurus',
100+
// },
101+
// {
102+
// label: 'Twitter',
103+
// href: 'https://twitter.com/docusaurus',
104+
// },
105+
// ],
106+
// },
109107
{
110108
title: 'More',
111109
items: [
112-
{
113-
label: 'Blog',
114-
to: '/blog',
115-
},
116110
{
117111
label: 'GitHub',
118-
href: 'https://github.com/facebook/docusaurus',
112+
href: 'https://github.com/ReactTooltip/react-tooltip/',
119113
},
120114
],
121115
},
122116
],
123-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
117+
copyright: `Copyright © ${new Date().getFullYear()} React Tooltip. Docs built with Docusaurus.`,
124118
},
125119
prism: {
126120
theme: lightCodeTheme,

docs/src/pages/index.module.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,16 @@
2020
display: flex;
2121
align-items: center;
2222
justify-content: center;
23+
flex-direction: column;
24+
row-gap: 16px;
25+
}
26+
27+
@media screen and (min-width: 768px) {
28+
.buttons {
29+
display: flex;
30+
align-items: center;
31+
justify-content: center;
32+
flex-direction: row;
33+
column-gap: 16px;
34+
}
2335
}

docs/src/pages/index.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable import/no-unresolved */
12
import React from 'react'
23
import clsx from 'clsx'
34
import Link from '@docusaurus/Link'
@@ -15,8 +16,11 @@ function HomepageHeader() {
1516
<h1 className="hero__title">{siteConfig.title}</h1>
1617
<p className="hero__subtitle">{siteConfig.tagline}</p>
1718
<div className={styles.buttons}>
18-
<Link className="button button--secondary button--lg" to="/docs/intro">
19-
Docusaurus Tutorial - 5min ⏱️
19+
<Link className="button button--primary button--lg" to="/docs/category/upgrade-guide">
20+
Upgrade from V4 to V5
21+
</Link>
22+
<Link className="button button--secondary button--lg" to="/docs/getting-started">
23+
Getting Started with V5
2024
</Link>
2125
</div>
2226
</div>
@@ -25,12 +29,10 @@ function HomepageHeader() {
2529
}
2630

2731
export default function Home(): JSX.Element {
28-
const { siteConfig } = useDocusaurusContext()
32+
// const { siteConfig } = useDocusaurusContext()
2933
return (
30-
<Layout
31-
title={`Hello from ${siteConfig.title}`}
32-
description="Description will go into a meta tag in <head />"
33-
>
34+
// <Layout title={`${siteConfig.title}`} description="Awesome React Tooltip component">
35+
<Layout title="Welcome" description="Awesome React Tooltip component">
3436
<HomepageHeader />
3537
<main>
3638
<HomepageFeatures />

0 commit comments

Comments
 (0)