Skip to content

Commit 4070f9e

Browse files
authored
chore: reorg dvc.org (#5357)
1 parent 14c12b4 commit 4070f9e

File tree

18 files changed

+5
-804
lines changed

18 files changed

+5
-804
lines changed

content/data/datachain.yml

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

content/docs/index.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
# DVC Documentation
22

3-
<admon type="info">
4-
5-
🚀 Check out our new sister product
6-
[DataChain](https://github.com/iterative/datachain) and give it a ⭐. It works
7-
upstream and overlaps with DVC if you need to version and process a large number
8-
of files. Contact us at support@iterative.ai to discuss commercial solutions and
9-
support for reproducibility and data management for AI.
10-
11-
</admon>
12-
133
**DVC** can be installed on [Visual Studio Code], any [system terminal], and
144
used as a [Python library].
155

@@ -31,20 +21,14 @@ used as a [Python library].
3121
Non-exhaustive list of scenarios DVC can help with
3222
</card>
3323

34-
<card href="https://github.com/iterative/datachain" heading=" " headingicon="/img/logos/datachain-black.svg">
35-
Sister and upstream tool to version and wrangle data at scale
36-
</card>
37-
3824
</cards>
3925

4026
✅ If you have any questions or need specific help, feel free to join our
4127
[community](/community) or use the [support](/support) channels. We are very
4228
responsive⚡.
4329

4430
✅ Check out our GitHub repositories: [DVC](https://github.com/iterative/dvc)
45-
and
46-
[<img class="inline" width="20px" src="/img/logos/datachain-logo.svg" /> DataChain](https://github.com/iterative/datachain)
47-
give us a ⭐ if you like the projects!
31+
give us a ⭐ if you like the project!
4832

4933
✅ Contribute to DVC [on GitHub](https://github.com/iterative/dvc) or help us
5034
improve this [documentation](https://github.com/iterative/dvc.org) 🙏.

plugins/landing-page/gatsby-node.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const onCreateNode: GatsbyNode['onCreateNode'] = async api => {
5050
if (
5151
node.internal.type === 'File' &&
5252
node.sourceInstanceName === 'data' &&
53-
(node.relativePath === 'dvc.yml' || node.relativePath === 'datachain.yml')
53+
node.relativePath === 'dvc.yml'
5454
) {
5555
const fileContent = await loadNodeContent(node)
5656
const homeSlides = yaml.load(fileContent)
@@ -74,19 +74,6 @@ export const onCreateNode: GatsbyNode['onCreateNode'] = async api => {
7474
}
7575
createNode(DvcSlide)
7676
createParentChildLink({ child: DvcSlide, parent: node })
77-
} else if (node.relativePath === 'datachain.yml') {
78-
const DatachainSlide = {
79-
id: createNodeId('DatachainSlide'),
80-
parent: node.id,
81-
children: [],
82-
internal: {
83-
type: 'DatachainSlide',
84-
contentDigest: node.internal.contentDigest
85-
},
86-
slides: processedSlides
87-
}
88-
createNode(DatachainSlide)
89-
createParentChildLink({ child: DatachainSlide, parent: node })
9077
}
9178
}
9279
}

src/@dvcorg/gatsby-theme-iterative/components/HamburgerMenu/index.tsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,12 @@ import { logEvent } from '@dvcorg/gatsby-theme-iterative/src/utils/front/plausib
88
import { getFirstPage } from '@dvcorg/gatsby-theme-iterative/src/utils/shared/sidebar'
99

1010
import { ReactComponent as LogoSVG } from '../../../../../static/img/logo-white.svg'
11-
import { ReactComponent as ExternalLinkIcon } from '../../../../../static/img/external-link-icon.svg'
1211

1312
import { ReactComponent as TwitterIcon } from '@dvcorg/gatsby-theme-iterative/src/components/SocialIcon/twitter.svg'
1413
import { ReactComponent as GithubIcon } from '@dvcorg/gatsby-theme-iterative/src/components/SocialIcon/github.svg'
1514

1615
import * as styles from '@dvcorg/gatsby-theme-iterative/src/components/HamburgerMenu/styles.module.css'
1716
import menuData from '../../data/menu'
18-
import { studioUrl } from '../../../../utils/externalUrls'
1917
import LogoGradient from '@dvcorg/gatsby-theme-iterative/src/components/LogoGradient'
2018

2119
const docsPage = getFirstPage()
@@ -208,25 +206,6 @@ export const HamburgerMenu: React.FC<
208206
</li>
209207
</ul>
210208
</li>
211-
<li className={styles.section}>
212-
<p className={styles.sectionHeading}>All Tools</p>
213-
<ul className={styles.subSections}>
214-
{menuData.products.map(item => (
215-
<li className={styles.subSection} key={item.href}>
216-
<Link href={item.href} className={styles.subSectionLink}>
217-
<img
218-
className={styles.subSectionLinkImage}
219-
src={item.img}
220-
alt={item.imgAlt}
221-
/>
222-
<span className={styles.subSectionLinkTitle}>
223-
{item.title}
224-
</span>
225-
</Link>
226-
</li>
227-
))}
228-
</ul>
229-
</li>
230209
</ul>
231210
<Link
232211
href="/doc/start"
@@ -235,14 +214,6 @@ export const HamburgerMenu: React.FC<
235214
>
236215
Get started
237216
</Link>
238-
<Link
239-
href={studioUrl}
240-
className={cn(styles.linkButton)}
241-
onClick={() => handleItemClick('get-enterprise')}
242-
>
243-
Get Enterprise
244-
<ExternalLinkIcon className="ml-0.5 inline-block w-4 h-4" />
245-
</Link>
246217
</div>
247218
)
248219
}

src/@dvcorg/gatsby-theme-iterative/components/LayoutFooter/index.tsx

Lines changed: 1 addition & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ import { ReactComponent as LogoSVG } from '../../../../../static/img/dvc_icon-co
1111
import { ReactComponent as GithubSVG } from '@dvcorg/gatsby-theme-iterative/src/components/SocialIcon/github.svg'
1212
import { ReactComponent as TwitterSVG } from '@dvcorg/gatsby-theme-iterative/src/components/SocialIcon/twitter.svg'
1313
import { ReactComponent as DiscordSVG } from '@dvcorg/gatsby-theme-iterative/src/components/SocialIcon/discord.svg'
14-
import { ReactComponent as StudioSVG } from '../../../../../static/img/studio_icon-color--square_vector.svg'
15-
import { ReactComponent as DatachainSVG } from '../../../../../static/img/logos/datachain-logo.svg'
1614

1715
import * as styles from '@dvcorg/gatsby-theme-iterative/src/components/LayoutFooter/styles.module.css'
1816

19-
import { githubDatachainUrl } from '../../../../utils/externalUrls'
20-
2117
const docsPage = getFirstPage()
2218

2319
interface IFooterLinkData {
@@ -76,50 +72,6 @@ const footerListsData: Array<IFooterListData> = [
7672
icon: <DiscordSVG className={styles.icon} />
7773
}
7874
]
79-
},
80-
{
81-
header: 'Company',
82-
links: [
83-
{
84-
href: '/blog',
85-
text: 'Blog'
86-
},
87-
{
88-
href: '/doc/user-guide/privacy',
89-
text: 'Privacy Policy'
90-
},
91-
{
92-
href: 'https://iterative.ai/about#career',
93-
text: 'Career',
94-
target: '_blank'
95-
},
96-
{
97-
href: 'https://iterative.ai/brand',
98-
text: 'Media Kit'
99-
}
100-
]
101-
},
102-
{
103-
header: 'More Tools',
104-
links: [
105-
{
106-
href: githubDatachainUrl,
107-
text: 'DataChain',
108-
icon: <DatachainSVG className={styles.productIcon} />
109-
},
110-
{
111-
href: 'https://studio.datachain.ai/',
112-
text: 'DVC Studio',
113-
icon: <StudioSVG className={styles.productIcon} />,
114-
target: '_blank'
115-
},
116-
{
117-
href: 'https://marketplace.visualstudio.com/items?itemName=Iterative.dvc',
118-
text: 'VS Code Extension',
119-
icon: <LogoSVG className={styles.productIcon} />,
120-
target: '_blank'
121-
}
122-
]
12375
}
12476
]
12577

@@ -199,6 +151,7 @@ const LayoutFooter: React.FC = () => (
199151
</Link>
200152
</div>
201153
<FooterLists />
154+
202155
<div className="mx-auto mt-6">
203156
<FooterSocialIcons />
204157
</div>

src/@dvcorg/gatsby-theme-iterative/components/LayoutHeader/Nav/Popup/index.tsx

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import cn from 'classnames'
44
import Link from '@dvcorg/gatsby-theme-iterative/src/components/Link'
55
import { logEvent } from '@dvcorg/gatsby-theme-iterative/src/utils/front/plausible'
66

7-
import { ReactComponent as ExternalLinkIcon } from '../../../../../../../static/img/external-link-icon.svg'
8-
97
import * as styles from './styles.module.css'
108
import menuData from '../../../../data/menu'
119

@@ -66,46 +64,3 @@ export const OtherPopup: React.FC<IPopupProps> = ({
6664
)}
6765
</BasePopup>
6866
)
69-
70-
export const OtherToolsPopup: React.FC<IPopupProps> = ({
71-
isVisible,
72-
closePopup
73-
}) => (
74-
<BasePopup className={styles.otherToolsPopup} isVisible={isVisible}>
75-
{menuData.products.map(
76-
(
77-
{ title, icon, iconClass, description, href, target, titleImgClass },
78-
i
79-
) => (
80-
<Link
81-
className={styles.link}
82-
href={href}
83-
key={i}
84-
target={target}
85-
onClick={closePopup}
86-
>
87-
{icon ? (
88-
<div
89-
className="h-8 w-8 flex justify-end"
90-
style={{ gridArea: 'icon' }}
91-
>
92-
{icon}
93-
</div>
94-
) : (
95-
<div className={cn(styles.linkIcon, iconClass)} />
96-
)}
97-
<p className={styles.title}>
98-
{title} {href === '/' ? ' 👈' : null}
99-
{titleImgClass && (
100-
<span className={cn(styles.titleIcon, titleImgClass)}></span>
101-
)}
102-
{/^https?:\/\//.test(href) && (
103-
<ExternalLinkIcon className={styles.titleExternalIcon} />
104-
)}
105-
</p>
106-
<p className={styles.description}>{description}</p>
107-
</Link>
108-
)
109-
)}
110-
</BasePopup>
111-
)

src/@dvcorg/gatsby-theme-iterative/components/LayoutHeader/Nav/index.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ import SocialIcons from './SocialIcons'
22
import LinkItems from './LinkItems'
33

44
import { logEvent } from '@dvcorg/gatsby-theme-iterative/src/utils/front/plausible'
5-
import { ReactComponent as ExternalLinkIcon } from '../../../../../../static/img/external-link-icon.svg'
65

76
import * as styles from './styles.module.css'
87
import PseudoButton from '@dvcorg/gatsby-theme-iterative/src/components/PseudoButton'
9-
import Link from '@dvcorg/gatsby-theme-iterative/src/components/Link'
10-
import { studioUrl } from '../../../../../utils/externalUrls'
118

129
const Nav: React.FC = () => (
1310
<div className={styles.wrapper}>
@@ -21,13 +18,6 @@ const Nav: React.FC = () => (
2118
>
2219
Get Started
2320
</PseudoButton>
24-
<div className="text-dark hidden md:flex items-center">
25-
<div className="mx-3 select-none">|</div>
26-
<Link className="no-underline hover" href={studioUrl}>
27-
Get Enterprise{` `}
28-
<ExternalLinkIcon className="ml-0.5 inline-block w-4 h-4" />
29-
</Link>
30-
</div>
3121
</div>
3222
)
3323

src/@dvcorg/gatsby-theme-iterative/components/LayoutHeader/Nav/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
position: relative;
1818
border-radius: 100px;
1919
z-index: 1;
20-
padding: 16px 24px;
20+
padding: 14px 20px;
2121
font-weight: 500;
2222
font-size: 16px;
2323
line-height: 16px;

0 commit comments

Comments
 (0)