From 1750b8809aed48e4c00eefc967627b5720c0259c Mon Sep 17 00:00:00 2001 From: Alexey Ivanov Date: Thu, 27 Feb 2020 04:06:33 +0900 Subject: [PATCH 01/45] Move static pages to gatsby --- .babelrc | 4 - .gitignore | 5 +- .restyled.yaml | 2 +- README.md | 2 +- .../static => content}/docs/changelog/0.18.md | 4 +- .../static => content}/docs/changelog/0.35.md | 2 +- .../docs/command-reference/add.md | 0 .../docs/command-reference/cache/dir.md | 0 .../docs/command-reference/cache/index.md | 0 .../docs/command-reference/checkout.md | 0 .../docs/command-reference/commit.md | 0 .../docs/command-reference/config.md | 0 .../docs/command-reference/destroy.md | 0 .../docs/command-reference/diff.md | 0 .../docs/command-reference/fetch.md | 0 .../docs/command-reference/gc.md | 0 .../docs/command-reference/get-url.md | 0 .../docs/command-reference/get.md | 0 .../docs/command-reference/import-url.md | 0 .../docs/command-reference/import.md | 0 .../docs/command-reference/index.md | 0 .../docs/command-reference/init.md | 0 .../docs/command-reference/install.md | 0 .../docs/command-reference/lock.md | 0 .../docs/command-reference/metrics/add.md | 0 .../docs/command-reference/metrics/diff.md | 0 .../docs/command-reference/metrics/index.md | 0 .../docs/command-reference/metrics/modify.md | 0 .../docs/command-reference/metrics/remove.md | 0 .../docs/command-reference/metrics/show.md | 0 .../docs/command-reference/move.md | 0 .../docs/command-reference/pipeline/index.md | 0 .../docs/command-reference/pipeline/list.md | 0 .../docs/command-reference/pipeline/show.md | 0 .../docs/command-reference/pull.md | 0 .../docs/command-reference/push.md | 0 .../docs/command-reference/remote/add.md | 0 .../docs/command-reference/remote/default.md | 0 .../docs/command-reference/remote/index.md | 0 .../docs/command-reference/remote/list.md | 0 .../docs/command-reference/remote/modify.md | 0 .../docs/command-reference/remote/remove.md | 0 .../docs/command-reference/remove.md | 0 .../docs/command-reference/repro.md | 0 .../docs/command-reference/root.md | 0 .../docs/command-reference/run.md | 0 .../docs/command-reference/status.md | 0 .../docs/command-reference/unlock.md | 0 .../docs/command-reference/unprotect.md | 0 .../docs/command-reference/update.md | 0 .../docs/command-reference/version.md | 0 .../docs/get-started/add-files.md | 0 .../docs/get-started/agenda.md | 2 +- .../docs/get-started/compare-experiments.md | 0 .../docs/get-started/configure.md | 0 .../docs/get-started/connect-code-and-data.md | 0 .../docs/get-started/experiments.md | 0 .../docs/get-started/import-data.md | 0 .../docs/get-started/index.md | 0 .../docs/get-started/initialize.md | 0 .../docs/get-started/metrics.md | 0 .../docs/get-started/older-versions.md | 0 .../docs/get-started/pipeline.md | 0 .../docs/get-started/reproduce.md | 0 .../docs/get-started/retrieve-data.md | 0 .../docs/get-started/store-data.md | 0 .../docs/get-started/visualize.md | 0 {public/static => content}/docs/glossary.js | 0 .../docs/install/completion.md | 0 .../static => content}/docs/install/index.md | 0 .../static => content}/docs/install/linux.md | 0 .../static => content}/docs/install/macos.md | 0 .../docs/install/plugins.md | 0 .../docs/install/pre-release.md | 0 .../docs/install/windows.md | 0 {public/static => content}/docs/sidebar.json | 0 .../docs/tutorials/community.md | 0 .../docs/tutorials/deep/define-ml-pipeline.md | 0 .../docs/tutorials/deep/index.md | 4 +- .../docs/tutorials/deep/preparation.md | 0 .../docs/tutorials/deep/reproducibility.md | 0 .../docs/tutorials/deep/sharing-data.md | 0 .../docs/tutorials/index.md | 0 .../docs/tutorials/interactive.md | 0 .../docs/tutorials/pipelines.md | 2 +- .../docs/tutorials/versioning.md | 4 +- .../understanding-dvc/collaboration-issues.md | 0 .../docs/understanding-dvc/core-features.md | 0 .../docs/understanding-dvc/existing-tools.md | 0 .../docs/understanding-dvc/how-it-works.md | 0 .../understanding-dvc/related-technologies.md | 0 .../docs/understanding-dvc/resources.md | 0 .../docs/understanding-dvc/what-is-dvc.md | 0 .../docs/use-cases/data-registries.md | 2 +- .../docs/use-cases/index.md | 0 .../use-cases/shared-development-server.md | 2 +- .../use-cases/sharing-data-and-model-files.md | 2 +- .../versioning-data-and-model-files.md | 4 +- .../docs/user-guide/analytics.md | 0 .../docs/user-guide/contributing/core.md | 0 .../docs/user-guide/contributing/docs.md | 13 +- .../docs/user-guide/dvc-file-format.md | 0 .../user-guide/dvc-files-and-directories.md | 0 .../docs/user-guide/dvcignore.md | 0 .../docs/user-guide/external-dependencies.md | 0 .../docs/user-guide/index.md | 0 .../user-guide/large-dataset-optimization.md | 0 .../docs/user-guide/managing-external-data.md | 0 .../docs/user-guide/privacy.md | 0 .../docs/user-guide/running-dvc-on-windows.md | 0 .../user-guide/setup-google-drive-remote.md | 4 +- .../docs/user-guide/troubleshooting.md | 0 .../docs/user-guide/updating-tracked-files.md | 0 gatsby-config.js | 59 + next.config.js | 14 - package.json | 22 +- pages/_app.js | 31 - pages/_document.js | 145 - pages/community.js | 28 - pages/features.js | 18 - pages/index.js | 29 - pages/support.js | 18 - scripts/exclude-links.txt | 2 +- scripts/link-check-git-all.sh | 2 +- src/components/Community/Button/index.js | 26 - src/components/Community/Button/styles.js | 19 - src/components/Community/Contribute/index.js | 23 +- src/components/Community/Events/index.js | 11 +- src/components/Community/Learn/index.js | 10 +- src/components/Community/Meet/index.js | 24 +- src/components/Community/Section/index.js | 8 - src/components/Community/data.json | 14 +- src/components/Community/styles.js | 18 + src/components/Diagram/index.js | 24 +- .../Documentation/Markdown/index.js | 2 + .../Documentation/Markdown/styles.js | 8 +- .../Documentation/RightPanel/styles.js | 4 +- .../Documentation/SidebarMenu/index.js | 2 + .../Documentation/SidebarMenu/styles.js | 2 +- .../Documentation/Tutorials/styles.js | 2 +- src/components/Documentation/index.js | 5 +- src/components/DownloadButton/index.js | 4 +- src/components/Features/index.js | 21 +- src/components/Footer/index.js | 13 +- src/components/GithubLine/index.js | 8 +- src/components/HamburgerMenu/index.js | 18 +- src/components/LandingHero/index.js | 2 +- .../components/Layout}/fonts/Brandon_bld.otf | Bin .../components/Layout}/fonts/Brandon_bld.woff | Bin .../Layout}/fonts/Brandon_bld_it.otf | Bin .../components/Layout}/fonts/Brandon_blk.otf | Bin .../Layout}/fonts/Brandon_blk_it.otf | Bin .../Layout}/fonts/Brandon_light.otf | Bin .../Layout}/fonts/Brandon_light.woff | Bin .../Layout}/fonts/Brandon_light_it.otf | Bin .../components/Layout}/fonts/Brandon_med.otf | Bin .../components/Layout}/fonts/Brandon_med.woff | Bin .../Layout}/fonts/Brandon_med_it.otf | Bin .../components/Layout}/fonts/Brandon_reg.otf | Bin .../components/Layout}/fonts/Brandon_reg.woff | Bin .../Layout}/fonts/Brandon_reg_it.otf | Bin .../components/Layout}/fonts/Brandon_thin.otf | Bin .../Layout}/fonts/Brandon_thin_it.otf | Bin .../components/Layout}/fonts/fonts.css | 10 +- src/components/Layout/index.js | 21 +- src/components/LearnMore/index.js | 2 +- src/components/LocalLink/index.js | 22 +- src/components/Nav/index.js | 4 +- src/components/Nav/styles.js | 2 +- src/components/PromoSection/index.js | 4 +- src/components/PromoSection/styles.js | 4 +- src/components/SEO/index.js | 137 + src/components/SearchForm/styles.js | 2 +- src/components/Subscribe/index.js | 4 +- src/components/Support/index.js | 8 +- src/components/Support/styles.js | 2 +- src/components/Tooltip/index.js | 2 +- src/components/TopMenu/index.js | 7 +- src/components/TrySection/index.js | 6 +- src/components/TrySection/styles.js | 4 +- src/components/UseCases/index.js | 6 +- src/components/Video/index.js | 2 +- src/consts.js | 9 - src/html.js | 58 + src/pages/community.js | 13 + src/pages/features.js | 13 + src/pages/index.js | 13 + src/pages/support.js | 13 + src/utils/ga.js | 34 +- src/utils/sidebar.js | 6 +- src/utils/sidebar.test.js | 64 +- .../static/img => static}/favicon-16x16.png | Bin .../static/img => static}/favicon-32x32.png | Bin {public/static/img => static}/favicon.ico | Bin .../static => static}/img/0.18-pipeline.gif | Bin .../static => static}/img/0.18-progress.gif | Bin .../static => static}/img/0.35-metrics.gif | Bin {public/static => static}/img/arrow.svg | 0 .../img/arrow_right_dark.svg | 0 .../img/arrow_right_white.svg | 0 .../static => static}/img/cats-and-dogs.jpg | Bin {public/static => static}/img/chat.png | Bin {public/static => static}/img/click.png | Bin .../img/community/banner-mobile.png | Bin .../img/community/banner.png | Bin .../img/community/contribute.svg | 0 .../img/community/contribute_bg.jpg | Bin .../img/community/discord.svg | 0 .../img/community/discourse.svg | 0 .../img/community/event-placeholder.svg | 0 .../img/community/events.svg | 0 .../img/community/events/divops.jpg | Bin .../img/community/events/mlprague.jpg | Bin .../img/community/github.svg | 0 .../img/community/icon-community.svg | 0 .../img/community/icon-contribute.svg | 0 .../img/community/icon-discord.svg | 0 .../img/community/icon-events.svg | 0 .../img/community/icon-github.svg | 0 .../img/community/icon-learn.svg | 0 .../img/community/icon-mail.svg | 0 .../img/community/icon-twitter.svg | 0 .../static => static}/img/community/learn.svg | 0 .../img/community/learn_bg.jpg | Bin .../static => static}/img/community/meet.svg | 0 .../img/community/meet_bg.jpg | Bin .../static => static}/img/community/menu.png | Bin .../img/community/ugc/codecentric.png | Bin .../img/community/ugc/donuts.png | Bin .../img/community/ugc/fowler_icon.ico | Bin .../img/community/ugc/medium_logo.png | Bin .../img/community/ugc/ml-axis-of-change.png | Bin .../img/community/ugc/tds_logo.png | Bin .../static => static}/img/data-registry.png | Bin {public/static => static}/img/discord.png | Bin {public/static => static}/img/discord.svg | 0 .../static => static}/img/discuss-logo.png | Bin .../static => static}/img/download-arrow.svg | 0 .../static => static}/img/example-flow-2x.png | Bin {public/static => static}/img/experiments.png | Bin .../static => static}/img/external-link.svg | 0 .../img/features/icons/branching.svg | 0 .../img/features/icons/cluster.svg | 0 .../img/features/icons/failures.svg | 0 .../img/features/icons/fill-597.svg | 0 .../img/features/icons/git-icon.svg | 0 .../img/features/icons/languages-icon.svg | 0 .../img/features/icons/metrics-icon.svg | 0 .../img/features/icons/ml-pipe.svg | 0 .../img/features/icons/rectangle-7.svg | 0 .../img/features/icons/repro.svg | 0 .../img/features/icons/storage-icon.svg | 0 {public/static => static}/img/flow-1.png | Bin {public/static => static}/img/flow-2.png | Bin {public/static => static}/img/flow-3.png | Bin {public/static => static}/img/flow-large.png | Bin {public/static => static}/img/flow.gif | Bin {public/static => static}/img/flow.png | Bin {public/static => static}/img/flow1.jpg | Bin {public/static => static}/img/flow2.jpg | Bin {public/static => static}/img/flow3.jpg | Bin .../img/gdrive-create-credentials.png | Bin .../img/gdrive-enable-apis-and-services.png | Bin {public/static => static}/img/git-icon.svg | 0 {public/static => static}/img/github.png | Bin {public/static => static}/img/github_icon.svg | 0 .../static => static}/img/github_small.png | Bin .../static => static}/img/github_small.svg | 0 {public/static => static}/img/glyph-1.svg | 0 {public/static => static}/img/glyph-2.svg | 0 {public/static => static}/img/glyph-3.svg | 0 {public/static => static}/img/glyph-4.svg | 0 {public/static => static}/img/graph.png | Bin {public/static => static}/img/graphic.png | Bin {public/static => static}/img/iterative.png | Bin .../img/katacoda_grey_small.png | Bin {public/static => static}/img/learn-more.svg | 0 .../img/learn_more_arrow.svg | 0 {public/static => static}/img/link.svg | 0 .../img/logo-github-readme.png | Bin .../static => static}/img/logo-owl-readme.png | Bin {public/static => static}/img/logo.png | Bin {public/static => static}/img/logo_white.png | Bin .../img/model-sharing-digram.png | Bin .../img/model-versioning-diagram.png | Bin {public/static => static}/img/play-icon.svg | 0 .../static => static}/img/reproducibility.png | Bin {public/static => static}/img/result.png | Bin {public/static => static}/img/save-reprro.svg | 0 {public/static => static}/img/search.svg | 0 {public/static => static}/img/share.svg | 0 .../static => static}/img/shared-server.png | Bin {public/static => static}/img/star_small.svg | 0 {public/static => static}/img/support/bug.svg | 0 .../static => static}/img/support/chat.svg | 0 .../static => static}/img/support/discord.svg | 0 .../static => static}/img/support/email.svg | 0 .../static => static}/img/support/forum.svg | 0 {public/static => static}/img/triangle.svg | 0 .../static => static}/img/triangle_dark.svg | 0 {public/static => static}/img/twitter.png | Bin {public/static => static}/img/versioning.png | Bin {public/static => static}/img/watch_white.svg | 0 .../static/img => static}/social-share.png | Bin yarn.lock | 7400 +++++++++++++---- 305 files changed, 6318 insertions(+), 2248 deletions(-) delete mode 100644 .babelrc rename {public/static => content}/docs/changelog/0.18.md (94%) rename {public/static => content}/docs/changelog/0.35.md (98%) rename {public/static => content}/docs/command-reference/add.md (100%) rename {public/static => content}/docs/command-reference/cache/dir.md (100%) rename {public/static => content}/docs/command-reference/cache/index.md (100%) rename {public/static => content}/docs/command-reference/checkout.md (100%) rename {public/static => content}/docs/command-reference/commit.md (100%) rename {public/static => content}/docs/command-reference/config.md (100%) rename {public/static => content}/docs/command-reference/destroy.md (100%) rename {public/static => content}/docs/command-reference/diff.md (100%) rename {public/static => content}/docs/command-reference/fetch.md (100%) rename {public/static => content}/docs/command-reference/gc.md (100%) rename {public/static => content}/docs/command-reference/get-url.md (100%) rename {public/static => content}/docs/command-reference/get.md (100%) rename {public/static => content}/docs/command-reference/import-url.md (100%) rename {public/static => content}/docs/command-reference/import.md (100%) rename {public/static => content}/docs/command-reference/index.md (100%) rename {public/static => content}/docs/command-reference/init.md (100%) rename {public/static => content}/docs/command-reference/install.md (100%) rename {public/static => content}/docs/command-reference/lock.md (100%) rename {public/static => content}/docs/command-reference/metrics/add.md (100%) rename {public/static => content}/docs/command-reference/metrics/diff.md (100%) rename {public/static => content}/docs/command-reference/metrics/index.md (100%) rename {public/static => content}/docs/command-reference/metrics/modify.md (100%) rename {public/static => content}/docs/command-reference/metrics/remove.md (100%) rename {public/static => content}/docs/command-reference/metrics/show.md (100%) rename {public/static => content}/docs/command-reference/move.md (100%) rename {public/static => content}/docs/command-reference/pipeline/index.md (100%) rename {public/static => content}/docs/command-reference/pipeline/list.md (100%) rename {public/static => content}/docs/command-reference/pipeline/show.md (100%) rename {public/static => content}/docs/command-reference/pull.md (100%) rename {public/static => content}/docs/command-reference/push.md (100%) rename {public/static => content}/docs/command-reference/remote/add.md (100%) rename {public/static => content}/docs/command-reference/remote/default.md (100%) rename {public/static => content}/docs/command-reference/remote/index.md (100%) rename {public/static => content}/docs/command-reference/remote/list.md (100%) rename {public/static => content}/docs/command-reference/remote/modify.md (100%) rename {public/static => content}/docs/command-reference/remote/remove.md (100%) rename {public/static => content}/docs/command-reference/remove.md (100%) rename {public/static => content}/docs/command-reference/repro.md (100%) rename {public/static => content}/docs/command-reference/root.md (100%) rename {public/static => content}/docs/command-reference/run.md (100%) rename {public/static => content}/docs/command-reference/status.md (100%) rename {public/static => content}/docs/command-reference/unlock.md (100%) rename {public/static => content}/docs/command-reference/unprotect.md (100%) rename {public/static => content}/docs/command-reference/update.md (100%) rename {public/static => content}/docs/command-reference/version.md (100%) rename {public/static => content}/docs/get-started/add-files.md (100%) rename {public/static => content}/docs/get-started/agenda.md (97%) rename {public/static => content}/docs/get-started/compare-experiments.md (100%) rename {public/static => content}/docs/get-started/configure.md (100%) rename {public/static => content}/docs/get-started/connect-code-and-data.md (100%) rename {public/static => content}/docs/get-started/experiments.md (100%) rename {public/static => content}/docs/get-started/import-data.md (100%) rename {public/static => content}/docs/get-started/index.md (100%) rename {public/static => content}/docs/get-started/initialize.md (100%) rename {public/static => content}/docs/get-started/metrics.md (100%) rename {public/static => content}/docs/get-started/older-versions.md (100%) rename {public/static => content}/docs/get-started/pipeline.md (100%) rename {public/static => content}/docs/get-started/reproduce.md (100%) rename {public/static => content}/docs/get-started/retrieve-data.md (100%) rename {public/static => content}/docs/get-started/store-data.md (100%) rename {public/static => content}/docs/get-started/visualize.md (100%) rename {public/static => content}/docs/glossary.js (100%) rename {public/static => content}/docs/install/completion.md (100%) rename {public/static => content}/docs/install/index.md (100%) rename {public/static => content}/docs/install/linux.md (100%) rename {public/static => content}/docs/install/macos.md (100%) rename {public/static => content}/docs/install/plugins.md (100%) rename {public/static => content}/docs/install/pre-release.md (100%) rename {public/static => content}/docs/install/windows.md (100%) rename {public/static => content}/docs/sidebar.json (100%) rename {public/static => content}/docs/tutorials/community.md (100%) rename {public/static => content}/docs/tutorials/deep/define-ml-pipeline.md (100%) rename {public/static => content}/docs/tutorials/deep/index.md (94%) rename {public/static => content}/docs/tutorials/deep/preparation.md (100%) rename {public/static => content}/docs/tutorials/deep/reproducibility.md (100%) rename {public/static => content}/docs/tutorials/deep/sharing-data.md (100%) rename {public/static => content}/docs/tutorials/index.md (100%) rename {public/static => content}/docs/tutorials/interactive.md (100%) rename {public/static => content}/docs/tutorials/pipelines.md (99%) rename {public/static => content}/docs/tutorials/versioning.md (99%) rename {public/static => content}/docs/understanding-dvc/collaboration-issues.md (100%) rename {public/static => content}/docs/understanding-dvc/core-features.md (100%) rename {public/static => content}/docs/understanding-dvc/existing-tools.md (100%) rename {public/static => content}/docs/understanding-dvc/how-it-works.md (100%) rename {public/static => content}/docs/understanding-dvc/related-technologies.md (100%) rename {public/static => content}/docs/understanding-dvc/resources.md (100%) rename {public/static => content}/docs/understanding-dvc/what-is-dvc.md (100%) rename {public/static => content}/docs/use-cases/data-registries.md (99%) rename {public/static => content}/docs/use-cases/index.md (100%) rename {public/static => content}/docs/use-cases/shared-development-server.md (98%) rename {public/static => content}/docs/use-cases/sharing-data-and-model-files.md (98%) rename {public/static => content}/docs/use-cases/versioning-data-and-model-files.md (98%) rename {public/static => content}/docs/user-guide/analytics.md (100%) rename {public/static => content}/docs/user-guide/contributing/core.md (100%) rename {public/static => content}/docs/user-guide/contributing/docs.md (93%) rename {public/static => content}/docs/user-guide/dvc-file-format.md (100%) rename {public/static => content}/docs/user-guide/dvc-files-and-directories.md (100%) rename {public/static => content}/docs/user-guide/dvcignore.md (100%) rename {public/static => content}/docs/user-guide/external-dependencies.md (100%) rename {public/static => content}/docs/user-guide/index.md (100%) rename {public/static => content}/docs/user-guide/large-dataset-optimization.md (100%) rename {public/static => content}/docs/user-guide/managing-external-data.md (100%) rename {public/static => content}/docs/user-guide/privacy.md (100%) rename {public/static => content}/docs/user-guide/running-dvc-on-windows.md (100%) rename {public/static => content}/docs/user-guide/setup-google-drive-remote.md (97%) rename {public/static => content}/docs/user-guide/troubleshooting.md (100%) rename {public/static => content}/docs/user-guide/updating-tracked-files.md (100%) create mode 100644 gatsby-config.js delete mode 100644 next.config.js delete mode 100644 pages/_app.js delete mode 100644 pages/_document.js delete mode 100644 pages/community.js delete mode 100644 pages/features.js delete mode 100644 pages/index.js delete mode 100644 pages/support.js delete mode 100644 src/components/Community/Button/index.js delete mode 100644 src/components/Community/Button/styles.js rename {public/static => src/components/Layout}/fonts/Brandon_bld.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_bld.woff (100%) rename {public/static => src/components/Layout}/fonts/Brandon_bld_it.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_blk.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_blk_it.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_light.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_light.woff (100%) rename {public/static => src/components/Layout}/fonts/Brandon_light_it.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_med.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_med.woff (100%) rename {public/static => src/components/Layout}/fonts/Brandon_med_it.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_reg.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_reg.woff (100%) rename {public/static => src/components/Layout}/fonts/Brandon_reg_it.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_thin.otf (100%) rename {public/static => src/components/Layout}/fonts/Brandon_thin_it.otf (100%) rename {public/static => src/components/Layout}/fonts/fonts.css (72%) create mode 100644 src/components/SEO/index.js create mode 100644 src/html.js create mode 100644 src/pages/community.js create mode 100644 src/pages/features.js create mode 100644 src/pages/index.js create mode 100644 src/pages/support.js rename {public/static/img => static}/favicon-16x16.png (100%) rename {public/static/img => static}/favicon-32x32.png (100%) rename {public/static/img => static}/favicon.ico (100%) rename {public/static => static}/img/0.18-pipeline.gif (100%) rename {public/static => static}/img/0.18-progress.gif (100%) rename {public/static => static}/img/0.35-metrics.gif (100%) rename {public/static => static}/img/arrow.svg (100%) rename {public/static => static}/img/arrow_right_dark.svg (100%) rename {public/static => static}/img/arrow_right_white.svg (100%) rename {public/static => static}/img/cats-and-dogs.jpg (100%) rename {public/static => static}/img/chat.png (100%) rename {public/static => static}/img/click.png (100%) rename {public/static => static}/img/community/banner-mobile.png (100%) rename {public/static => static}/img/community/banner.png (100%) rename {public/static => static}/img/community/contribute.svg (100%) rename {public/static => static}/img/community/contribute_bg.jpg (100%) rename {public/static => static}/img/community/discord.svg (100%) rename {public/static => static}/img/community/discourse.svg (100%) rename {public/static => static}/img/community/event-placeholder.svg (100%) rename {public/static => static}/img/community/events.svg (100%) rename {public/static => static}/img/community/events/divops.jpg (100%) rename {public/static => static}/img/community/events/mlprague.jpg (100%) rename {public/static => static}/img/community/github.svg (100%) rename {public/static => static}/img/community/icon-community.svg (100%) rename {public/static => static}/img/community/icon-contribute.svg (100%) rename {public/static => static}/img/community/icon-discord.svg (100%) rename {public/static => static}/img/community/icon-events.svg (100%) rename {public/static => static}/img/community/icon-github.svg (100%) rename {public/static => static}/img/community/icon-learn.svg (100%) rename {public/static => static}/img/community/icon-mail.svg (100%) rename {public/static => static}/img/community/icon-twitter.svg (100%) rename {public/static => static}/img/community/learn.svg (100%) rename {public/static => static}/img/community/learn_bg.jpg (100%) rename {public/static => static}/img/community/meet.svg (100%) rename {public/static => static}/img/community/meet_bg.jpg (100%) rename {public/static => static}/img/community/menu.png (100%) rename {public/static => static}/img/community/ugc/codecentric.png (100%) rename {public/static => static}/img/community/ugc/donuts.png (100%) rename {public/static => static}/img/community/ugc/fowler_icon.ico (100%) rename {public/static => static}/img/community/ugc/medium_logo.png (100%) rename {public/static => static}/img/community/ugc/ml-axis-of-change.png (100%) rename {public/static => static}/img/community/ugc/tds_logo.png (100%) rename {public/static => static}/img/data-registry.png (100%) rename {public/static => static}/img/discord.png (100%) rename {public/static => static}/img/discord.svg (100%) rename {public/static => static}/img/discuss-logo.png (100%) rename {public/static => static}/img/download-arrow.svg (100%) rename {public/static => static}/img/example-flow-2x.png (100%) rename {public/static => static}/img/experiments.png (100%) rename {public/static => static}/img/external-link.svg (100%) rename {public/static => static}/img/features/icons/branching.svg (100%) rename {public/static => static}/img/features/icons/cluster.svg (100%) rename {public/static => static}/img/features/icons/failures.svg (100%) rename {public/static => static}/img/features/icons/fill-597.svg (100%) rename {public/static => static}/img/features/icons/git-icon.svg (100%) rename {public/static => static}/img/features/icons/languages-icon.svg (100%) rename {public/static => static}/img/features/icons/metrics-icon.svg (100%) rename {public/static => static}/img/features/icons/ml-pipe.svg (100%) rename {public/static => static}/img/features/icons/rectangle-7.svg (100%) rename {public/static => static}/img/features/icons/repro.svg (100%) rename {public/static => static}/img/features/icons/storage-icon.svg (100%) rename {public/static => static}/img/flow-1.png (100%) rename {public/static => static}/img/flow-2.png (100%) rename {public/static => static}/img/flow-3.png (100%) rename {public/static => static}/img/flow-large.png (100%) rename {public/static => static}/img/flow.gif (100%) rename {public/static => static}/img/flow.png (100%) rename {public/static => static}/img/flow1.jpg (100%) rename {public/static => static}/img/flow2.jpg (100%) rename {public/static => static}/img/flow3.jpg (100%) rename {public/static => static}/img/gdrive-create-credentials.png (100%) rename {public/static => static}/img/gdrive-enable-apis-and-services.png (100%) rename {public/static => static}/img/git-icon.svg (100%) rename {public/static => static}/img/github.png (100%) rename {public/static => static}/img/github_icon.svg (100%) rename {public/static => static}/img/github_small.png (100%) rename {public/static => static}/img/github_small.svg (100%) rename {public/static => static}/img/glyph-1.svg (100%) rename {public/static => static}/img/glyph-2.svg (100%) rename {public/static => static}/img/glyph-3.svg (100%) rename {public/static => static}/img/glyph-4.svg (100%) rename {public/static => static}/img/graph.png (100%) rename {public/static => static}/img/graphic.png (100%) rename {public/static => static}/img/iterative.png (100%) rename {public/static => static}/img/katacoda_grey_small.png (100%) rename {public/static => static}/img/learn-more.svg (100%) rename {public/static => static}/img/learn_more_arrow.svg (100%) rename {public/static => static}/img/link.svg (100%) rename {public/static => static}/img/logo-github-readme.png (100%) rename {public/static => static}/img/logo-owl-readme.png (100%) rename {public/static => static}/img/logo.png (100%) rename {public/static => static}/img/logo_white.png (100%) rename {public/static => static}/img/model-sharing-digram.png (100%) rename {public/static => static}/img/model-versioning-diagram.png (100%) rename {public/static => static}/img/play-icon.svg (100%) rename {public/static => static}/img/reproducibility.png (100%) rename {public/static => static}/img/result.png (100%) rename {public/static => static}/img/save-reprro.svg (100%) rename {public/static => static}/img/search.svg (100%) rename {public/static => static}/img/share.svg (100%) rename {public/static => static}/img/shared-server.png (100%) rename {public/static => static}/img/star_small.svg (100%) rename {public/static => static}/img/support/bug.svg (100%) rename {public/static => static}/img/support/chat.svg (100%) rename {public/static => static}/img/support/discord.svg (100%) rename {public/static => static}/img/support/email.svg (100%) rename {public/static => static}/img/support/forum.svg (100%) rename {public/static => static}/img/triangle.svg (100%) rename {public/static => static}/img/triangle_dark.svg (100%) rename {public/static => static}/img/twitter.png (100%) rename {public/static => static}/img/versioning.png (100%) rename {public/static => static}/img/watch_white.svg (100%) rename {public/static/img => static}/social-share.png (100%) diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 279d3f105a..0000000000 --- a/.babelrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "presets": ["next/babel"], - "plugins": ["transform-define", "transform-object-assign"] -} diff --git a/.gitignore b/.gitignore index d0ba1dbc90..8d8e99b86d 100644 --- a/.gitignore +++ b/.gitignore @@ -56,8 +56,11 @@ typings/ # Next.js build output .idea -.next/ *.log # Mac finder artifacts .DS_Store + +# Gatsby cache +.cache +public \ No newline at end of file diff --git a/.restyled.yaml b/.restyled.yaml index 8a958a9d83..dc85f8a683 100644 --- a/.restyled.yaml +++ b/.restyled.yaml @@ -4,5 +4,5 @@ restylers: include: - './*.{js,md}' - 'pages/**/*.js' - - 'public/static/docs/**/*.{js,md}' + - 'content/docs/**/*.{js,md}' - 'src/**/*.js' diff --git a/README.md b/README.md index dbbf0bf0b7..d71a000618 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -![owl logo](https://dvc.org/static/img/logo-github-readme.png) +![owl logo](https://dvc.org/img/logo-github-readme.png) [![Maintainability](https://api.codeclimate.com/v1/badges/5872e0a572ec8b74bd8d/maintainability)](https://codeclimate.com/github/iterative/dvc.org/maintainability) [![CircleCI](https://circleci.com/gh/iterative/dvc.org.svg?style=svg)](https://circleci.com/gh/iterative/dvc.org) diff --git a/public/static/docs/changelog/0.18.md b/content/docs/changelog/0.18.md similarity index 94% rename from public/static/docs/changelog/0.18.md rename to content/docs/changelog/0.18.md index 27890748e4..08dbf0f167 100644 --- a/public/static/docs/changelog/0.18.md +++ b/content/docs/changelog/0.18.md @@ -29,10 +29,10 @@ really excited to share the progress with you: to use: - More heavy operations render dynamic progress bar (e.g. file hash - computation): ![](/static/img/0.18-progress.gif) + computation): ![](/img/0.18-progress.gif) - Pipeline visualization via command line. Just run `dvc pipeline show` with - option `--ascii` and a target: ![](/static/img/0.18-pipeline.gif) + option `--ascii` and a target: ![](/img/0.18-pipeline.gif) - Many hidden gems: `dvc repro` dry and interactive modes, improved overall commands verbosity and revised commands help. diff --git a/public/static/docs/changelog/0.35.md b/content/docs/changelog/0.35.md similarity index 98% rename from public/static/docs/changelog/0.35.md rename to content/docs/changelog/0.35.md index 774fd547d6..a3063ec96d 100644 --- a/public/static/docs/changelog/0.35.md +++ b/content/docs/changelog/0.35.md @@ -57,7 +57,7 @@ improvements) we have done in the last few months: - 🙂 A lot of **UI improvements** . Starting from the finally fixed nasty issue with Windows command prompt printing a lot of garbage symbols, to using progress bars for checkouts, better metrics output, and lots of smaller - things: ![|528x200](/static/img/0.35-metrics.gif) + things: ![|528x200](/img/0.35-metrics.gif) - ⚡️ **Performance optimizations.** The most notable one is the migration from using a plain JSON file to an (embedded) SQLLite instance, to cache file and diff --git a/public/static/docs/command-reference/add.md b/content/docs/command-reference/add.md similarity index 100% rename from public/static/docs/command-reference/add.md rename to content/docs/command-reference/add.md diff --git a/public/static/docs/command-reference/cache/dir.md b/content/docs/command-reference/cache/dir.md similarity index 100% rename from public/static/docs/command-reference/cache/dir.md rename to content/docs/command-reference/cache/dir.md diff --git a/public/static/docs/command-reference/cache/index.md b/content/docs/command-reference/cache/index.md similarity index 100% rename from public/static/docs/command-reference/cache/index.md rename to content/docs/command-reference/cache/index.md diff --git a/public/static/docs/command-reference/checkout.md b/content/docs/command-reference/checkout.md similarity index 100% rename from public/static/docs/command-reference/checkout.md rename to content/docs/command-reference/checkout.md diff --git a/public/static/docs/command-reference/commit.md b/content/docs/command-reference/commit.md similarity index 100% rename from public/static/docs/command-reference/commit.md rename to content/docs/command-reference/commit.md diff --git a/public/static/docs/command-reference/config.md b/content/docs/command-reference/config.md similarity index 100% rename from public/static/docs/command-reference/config.md rename to content/docs/command-reference/config.md diff --git a/public/static/docs/command-reference/destroy.md b/content/docs/command-reference/destroy.md similarity index 100% rename from public/static/docs/command-reference/destroy.md rename to content/docs/command-reference/destroy.md diff --git a/public/static/docs/command-reference/diff.md b/content/docs/command-reference/diff.md similarity index 100% rename from public/static/docs/command-reference/diff.md rename to content/docs/command-reference/diff.md diff --git a/public/static/docs/command-reference/fetch.md b/content/docs/command-reference/fetch.md similarity index 100% rename from public/static/docs/command-reference/fetch.md rename to content/docs/command-reference/fetch.md diff --git a/public/static/docs/command-reference/gc.md b/content/docs/command-reference/gc.md similarity index 100% rename from public/static/docs/command-reference/gc.md rename to content/docs/command-reference/gc.md diff --git a/public/static/docs/command-reference/get-url.md b/content/docs/command-reference/get-url.md similarity index 100% rename from public/static/docs/command-reference/get-url.md rename to content/docs/command-reference/get-url.md diff --git a/public/static/docs/command-reference/get.md b/content/docs/command-reference/get.md similarity index 100% rename from public/static/docs/command-reference/get.md rename to content/docs/command-reference/get.md diff --git a/public/static/docs/command-reference/import-url.md b/content/docs/command-reference/import-url.md similarity index 100% rename from public/static/docs/command-reference/import-url.md rename to content/docs/command-reference/import-url.md diff --git a/public/static/docs/command-reference/import.md b/content/docs/command-reference/import.md similarity index 100% rename from public/static/docs/command-reference/import.md rename to content/docs/command-reference/import.md diff --git a/public/static/docs/command-reference/index.md b/content/docs/command-reference/index.md similarity index 100% rename from public/static/docs/command-reference/index.md rename to content/docs/command-reference/index.md diff --git a/public/static/docs/command-reference/init.md b/content/docs/command-reference/init.md similarity index 100% rename from public/static/docs/command-reference/init.md rename to content/docs/command-reference/init.md diff --git a/public/static/docs/command-reference/install.md b/content/docs/command-reference/install.md similarity index 100% rename from public/static/docs/command-reference/install.md rename to content/docs/command-reference/install.md diff --git a/public/static/docs/command-reference/lock.md b/content/docs/command-reference/lock.md similarity index 100% rename from public/static/docs/command-reference/lock.md rename to content/docs/command-reference/lock.md diff --git a/public/static/docs/command-reference/metrics/add.md b/content/docs/command-reference/metrics/add.md similarity index 100% rename from public/static/docs/command-reference/metrics/add.md rename to content/docs/command-reference/metrics/add.md diff --git a/public/static/docs/command-reference/metrics/diff.md b/content/docs/command-reference/metrics/diff.md similarity index 100% rename from public/static/docs/command-reference/metrics/diff.md rename to content/docs/command-reference/metrics/diff.md diff --git a/public/static/docs/command-reference/metrics/index.md b/content/docs/command-reference/metrics/index.md similarity index 100% rename from public/static/docs/command-reference/metrics/index.md rename to content/docs/command-reference/metrics/index.md diff --git a/public/static/docs/command-reference/metrics/modify.md b/content/docs/command-reference/metrics/modify.md similarity index 100% rename from public/static/docs/command-reference/metrics/modify.md rename to content/docs/command-reference/metrics/modify.md diff --git a/public/static/docs/command-reference/metrics/remove.md b/content/docs/command-reference/metrics/remove.md similarity index 100% rename from public/static/docs/command-reference/metrics/remove.md rename to content/docs/command-reference/metrics/remove.md diff --git a/public/static/docs/command-reference/metrics/show.md b/content/docs/command-reference/metrics/show.md similarity index 100% rename from public/static/docs/command-reference/metrics/show.md rename to content/docs/command-reference/metrics/show.md diff --git a/public/static/docs/command-reference/move.md b/content/docs/command-reference/move.md similarity index 100% rename from public/static/docs/command-reference/move.md rename to content/docs/command-reference/move.md diff --git a/public/static/docs/command-reference/pipeline/index.md b/content/docs/command-reference/pipeline/index.md similarity index 100% rename from public/static/docs/command-reference/pipeline/index.md rename to content/docs/command-reference/pipeline/index.md diff --git a/public/static/docs/command-reference/pipeline/list.md b/content/docs/command-reference/pipeline/list.md similarity index 100% rename from public/static/docs/command-reference/pipeline/list.md rename to content/docs/command-reference/pipeline/list.md diff --git a/public/static/docs/command-reference/pipeline/show.md b/content/docs/command-reference/pipeline/show.md similarity index 100% rename from public/static/docs/command-reference/pipeline/show.md rename to content/docs/command-reference/pipeline/show.md diff --git a/public/static/docs/command-reference/pull.md b/content/docs/command-reference/pull.md similarity index 100% rename from public/static/docs/command-reference/pull.md rename to content/docs/command-reference/pull.md diff --git a/public/static/docs/command-reference/push.md b/content/docs/command-reference/push.md similarity index 100% rename from public/static/docs/command-reference/push.md rename to content/docs/command-reference/push.md diff --git a/public/static/docs/command-reference/remote/add.md b/content/docs/command-reference/remote/add.md similarity index 100% rename from public/static/docs/command-reference/remote/add.md rename to content/docs/command-reference/remote/add.md diff --git a/public/static/docs/command-reference/remote/default.md b/content/docs/command-reference/remote/default.md similarity index 100% rename from public/static/docs/command-reference/remote/default.md rename to content/docs/command-reference/remote/default.md diff --git a/public/static/docs/command-reference/remote/index.md b/content/docs/command-reference/remote/index.md similarity index 100% rename from public/static/docs/command-reference/remote/index.md rename to content/docs/command-reference/remote/index.md diff --git a/public/static/docs/command-reference/remote/list.md b/content/docs/command-reference/remote/list.md similarity index 100% rename from public/static/docs/command-reference/remote/list.md rename to content/docs/command-reference/remote/list.md diff --git a/public/static/docs/command-reference/remote/modify.md b/content/docs/command-reference/remote/modify.md similarity index 100% rename from public/static/docs/command-reference/remote/modify.md rename to content/docs/command-reference/remote/modify.md diff --git a/public/static/docs/command-reference/remote/remove.md b/content/docs/command-reference/remote/remove.md similarity index 100% rename from public/static/docs/command-reference/remote/remove.md rename to content/docs/command-reference/remote/remove.md diff --git a/public/static/docs/command-reference/remove.md b/content/docs/command-reference/remove.md similarity index 100% rename from public/static/docs/command-reference/remove.md rename to content/docs/command-reference/remove.md diff --git a/public/static/docs/command-reference/repro.md b/content/docs/command-reference/repro.md similarity index 100% rename from public/static/docs/command-reference/repro.md rename to content/docs/command-reference/repro.md diff --git a/public/static/docs/command-reference/root.md b/content/docs/command-reference/root.md similarity index 100% rename from public/static/docs/command-reference/root.md rename to content/docs/command-reference/root.md diff --git a/public/static/docs/command-reference/run.md b/content/docs/command-reference/run.md similarity index 100% rename from public/static/docs/command-reference/run.md rename to content/docs/command-reference/run.md diff --git a/public/static/docs/command-reference/status.md b/content/docs/command-reference/status.md similarity index 100% rename from public/static/docs/command-reference/status.md rename to content/docs/command-reference/status.md diff --git a/public/static/docs/command-reference/unlock.md b/content/docs/command-reference/unlock.md similarity index 100% rename from public/static/docs/command-reference/unlock.md rename to content/docs/command-reference/unlock.md diff --git a/public/static/docs/command-reference/unprotect.md b/content/docs/command-reference/unprotect.md similarity index 100% rename from public/static/docs/command-reference/unprotect.md rename to content/docs/command-reference/unprotect.md diff --git a/public/static/docs/command-reference/update.md b/content/docs/command-reference/update.md similarity index 100% rename from public/static/docs/command-reference/update.md rename to content/docs/command-reference/update.md diff --git a/public/static/docs/command-reference/version.md b/content/docs/command-reference/version.md similarity index 100% rename from public/static/docs/command-reference/version.md rename to content/docs/command-reference/version.md diff --git a/public/static/docs/get-started/add-files.md b/content/docs/get-started/add-files.md similarity index 100% rename from public/static/docs/get-started/add-files.md rename to content/docs/get-started/add-files.md diff --git a/public/static/docs/get-started/agenda.md b/content/docs/get-started/agenda.md similarity index 97% rename from public/static/docs/get-started/agenda.md rename to content/docs/get-started/agenda.md index d1a6eeffee..1a61701c76 100644 --- a/public/static/docs/get-started/agenda.md +++ b/content/docs/get-started/agenda.md @@ -18,7 +18,7 @@ predicting tags for a given StackOverflow question. For example, we might want a classifier that can classify (or predict) posts about Python by tagging them with `python`. -![](/static/img/example-flow-2x.png) +![](/img/example-flow-2x.png) This is a natural language processing context, but NLP isn't the only area of data science where DVC can help. DVC is designed to be agnostic of frameworks, diff --git a/public/static/docs/get-started/compare-experiments.md b/content/docs/get-started/compare-experiments.md similarity index 100% rename from public/static/docs/get-started/compare-experiments.md rename to content/docs/get-started/compare-experiments.md diff --git a/public/static/docs/get-started/configure.md b/content/docs/get-started/configure.md similarity index 100% rename from public/static/docs/get-started/configure.md rename to content/docs/get-started/configure.md diff --git a/public/static/docs/get-started/connect-code-and-data.md b/content/docs/get-started/connect-code-and-data.md similarity index 100% rename from public/static/docs/get-started/connect-code-and-data.md rename to content/docs/get-started/connect-code-and-data.md diff --git a/public/static/docs/get-started/experiments.md b/content/docs/get-started/experiments.md similarity index 100% rename from public/static/docs/get-started/experiments.md rename to content/docs/get-started/experiments.md diff --git a/public/static/docs/get-started/import-data.md b/content/docs/get-started/import-data.md similarity index 100% rename from public/static/docs/get-started/import-data.md rename to content/docs/get-started/import-data.md diff --git a/public/static/docs/get-started/index.md b/content/docs/get-started/index.md similarity index 100% rename from public/static/docs/get-started/index.md rename to content/docs/get-started/index.md diff --git a/public/static/docs/get-started/initialize.md b/content/docs/get-started/initialize.md similarity index 100% rename from public/static/docs/get-started/initialize.md rename to content/docs/get-started/initialize.md diff --git a/public/static/docs/get-started/metrics.md b/content/docs/get-started/metrics.md similarity index 100% rename from public/static/docs/get-started/metrics.md rename to content/docs/get-started/metrics.md diff --git a/public/static/docs/get-started/older-versions.md b/content/docs/get-started/older-versions.md similarity index 100% rename from public/static/docs/get-started/older-versions.md rename to content/docs/get-started/older-versions.md diff --git a/public/static/docs/get-started/pipeline.md b/content/docs/get-started/pipeline.md similarity index 100% rename from public/static/docs/get-started/pipeline.md rename to content/docs/get-started/pipeline.md diff --git a/public/static/docs/get-started/reproduce.md b/content/docs/get-started/reproduce.md similarity index 100% rename from public/static/docs/get-started/reproduce.md rename to content/docs/get-started/reproduce.md diff --git a/public/static/docs/get-started/retrieve-data.md b/content/docs/get-started/retrieve-data.md similarity index 100% rename from public/static/docs/get-started/retrieve-data.md rename to content/docs/get-started/retrieve-data.md diff --git a/public/static/docs/get-started/store-data.md b/content/docs/get-started/store-data.md similarity index 100% rename from public/static/docs/get-started/store-data.md rename to content/docs/get-started/store-data.md diff --git a/public/static/docs/get-started/visualize.md b/content/docs/get-started/visualize.md similarity index 100% rename from public/static/docs/get-started/visualize.md rename to content/docs/get-started/visualize.md diff --git a/public/static/docs/glossary.js b/content/docs/glossary.js similarity index 100% rename from public/static/docs/glossary.js rename to content/docs/glossary.js diff --git a/public/static/docs/install/completion.md b/content/docs/install/completion.md similarity index 100% rename from public/static/docs/install/completion.md rename to content/docs/install/completion.md diff --git a/public/static/docs/install/index.md b/content/docs/install/index.md similarity index 100% rename from public/static/docs/install/index.md rename to content/docs/install/index.md diff --git a/public/static/docs/install/linux.md b/content/docs/install/linux.md similarity index 100% rename from public/static/docs/install/linux.md rename to content/docs/install/linux.md diff --git a/public/static/docs/install/macos.md b/content/docs/install/macos.md similarity index 100% rename from public/static/docs/install/macos.md rename to content/docs/install/macos.md diff --git a/public/static/docs/install/plugins.md b/content/docs/install/plugins.md similarity index 100% rename from public/static/docs/install/plugins.md rename to content/docs/install/plugins.md diff --git a/public/static/docs/install/pre-release.md b/content/docs/install/pre-release.md similarity index 100% rename from public/static/docs/install/pre-release.md rename to content/docs/install/pre-release.md diff --git a/public/static/docs/install/windows.md b/content/docs/install/windows.md similarity index 100% rename from public/static/docs/install/windows.md rename to content/docs/install/windows.md diff --git a/public/static/docs/sidebar.json b/content/docs/sidebar.json similarity index 100% rename from public/static/docs/sidebar.json rename to content/docs/sidebar.json diff --git a/public/static/docs/tutorials/community.md b/content/docs/tutorials/community.md similarity index 100% rename from public/static/docs/tutorials/community.md rename to content/docs/tutorials/community.md diff --git a/public/static/docs/tutorials/deep/define-ml-pipeline.md b/content/docs/tutorials/deep/define-ml-pipeline.md similarity index 100% rename from public/static/docs/tutorials/deep/define-ml-pipeline.md rename to content/docs/tutorials/deep/define-ml-pipeline.md diff --git a/public/static/docs/tutorials/deep/index.md b/content/docs/tutorials/deep/index.md similarity index 94% rename from public/static/docs/tutorials/deep/index.md rename to content/docs/tutorials/deep/index.md index 2f2e22d222..da9493e990 100644 --- a/public/static/docs/tutorials/deep/index.md +++ b/content/docs/tutorials/deep/index.md @@ -13,7 +13,7 @@ and reuse. DVC has been built to address the reproducibility. -![](/static/img/reproducibility.png) +![](/img/reproducibility.png) Git branches should beautifully reflect the non-linear structure common to the ML process, where each hypothesis can be presented as a Git branch. However, @@ -28,4 +28,4 @@ and this approach will not require storing binary files in your Git repository. The diagram below describes all the DVC commands and relationships between a local cache and remote storage. -![](/static/img/flow-large.png) +![](/img/flow-large.png) diff --git a/public/static/docs/tutorials/deep/preparation.md b/content/docs/tutorials/deep/preparation.md similarity index 100% rename from public/static/docs/tutorials/deep/preparation.md rename to content/docs/tutorials/deep/preparation.md diff --git a/public/static/docs/tutorials/deep/reproducibility.md b/content/docs/tutorials/deep/reproducibility.md similarity index 100% rename from public/static/docs/tutorials/deep/reproducibility.md rename to content/docs/tutorials/deep/reproducibility.md diff --git a/public/static/docs/tutorials/deep/sharing-data.md b/content/docs/tutorials/deep/sharing-data.md similarity index 100% rename from public/static/docs/tutorials/deep/sharing-data.md rename to content/docs/tutorials/deep/sharing-data.md diff --git a/public/static/docs/tutorials/index.md b/content/docs/tutorials/index.md similarity index 100% rename from public/static/docs/tutorials/index.md rename to content/docs/tutorials/index.md diff --git a/public/static/docs/tutorials/interactive.md b/content/docs/tutorials/interactive.md similarity index 100% rename from public/static/docs/tutorials/interactive.md rename to content/docs/tutorials/interactive.md diff --git a/public/static/docs/tutorials/pipelines.md b/content/docs/tutorials/pipelines.md similarity index 99% rename from public/static/docs/tutorials/pipelines.md rename to content/docs/tutorials/pipelines.md index d6808bb074..9cc5fde18d 100644 --- a/public/static/docs/tutorials/pipelines.md +++ b/content/docs/tutorials/pipelines.md @@ -15,7 +15,7 @@ StackOverflow posts and trains the prediction model and saves it as an examples, tutorials, use cases if you want to cover other aspects of the DVC. The pipeline itself is a sequence of transformation we apply to the data file: -![](/static/img/example-flow-2x.png) +![](/img/example-flow-2x.png) DVC helps to describe these transformations and capture actual data involved - input dataset we are processing, intermediate results (useful if some diff --git a/public/static/docs/tutorials/versioning.md b/content/docs/tutorials/versioning.md similarity index 99% rename from public/static/docs/tutorials/versioning.md rename to content/docs/tutorials/versioning.md index 12e4de36c3..74fa668231 100644 --- a/public/static/docs/tutorials/versioning.md +++ b/content/docs/tutorials/versioning.md @@ -7,7 +7,7 @@ datasets and ML models using DVC commands. We'll work with a that [François Chollet](https://twitter.com/fchollet) put together to show how to build a powerful image classifier using a pretty small dataset. -![](/static/img/cats-and-dogs.jpg) _Dataset to classify cats and dogs_ +![](/img/cats-and-dogs.jpg) _Dataset to classify cats and dogs_ > We highly recommend reading the François' tutorial itself. It's a great > demonstration of how a general pre-trained model can be leveraged to build a @@ -248,7 +248,7 @@ to be similar to `git checkout`. All we need to do in our case is to additionally run `dvc checkout` to get the right data into the workspace. -![](/static/img/versioning.png) +![](/img/versioning.png) There are two ways of doing this: a full workspace checkout or checkout of a specific data or model file. Let's consider the full checkout first. It's pretty diff --git a/public/static/docs/understanding-dvc/collaboration-issues.md b/content/docs/understanding-dvc/collaboration-issues.md similarity index 100% rename from public/static/docs/understanding-dvc/collaboration-issues.md rename to content/docs/understanding-dvc/collaboration-issues.md diff --git a/public/static/docs/understanding-dvc/core-features.md b/content/docs/understanding-dvc/core-features.md similarity index 100% rename from public/static/docs/understanding-dvc/core-features.md rename to content/docs/understanding-dvc/core-features.md diff --git a/public/static/docs/understanding-dvc/existing-tools.md b/content/docs/understanding-dvc/existing-tools.md similarity index 100% rename from public/static/docs/understanding-dvc/existing-tools.md rename to content/docs/understanding-dvc/existing-tools.md diff --git a/public/static/docs/understanding-dvc/how-it-works.md b/content/docs/understanding-dvc/how-it-works.md similarity index 100% rename from public/static/docs/understanding-dvc/how-it-works.md rename to content/docs/understanding-dvc/how-it-works.md diff --git a/public/static/docs/understanding-dvc/related-technologies.md b/content/docs/understanding-dvc/related-technologies.md similarity index 100% rename from public/static/docs/understanding-dvc/related-technologies.md rename to content/docs/understanding-dvc/related-technologies.md diff --git a/public/static/docs/understanding-dvc/resources.md b/content/docs/understanding-dvc/resources.md similarity index 100% rename from public/static/docs/understanding-dvc/resources.md rename to content/docs/understanding-dvc/resources.md diff --git a/public/static/docs/understanding-dvc/what-is-dvc.md b/content/docs/understanding-dvc/what-is-dvc.md similarity index 100% rename from public/static/docs/understanding-dvc/what-is-dvc.md rename to content/docs/understanding-dvc/what-is-dvc.md diff --git a/public/static/docs/use-cases/data-registries.md b/content/docs/use-cases/data-registries.md similarity index 99% rename from public/static/docs/use-cases/data-registries.md rename to content/docs/use-cases/data-registries.md index 5d258b54f7..558cdcbcbd 100644 --- a/public/static/docs/use-cases/data-registries.md +++ b/content/docs/use-cases/data-registries.md @@ -8,7 +8,7 @@ with commands such as `dvc add`. With the aim to enable reusability of these depend on data from an external DVC repository, **similar to package management systems, but for data science projects**. -![](/static/img/data-registry.png) _Data and models as code_ +![](/img/data-registry.png) _Data and models as code_ Keeping this in mind, we could build a DVC project dedicated to tracking and versioning _datasets_ (or any large data, even ML models). This way diff --git a/public/static/docs/use-cases/index.md b/content/docs/use-cases/index.md similarity index 100% rename from public/static/docs/use-cases/index.md rename to content/docs/use-cases/index.md diff --git a/public/static/docs/use-cases/shared-development-server.md b/content/docs/use-cases/shared-development-server.md similarity index 98% rename from public/static/docs/use-cases/shared-development-server.md rename to content/docs/use-cases/shared-development-server.md index a96a19150a..4827163ae4 100644 --- a/public/static/docs/use-cases/shared-development-server.md +++ b/content/docs/use-cases/shared-development-server.md @@ -7,7 +7,7 @@ storage on a server accessed by several users, in a way that enables almost instantaneous workspace restoration/switching speed for everyone – similar to `git checkout` for your code. -![](/static/img/shared-server.png) +![](/img/shared-server.png) ## Preparation diff --git a/public/static/docs/use-cases/sharing-data-and-model-files.md b/content/docs/use-cases/sharing-data-and-model-files.md similarity index 98% rename from public/static/docs/use-cases/sharing-data-and-model-files.md rename to content/docs/use-cases/sharing-data-and-model-files.md index a354c9988e..77c583e562 100644 --- a/public/static/docs/use-cases/sharing-data-and-model-files.md +++ b/content/docs/use-cases/sharing-data-and-model-files.md @@ -9,7 +9,7 @@ supports Amazon S3, Microsoft Azure Blob Storage, Google Drive, Google Cloud Storage, SSH, HDFS, and other remote locations. The list is constantly growing. (For a complete list and configuration instructions, refer to `dvc remote add`.) -![](/static/img/model-sharing-digram.png) +![](/img/model-sharing-digram.png) As an example, let's take a look at how you could setup an S3 [remote storage](/doc/command-reference/remote) for a DVC project, diff --git a/public/static/docs/use-cases/versioning-data-and-model-files.md b/content/docs/use-cases/versioning-data-and-model-files.md similarity index 98% rename from public/static/docs/use-cases/versioning-data-and-model-files.md rename to content/docs/use-cases/versioning-data-and-model-files.md index 8c4c3b4e29..dbf45e37ce 100644 --- a/public/static/docs/use-cases/versioning-data-and-model-files.md +++ b/content/docs/use-cases/versioning-data-and-model-files.md @@ -13,7 +13,7 @@ for versioning. To actually store the data, DVC supports various types of [remote storage](/doc/command-reference/remote). This allows easily saving and sharing data alongside code. -![](/static/img/model-versioning-diagram.png) +![](/img/model-versioning-diagram.png) In this basic scenario, DVC is a better replacement for `git-lfs` (see [Related Technologies](/doc/understanding-dvc/related-technologies)) and for @@ -113,7 +113,7 @@ If you run `git status` you will see that `data.dvc` is modified and currently points to the `v1.0` version of the cached data. Meanwhile, code and model files are their latest versions. -![](/static/img/versioning.png) +![](/img/versioning.png) To share your data with others you need to setup a [data storage](/doc/command-reference/remote). See the diff --git a/public/static/docs/user-guide/analytics.md b/content/docs/user-guide/analytics.md similarity index 100% rename from public/static/docs/user-guide/analytics.md rename to content/docs/user-guide/analytics.md diff --git a/public/static/docs/user-guide/contributing/core.md b/content/docs/user-guide/contributing/core.md similarity index 100% rename from public/static/docs/user-guide/contributing/core.md rename to content/docs/user-guide/contributing/core.md diff --git a/public/static/docs/user-guide/contributing/docs.md b/content/docs/user-guide/contributing/docs.md similarity index 93% rename from public/static/docs/user-guide/contributing/docs.md rename to content/docs/user-guide/contributing/docs.md index bdb41f0301..49f43a5239 100644 --- a/public/static/docs/user-guide/contributing/docs.md +++ b/content/docs/user-guide/contributing/docs.md @@ -7,16 +7,15 @@ website. ## Structure of the project -To contribute documentation, these are the relevant locations under -`public/static/`: +To contribute documentation, these are the relevant locations: -- [Content](https://github.com/iterative/dvc.org/tree/master/public/static/docs) +- [Content](https://github.com/iterative/dvc.org/tree/master/content/docs) (`docs/`): [Markdown](https://guides.github.com/features/mastering-markdown/) files of the different pages to render dynamically in the browser. -- [Images](https://github.com/iterative/dvc.org/tree/master/public/static/img) +- [Images](https://github.com/iterative/dvc.org/tree/master/static/img) (`img/`): Add new images (png, svg, etc.) here. Use them in Markdown files - like this: `![](/static/img/.gif)`. -- [Sections](https://github.com/iterative/dvc.org/tree/master/public/static/docs/sidebar.json) + like this: `![](/img/.gif)`. +- [Sections](https://github.com/iterative/dvc.org/tree/master/content/docs/sidebar.json) (`docs/sidebar.json`): Edit it to register a new section for the navigation menu. @@ -153,7 +152,7 @@ pre-commit hook that is integrated when `yarn` installs the project dependencies > Check out the `.md` source code of any command reference to get a better idea, > for example in -> [this very file](https://raw.githubusercontent.com/iterative/dvc.org/master/public/static/docs/user-guide/contributing/docs.md). +> [this very file](https://raw.githubusercontent.com/iterative/dvc.org/master/content/docs/user-guide/contributing/docs.md). ## General language guidelines diff --git a/public/static/docs/user-guide/dvc-file-format.md b/content/docs/user-guide/dvc-file-format.md similarity index 100% rename from public/static/docs/user-guide/dvc-file-format.md rename to content/docs/user-guide/dvc-file-format.md diff --git a/public/static/docs/user-guide/dvc-files-and-directories.md b/content/docs/user-guide/dvc-files-and-directories.md similarity index 100% rename from public/static/docs/user-guide/dvc-files-and-directories.md rename to content/docs/user-guide/dvc-files-and-directories.md diff --git a/public/static/docs/user-guide/dvcignore.md b/content/docs/user-guide/dvcignore.md similarity index 100% rename from public/static/docs/user-guide/dvcignore.md rename to content/docs/user-guide/dvcignore.md diff --git a/public/static/docs/user-guide/external-dependencies.md b/content/docs/user-guide/external-dependencies.md similarity index 100% rename from public/static/docs/user-guide/external-dependencies.md rename to content/docs/user-guide/external-dependencies.md diff --git a/public/static/docs/user-guide/index.md b/content/docs/user-guide/index.md similarity index 100% rename from public/static/docs/user-guide/index.md rename to content/docs/user-guide/index.md diff --git a/public/static/docs/user-guide/large-dataset-optimization.md b/content/docs/user-guide/large-dataset-optimization.md similarity index 100% rename from public/static/docs/user-guide/large-dataset-optimization.md rename to content/docs/user-guide/large-dataset-optimization.md diff --git a/public/static/docs/user-guide/managing-external-data.md b/content/docs/user-guide/managing-external-data.md similarity index 100% rename from public/static/docs/user-guide/managing-external-data.md rename to content/docs/user-guide/managing-external-data.md diff --git a/public/static/docs/user-guide/privacy.md b/content/docs/user-guide/privacy.md similarity index 100% rename from public/static/docs/user-guide/privacy.md rename to content/docs/user-guide/privacy.md diff --git a/public/static/docs/user-guide/running-dvc-on-windows.md b/content/docs/user-guide/running-dvc-on-windows.md similarity index 100% rename from public/static/docs/user-guide/running-dvc-on-windows.md rename to content/docs/user-guide/running-dvc-on-windows.md diff --git a/public/static/docs/user-guide/setup-google-drive-remote.md b/content/docs/user-guide/setup-google-drive-remote.md similarity index 97% rename from public/static/docs/user-guide/setup-google-drive-remote.md rename to content/docs/user-guide/setup-google-drive-remote.md index 2ed6530032..2b620bfd6f 100644 --- a/public/static/docs/user-guide/setup-google-drive-remote.md +++ b/content/docs/user-guide/setup-google-drive-remote.md @@ -24,7 +24,7 @@ API connections, and its ENABLE APIS AND SERVICES**. Find and select the "Google Drive API" in the API Library, and click on the **ENABLE** button. - ![](/static/img/gdrive-enable-apis-and-services.png) + ![](/img/gdrive-enable-apis-and-services.png) 4. Go back to **APIs & Services** in the left sidebar, and select **OAuth consent screen**. Chose a **User Type** and click **CREATE**. On the next @@ -35,7 +35,7 @@ API connections, and its credentials** dropdown to select **OAuth client ID**. Chose **Other** and click **Create** to proceed with a default client name. - ![](/static/img/gdrive-create-credentials.png) + ![](/img/gdrive-create-credentials.png) 6. The newly generated **client ID** and **client secret** should be shown to you now, and you can always come back to **Credentials** to fetch them. diff --git a/public/static/docs/user-guide/troubleshooting.md b/content/docs/user-guide/troubleshooting.md similarity index 100% rename from public/static/docs/user-guide/troubleshooting.md rename to content/docs/user-guide/troubleshooting.md diff --git a/public/static/docs/user-guide/updating-tracked-files.md b/content/docs/user-guide/updating-tracked-files.md similarity index 100% rename from public/static/docs/user-guide/updating-tracked-files.md rename to content/docs/user-guide/updating-tracked-files.md diff --git a/gatsby-config.js b/gatsby-config.js new file mode 100644 index 0000000000..09bcb5536e --- /dev/null +++ b/gatsby-config.js @@ -0,0 +1,59 @@ +/* eslint-env node */ + +const title = 'Data Version Control · DVC' +const description = + 'Open-source version control system for Data Science and Machine Learning ' + + 'projects. Git-like experience to organize your data, models, and ' + + 'experiments.' + +const keywords = [ + 'data version control', + 'machine learning', + 'models management' +] + +const plugins = [ + /*{ + options: { + background_color: '#eff4f8', + display: 'minimal-ui', + //icon: 'static/512.png', + name: 'dvc.org', + short_name: 'dvc.org', + start_url: '/', + theme_color: '#eff4f8' + }, + resolve: 'gatsby-plugin-manifest' + },*/ + 'gatsby-plugin-react-helmet', + 'gatsby-plugin-styled-components', + 'gatsby-plugin-sitemap', + { + resolve: 'gatsby-plugin-sentry', + options: { + dsn: process.env.SENTRY_DSN, + environment: process.env.NODE_ENV, + enabled: process.env.NODE_ENV === 'production' + } + } +] + +if (process.env.CONTEXT === 'production') { + plugins.push({ + options: { + respectDNT: true, + trackingId: process.env.GA_ID + }, + resolve: 'gatsby-plugin-google-analytics' + }) +} + +module.exports = { + plugins, + siteMetadata: { + description, + keywords, + siteUrl: 'https://dvc.org', + title + } +} diff --git a/next.config.js b/next.config.js deleted file mode 100644 index c1a8c1a98c..0000000000 --- a/next.config.js +++ /dev/null @@ -1,14 +0,0 @@ -/* eslint-env node */ - -const withSourceMaps = require('@zeit/next-source-maps') - -const settings = withSourceMaps({ - webpack(config) { - return config - }, - env: { - SENTRY_DSN: process.env.SENTRY_DSN - } -}) - -module.exports = settings diff --git a/package.json b/package.json index 4d8fe4ebd8..3ac37ca6b5 100644 --- a/package.json +++ b/package.json @@ -4,15 +4,15 @@ "description": "dvc.org – website source code", "main": "index.js", "scripts": { - "dev": "node server.js", + "develop": "gatsby develop", "debug": "node --inspect-brk server.js", - "build": "next build", + "build": "gatsby build", "test": "jest", "start": "./scripts/clear-cloudflare-cache.js; NODE_ENV=production node server.js", "format-staged": "pretty-quick --staged --no-restage --bail", - "format-check": "prettier --check '{.,pages/**,public/static/docs/**,src/**}/*.{js,md,json}'", + "format-check": "prettier --check '{.,pages/**,content/docs/**,src/**}/*.{js,md,json}'", "lint-check": "eslint --ext .json,.js src pages", - "format-all": "prettier --write '{.,pages/**,public/static/docs/**,src/**}/*.{js,md,json}'", + "format-all": "prettier --write '{.,pages/**,content/docs/**,src/**}/*.{js,md,json}'", "format": "prettier --write", "link-check": "scripts/link-check-git-all.sh", "link-check-diff": "scripts/link-check-git-diff.sh" @@ -29,11 +29,14 @@ "homepage": "https://github.com/iterative/dvc.org#readme", "dependencies": { "@octokit/graphql": "^4.3.1", + "@reach/router": "^1.3.1", "@sentry/browser": "^5.12.1", - "@zeit/next-source-maps": "^0.0.3", "color": "^3.1.2", "date-fns": "^2.8.1", + "docsearch.js": "^2.6.3", "dom-scroll-into-view": "^2.0.1", + "gatsby": "^2.19.21", + "gatsby-link": "^2.2.29", "github-markdown-css": "^3.0.1", "isomorphic-fetch": "^2.2.1", "lodash.fill": "^3.4.0", @@ -43,7 +46,6 @@ "lodash.throttle": "^4.1.1", "lodash.topairs": "^4.3.0", "micro-cors": "^0.1.1", - "next": "^9.1.6", "node-cache": "^5.1.0", "perfect-scrollbar": "^1.4.0", "prop-types": "^15.7.2", @@ -52,6 +54,7 @@ "react-collapsible": "^2.6.2", "react-dom": "^16.12.0", "react-ga": "^2.7.0", + "react-helmet": "^5.2.1", "react-markdown": "^4.2.2", "react-popover": "^0.5.10", "react-scroll": "^1.7.13", @@ -59,6 +62,7 @@ "react-syntax-highlighter": "^11.0.2", "react-use": "^13.24.0", "request": "^2.88.0", + "slick-carousel": "^1.8.1", "styled-components": "^4.4.1", "styled-reset": "^4.0.8", "unist-util-visit": "2.0.1" @@ -75,6 +79,12 @@ "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-prettier": "^3.1.1", "eslint-plugin-react": "^7.17.0", + "gatsby-plugin-google-analytics": "^2.1.36", + "gatsby-plugin-manifest": "^2.2.42", + "gatsby-plugin-react-helmet": "^3.1.22", + "gatsby-plugin-sentry": "^1.0.1", + "gatsby-plugin-sitemap": "^2.2.27", + "gatsby-plugin-styled-components": "^3.1.19", "husky": "^4.0.10", "jest": "^24.9.0", "lint-staged": "^10.0.0", diff --git a/pages/_app.js b/pages/_app.js deleted file mode 100644 index 10f9f70d27..0000000000 --- a/pages/_app.js +++ /dev/null @@ -1,31 +0,0 @@ -/* global process */ - -import React from 'react' -import App from 'next/app' -import * as Sentry from '@sentry/browser' - -Sentry.init({ - dsn: process.env.SENTRY_DSN -}) - -class MyApp extends App { - componentDidCatch(error, errorInfo) { - Sentry.withScope(scope => { - Object.keys(errorInfo).forEach(key => { - scope.setExtra(key, errorInfo[key]) - }) - - Sentry.captureException(error) - }) - - super.componentDidCatch(error, errorInfo) - } - - render() { - const { Component, pageProps } = this.props - - return - } -} - -export default MyApp diff --git a/pages/_document.js b/pages/_document.js deleted file mode 100644 index c9e36105e5..0000000000 --- a/pages/_document.js +++ /dev/null @@ -1,145 +0,0 @@ -/* eslint-env node */ - -import React from 'react' -import Document, { Head, Main, NextScript } from 'next/document' -import { ServerStyleSheet } from 'styled-components' -import * as Sentry from '@sentry/browser' - -process.on('unhandledRejection', err => { - Sentry.captureException(err) -}) - -process.on('uncaughtException', err => { - Sentry.captureException(err) -}) - -import { - META_BASE_TITLE, - META_DESCRIPTION, - META_KEYWORDS, - META_SOCIAL_IMAGE -} from '../src/consts' - -const inject = str => ( -
-) - -export default class Page extends Document { - static getInitialProps({ renderPage }) { - const sheet = new ServerStyleSheet() - const page = renderPage(App => props => - sheet.collectStyles() - ) - const styleTags = sheet.getStyleElement() - return { ...page, styleTags } - } - - render() { - return ( - <> - - - - - - - - - - - - - - - - - - - - - - - ` - )} - - - - ) - } -} diff --git a/pages/community.js b/pages/community.js deleted file mode 100644 index 2553720e5a..0000000000 --- a/pages/community.js +++ /dev/null @@ -1,28 +0,0 @@ -import React from 'react' -import Head from 'next/head' - -import Community from '../src/components/Community' - -import { META_BASE_TITLE } from '../src/consts' - -export default function CommunityPage() { - return ( - <> - - - - Community | {META_BASE_TITLE} - - - - ) -} diff --git a/pages/features.js b/pages/features.js deleted file mode 100644 index e8d0145e79..0000000000 --- a/pages/features.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react' - -import Head from 'next/head' - -import Features from '../src/components/Features' - -import { META_BASE_TITLE } from '../src/consts' - -export default function FeaturesPage() { - return ( - <> - - Features | {META_BASE_TITLE} - - - - ) -} diff --git a/pages/index.js b/pages/index.js deleted file mode 100644 index 73c2c0faa3..0000000000 --- a/pages/index.js +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react' - -import Head from 'next/head' - -import Home from '../src/components/Home' - -import { META_BASE_TITLE } from '../src/consts' - -export default function HomePage() { - return ( - <> - - - - {META_BASE_TITLE} - - - - ) -} diff --git a/pages/support.js b/pages/support.js deleted file mode 100644 index 79a80ce0b8..0000000000 --- a/pages/support.js +++ /dev/null @@ -1,18 +0,0 @@ -import React from 'react' - -import Head from 'next/head' - -import Support from '../src/components/Support' - -import { META_BASE_TITLE } from '../src/consts' - -export default function SupportPage() { - return ( - <> - - Support | {META_BASE_TITLE} - - - - ) -} diff --git a/scripts/exclude-links.txt b/scripts/exclude-links.txt index d9f10dcbea..37933688b8 100644 --- a/scripts/exclude-links.txt +++ b/scripts/exclude-links.txt @@ -16,7 +16,7 @@ https://drive.google.com/drive/folders/0AIac4JZqHhKmUk9PDA https://dvc.org$ https://dvc.org/doc/command-reference/foo https://dvc.org/foo -https://dvc.org/static/img/.gif +https://dvc.org/img/.gif https://example.com/data.txt https://example.com/foo https://dvc.org/foo/bar?baz diff --git a/scripts/link-check-git-all.sh b/scripts/link-check-git-all.sh index 2251fb36e5..fe7e7227c4 100755 --- a/scripts/link-check-git-all.sh +++ b/scripts/link-check-git-all.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -(find pages/ public/static/docs/ src/ .github/ -name '*.md' -o -name '*.js' && ls *.md *.js) \ +(find pages/ content/docs/ src/ .github/ -name '*.md' -o -name '*.js' && ls *.md *.js) \ | xargs -n1 -P8 $(dirname "$0")/link-check.sh diff --git a/src/components/Community/Button/index.js b/src/components/Community/Button/index.js deleted file mode 100644 index 97df73f6ff..0000000000 --- a/src/components/Community/Button/index.js +++ /dev/null @@ -1,26 +0,0 @@ -import React from 'react' -import PropTypes from 'prop-types' - -import { Wrapper } from './styles' - -function CommunityButton({ theme, children, forwardedRef, ...props }) { - return ( - - {children} - - ) -} - -CommunityButton.propTypes = { - children: PropTypes.node, - theme: PropTypes.shape({ - backgroundColor: PropTypes.string, - color: PropTypes.string - }), - forwardedRef: PropTypes.func -} - -// eslint-disable-next-line react/display-name -export default React.forwardRef((props, ref) => ( - -)) diff --git a/src/components/Community/Button/styles.js b/src/components/Community/Button/styles.js deleted file mode 100644 index dd7fe14fa9..0000000000 --- a/src/components/Community/Button/styles.js +++ /dev/null @@ -1,19 +0,0 @@ -import styled from 'styled-components' - -export const Wrapper = styled.a` - display: block; - height: 38px; - border-radius: 4px; - font-size: 16px; - font-family: BrandonGrotesqueMed; - line-height: 38px; - text-decoration: none; - text-align: center; - color: ${({ color }) => (color ? color : '#999')}; - background-color: ${({ backgroundColor }) => - backgroundColor ? backgroundColor : '#ddd'}; - - &:hover { - opacity: 0.7; - } -` diff --git a/src/components/Community/Contribute/index.js b/src/components/Community/Contribute/index.js index de93153a38..ea3323df83 100644 --- a/src/components/Community/Contribute/index.js +++ b/src/components/Community/Contribute/index.js @@ -3,13 +3,12 @@ import PropTypes from 'prop-types' import { logEvent } from '../../../utils/ga' -import CommunityButton from '../Button' import CommunityBlock from '../Block' import CommunitySection from '../Section' import data from '../data' -import { Item, Items, Wrapper } from '../styles' +import { Button, Item, Items, Wrapper } from '../styles' const { description, mobileDescription, title } = data.section.contribute @@ -23,10 +22,10 @@ export default function CommunityContribute({ theme }) { @@ -35,7 +34,7 @@ export default function CommunityContribute({ theme }) { Go to Github - + } > Let's build something great together. Become a DVC @@ -54,7 +53,7 @@ export default function CommunityContribute({ theme }) { Let’s talk! - + } > We're always interested in guest writers for our blog. If you @@ -73,7 +72,7 @@ export default function CommunityContribute({ theme }) { Let’s talk! - + } > We support speakers all over the world and help with preparation, @@ -92,7 +91,7 @@ export default function CommunityContribute({ theme }) { Let’s talk! - + } > Get perks and benefits for contributing to the code base, writing diff --git a/src/components/Community/Events/index.js b/src/components/Community/Events/index.js index c63900ecf0..5ce5e13c55 100644 --- a/src/components/Community/Events/index.js +++ b/src/components/Community/Events/index.js @@ -6,12 +6,11 @@ import fill from 'lodash.fill' import { logEvent } from '../../../utils/ga' import CommunityBlock from '../Block' -import CommunityButton from '../Button' import CommunitySection from '../Section' import data from '../data' -import { Item, Items, Line, Link, Wrapper } from '../styles' +import { Button, Item, Items, Line, Link, Wrapper } from '../styles' import { Image, ImageWrapper, Meta } from './styles' @@ -39,7 +38,7 @@ function CommunityEvent({ Event Info - + } > @@ -101,7 +100,7 @@ export default function CommunityEvents({ theme }) { anchor="events" color={theme.color} description={description} - icon="/static/img/community/events.svg" + icon="/img/community/events.svg" mobileDescription={mobileDescription} title={title} > diff --git a/src/components/Community/Learn/index.js b/src/components/Community/Learn/index.js index 39862c2bcd..bd413e5b27 100644 --- a/src/components/Community/Learn/index.js +++ b/src/components/Community/Learn/index.js @@ -7,13 +7,13 @@ import LocalLink from '../../LocalLink' import { logEvent } from '../../../utils/ga' import CommunityBlock from '../Block' -import CommunityButton from '../Button' import CommunitySection from '../Section' import { usePosts, useCommentsCount } from '../../../utils/api' import { pluralizeComments } from '../../../utils/i18n' import { + Button, Comments, HeaderLink, ImageLine, @@ -160,7 +160,7 @@ function CommunityDocumentation({ url, title, description, color }) { href={url} as={Link} color={color} - large + large="true" onClick={logDocumentation} > {title} @@ -206,7 +206,7 @@ export default function CommunityLearn({ theme }) { action={ @@ -237,7 +237,7 @@ export default function CommunityLearn({ theme }) { } action={ posts && ( - See all Posts - + ) } > diff --git a/src/components/Community/Meet/index.js b/src/components/Community/Meet/index.js index 8b682a94af..98c12383ac 100644 --- a/src/components/Community/Meet/index.js +++ b/src/components/Community/Meet/index.js @@ -3,7 +3,6 @@ import PropTypes from 'prop-types' import formatDistanceToNow from 'date-fns/formatDistanceToNow' import CommunityBlock from '../Block' -import CommunityButton from '../Button' import CommunitySection from '../Section' import { pluralizeComments } from '../../../utils/i18n' @@ -17,6 +16,7 @@ const { description, mobileDescription, title } = data.section.meet import { Stats, StatLabel, StatLine, StatValue } from './styles' import { + Button, Comments, HeaderLink, Item, @@ -119,11 +119,11 @@ export default function CommunityMeet({ theme }) { @@ -141,7 +141,7 @@ export default function CommunityMeet({ theme }) { } action={ - Open Chat - + } - icon="/static/img/community/discord.svg" + icon="/img/community/discord.svg" > Need urgent help? Ask advice from experienced developers online @@ -182,7 +182,7 @@ export default function CommunityMeet({ theme }) { } action={ topics && ( - Read All Topics - + ) } - icon="/static/img/community/discourse.svg" + icon="/img/community/discourse.svg" > {!topicsReady && Loading...} {topicsError && ( @@ -223,7 +223,7 @@ export default function CommunityMeet({ theme }) { } action={ issues && ( - Read All Issues - + ) } - icon="/static/img/community/github.svg" + icon="/img/community/github.svg" > {!issuesReady && Loading...} {issuesError && ( diff --git a/src/components/Community/Section/index.js b/src/components/Community/Section/index.js index 8cc4871144..c6fca46c22 100644 --- a/src/components/Community/Section/index.js +++ b/src/components/Community/Section/index.js @@ -3,8 +3,6 @@ import React, { useCallback, useEffect, useState } from 'react' import { Collapse } from 'react-collapse' import { useWindowSize } from 'react-use' -import Router from 'next/router' - import { DesktopDescription, Header, @@ -47,12 +45,6 @@ export default function CommunitySection({ } updateVisibility() - - Router.events.on('hashChangeComplete', updateVisibility) - - return () => { - Router.events.off('hashChangeComplete', updateVisibility) - } }, []) useEffect(() => setIsTablet(width <= sizes.tablet), [width]) diff --git a/src/components/Community/data.json b/src/components/Community/data.json index da37d8f93a..6f550868a2 100644 --- a/src/components/Community/data.json +++ b/src/components/Community/data.json @@ -1,7 +1,7 @@ { "hero": { - "pictureDesktop": "/static/img/community/banner.png", - "pictureMobile": "/static/img/community/banner-mobile.png", + "pictureDesktop": "/img/community/banner.png", + "pictureMobile": "/img/community/banner-mobile.png", "url": "https://www.mlprague.com/#schedule-saturday" }, "section": { @@ -49,21 +49,21 @@ "title": "Remote training with GitLab-CI and DVC", "author": "Marcel Mikl and Bert Besser", "date": "2020-01-28", - "pictureUrl": "/static/img/community/ugc/codecentric.png" + "pictureUrl": "/img/community/ugc/codecentric.png" }, { "url": "https://martinfowler.com/articles/cd4ml.html", "title": "Continuous Delivery for Machine Learning", "author": "Danilo Sato, Arif Wider and Christoph Windheuser", "date": "2019-09-20", - "pictureUrl": "/static/img/community/ugc/fowler_icon.ico" + "pictureUrl": "/img/community/ugc/fowler_icon.ico" }, { "url": "https://towardsdatascience.com/mlops-reducing-the-technical-debt-of-machine-learning-dac528ef39de", "title": "MLOps: Reducing the Technical Debt of Machine Learning", "author": "Saurav Chakravorty", "date": "2019-12-21", - "pictureUrl": "/static/img/community/ugc/tds_logo.png" + "pictureUrl": "/img/community/ugc/tds_logo.png" } ], "events": [ @@ -80,7 +80,7 @@ "description": "Paweł Redzyński will talk about open source tools for versioning machine learning projects", "city": "Prague", "date": "2020-03-20", - "pictureUrl": "/static/img/community/events/mlprague.jpg" + "pictureUrl": "/img/community/events/mlprague.jpg" }, { "url": "https://divops.org", @@ -88,7 +88,7 @@ "description": "Elle O'Brien is talking about open source software in the growing field of MLOps.", "city": "Remote", "date": "2020-03-25", - "pictureUrl": "/static/img/community/events/divops.jpg" + "pictureUrl": "/img/community/events/divops.jpg" } ], "stats": { diff --git a/src/components/Community/styles.js b/src/components/Community/styles.js index 8515ab1524..71fa51d6b4 100644 --- a/src/components/Community/styles.js +++ b/src/components/Community/styles.js @@ -120,3 +120,21 @@ export const PageWrapper = styled.div` padding-bottom: 0; `} ` + +export const Button = styled.a` + display: block; + height: 38px; + border-radius: 4px; + font-size: 16px; + font-family: BrandonGrotesqueMed; + line-height: 38px; + text-decoration: none; + text-align: center; + color: ${({ color }) => (color ? color : '#999')}; + background-color: ${({ backgroundColor }) => + backgroundColor ? backgroundColor : '#ddd'}; + + &:hover { + opacity: 0.7; + } +` diff --git a/src/components/Diagram/index.js b/src/components/Diagram/index.js index 6148dc1338..cdfcc069c6 100644 --- a/src/components/Diagram/index.js +++ b/src/components/Diagram/index.js @@ -5,6 +5,9 @@ import PropTypes from 'prop-types' import { Element } from 'react-scroll' import Slider from 'react-slick' +import 'slick-carousel/slick/slick.css' +import 'slick-carousel/slick/slick-theme.css' + import LocalLink from '../LocalLink' import { OnlyDesktop, OnlyMobile } from '../../styles' @@ -29,12 +32,7 @@ const LearnMore = ({ href }) => ( Learn more - + ) @@ -130,7 +128,7 @@ export default class DiagramSection extends Component { - + @@ -144,23 +142,17 @@ export default class DiagramSection extends Component { ML project version control - ML experiment management + ML experiment management - Deployment & Collaboration + Deployment & Collaboration diff --git a/src/components/Documentation/Markdown/index.js b/src/components/Documentation/Markdown/index.js index 3ea4ab591c..e840fb7a21 100644 --- a/src/components/Documentation/Markdown/index.js +++ b/src/components/Documentation/Markdown/index.js @@ -4,6 +4,8 @@ import ReactMarkdown from 'react-markdown' import Collapsible from 'react-collapsible' import kebabCase from 'lodash.kebabcase' +import 'github-markdown-css/github-markdown.css' + import Router from 'next/router' import LocalLink from '../../LocalLink' diff --git a/src/components/Documentation/Markdown/styles.js b/src/components/Documentation/Markdown/styles.js index 4fe58c8603..4ab76b37ad 100644 --- a/src/components/Documentation/Markdown/styles.js +++ b/src/components/Documentation/Markdown/styles.js @@ -55,7 +55,7 @@ export const Content = styled.article` right: 0; width: 20px; height: 20px; - background-image: url('/static/img/click.png'); + background-image: url('/img/click.png'); content: ''; font-family: monospace; transition: transform 200ms; @@ -126,7 +126,7 @@ export const Button = styled.a` i { display: inline-block; - background-image: url(/static/img/arrow.svg); + background-image: url(/img/arrow.svg); background-size: contain; background-position: center; background-repeat: no-repeat; @@ -185,7 +185,7 @@ export const GithubLink = styled(LightButton)` } i { - background-image: url(/static/img/github_icon.svg); + background-image: url(/img/github_icon.svg); } ` @@ -197,6 +197,6 @@ export const ExternalLink = styled.a` width: 12px; height: 12px; margin-left: 1px; - content: url(/static/img/external-link.svg); + content: url(/img/external-link.svg); } ` diff --git a/src/components/Documentation/RightPanel/styles.js b/src/components/Documentation/RightPanel/styles.js index bcebe20874..0827aa721a 100644 --- a/src/components/Documentation/RightPanel/styles.js +++ b/src/components/Documentation/RightPanel/styles.js @@ -58,13 +58,13 @@ export const ExternalButton = styled(LightButton)` export const GithubButton = styled(ExternalButton)` i { - background-image: url(/static/img/github_icon.svg); + background-image: url(/img/github_icon.svg); } ` export const DiscordButton = styled(ExternalButton)` i { - background-image: url(/static/img/discord.svg); + background-image: url(/img/discord.svg); width: 1.2em; height: 1.2em; } diff --git a/src/components/Documentation/SidebarMenu/index.js b/src/components/Documentation/SidebarMenu/index.js index 7253437034..129cf8e581 100644 --- a/src/components/Documentation/SidebarMenu/index.js +++ b/src/components/Documentation/SidebarMenu/index.js @@ -5,6 +5,8 @@ import scrollIntoView from 'dom-scroll-into-view' import PropTypes from 'prop-types' import includes from 'lodash.includes' +import 'perfect-scrollbar/css/perfect-scrollbar.css' + import DownloadButton from '../../DownloadButton' import LocalLink from '../../LocalLink' diff --git a/src/components/Documentation/SidebarMenu/styles.js b/src/components/Documentation/SidebarMenu/styles.js index 9a0f7bedaf..aea066423c 100644 --- a/src/components/Documentation/SidebarMenu/styles.js +++ b/src/components/Documentation/SidebarMenu/styles.js @@ -81,7 +81,7 @@ export const SectionLink = styled.a` position: absolute; width: 8px; height: 5px; - background: url('/static/img/triangle_dark.svg') no-repeat center center; + background: url('/img/triangle_dark.svg') no-repeat center center; left: 0px; top: 10px; diff --git a/src/components/Documentation/Tutorials/styles.js b/src/components/Documentation/Tutorials/styles.js index 1a92f74cc3..9071315bac 100644 --- a/src/components/Documentation/Tutorials/styles.js +++ b/src/components/Documentation/Tutorials/styles.js @@ -30,7 +30,7 @@ export const KatacodaButton = styled(ExternalButton)` white-space: nowrap; i { - background-image: url(/static/img/katacoda_grey_small.png); + background-image: url(/img/katacoda_grey_small.png); width: 24px; height: 24px; } diff --git a/src/components/Documentation/index.js b/src/components/Documentation/index.js index 6e2c279064..565ed0ceb6 100644 --- a/src/components/Documentation/index.js +++ b/src/components/Documentation/index.js @@ -1,8 +1,9 @@ -/* global docsearch:readonly */ - import React, { useCallback, useEffect, useMemo, useState } from 'react' import PropTypes from 'prop-types' import Router from 'next/router' +import docsearch from 'docsearch.js' + +import 'docsearch.js/dist/cdn/docsearch.css' import Page from '../Page' import Hamburger from '../Hamburger' diff --git a/src/components/DownloadButton/index.js b/src/components/DownloadButton/index.js index 75138f79a3..675921dc77 100644 --- a/src/components/DownloadButton/index.js +++ b/src/components/DownloadButton/index.js @@ -168,7 +168,7 @@ export default class DownloadButton extends Component { diff --git a/src/components/Features/index.js b/src/components/Features/index.js index 316d695c96..ef2c2dc903 100644 --- a/src/components/Features/index.js +++ b/src/components/Features/index.js @@ -18,7 +18,7 @@ export default function FeaturesPage() { Git compatible @@ -35,7 +35,7 @@ export default function FeaturesPage() { Storage agnostic @@ -49,10 +49,7 @@ export default function FeaturesPage() { - Reproducibility + Reproducibility Reproducible @@ -65,7 +62,7 @@ export default function FeaturesPage() { Low-friction branching @@ -81,7 +78,7 @@ export default function FeaturesPage() { - + Metric tracking @@ -93,7 +90,7 @@ export default function FeaturesPage() { ML pipelines framework @@ -108,7 +105,7 @@ export default function FeaturesPage() { Language & framework agnostic @@ -124,7 +121,7 @@ export default function FeaturesPage() { HDFS, Hive & Apache Spark @@ -140,7 +137,7 @@ export default function FeaturesPage() { Failure tracking diff --git a/src/components/Footer/index.js b/src/components/Footer/index.js index 38f8443f6d..4485c2fb71 100644 --- a/src/components/Footer/index.js +++ b/src/components/Footer/index.js @@ -35,7 +35,7 @@ export default function Footer(props) { site logoCompany Blog - + Iterative.ai Privacy Policy @@ -88,18 +85,18 @@ export default function Footer(props) { Social Twitter GitHub - + Discord diff --git a/src/components/GithubLine/index.js b/src/components/GithubLine/index.js index 8a9db20dba..8094c93da4 100644 --- a/src/components/GithubLine/index.js +++ b/src/components/GithubLine/index.js @@ -17,14 +17,10 @@ export default function GithubLine() { return ( - + We’re on GitHub - {' '} + {' '} {count} ) diff --git a/src/components/HamburgerMenu/index.js b/src/components/HamburgerMenu/index.js index 44d0ea2f53..d015563418 100644 --- a/src/components/HamburgerMenu/index.js +++ b/src/components/HamburgerMenu/index.js @@ -52,7 +52,7 @@ export default function HamburgerMenu() { - dvc.org + dvc.org @@ -89,7 +89,7 @@ export default function HamburgerMenu() { as={ImageLink} onClick={itemClick('community')} > - + Meet Us - + Contribute - + Learn - + Events @@ -129,7 +129,7 @@ export default function HamburgerMenu() { rel="noreferrer noopener" click={itemClick('mail')} > - + E-Mail - + GitHub - + Discord - + Twitter diff --git a/src/components/LandingHero/index.js b/src/components/LandingHero/index.js index ef9ca7f04c..a76338ced2 100644 --- a/src/components/LandingHero/index.js +++ b/src/components/LandingHero/index.js @@ -81,7 +81,7 @@ export default class LandingHero extends Component { Watch video { - if (!window.GA_INITIALIZED) { - initGA() - window.GA_INITIALIZED = true - } - - // Apperently next/head is using promises and because of that - // it updates after page is already rendered and useEffect is called, - // because of that we use rAF to place GA call after head update - requestAnimationFrame(() => logPageView()) - }, [router.asPath]) +import './fonts/fonts.css' +export default function Layout({ children, enableSmoothScroll, isDocPage }) { return ( diff --git a/src/components/LearnMore/index.js b/src/components/LearnMore/index.js index 541fee1e57..f4b2742837 100644 --- a/src/components/LearnMore/index.js +++ b/src/components/LearnMore/index.js @@ -20,7 +20,7 @@ export default function LearnMore() { return ( - Learn More + Learn More Learn more diff --git a/src/components/LocalLink/index.js b/src/components/LocalLink/index.js index b3badcae7e..5a6ba639e6 100644 --- a/src/components/LocalLink/index.js +++ b/src/components/LocalLink/index.js @@ -1,28 +1,20 @@ import React from 'react' import PropTypes from 'prop-types' -import NextLink from 'next/link' - -import { PAGE_DOC } from '../../consts' +import GatsbyLink from 'gatsby-link' export default function LocalLink({ children, - as: Component, - href, + as: SC, + href: to, ...restProps }) { - const nextProps = href.match(/^\/doc/) - ? { href: PAGE_DOC, as: href } - : { href } + const Component = SC ? SC.withComponent(GatsbyLink) : GatsbyLink return ( - - {Component ? ( - {children} - ) : ( - {children} - )} - + + {children} + ) } diff --git a/src/components/Nav/index.js b/src/components/Nav/index.js index 7e97e6c329..35ae55b9b8 100644 --- a/src/components/Nav/index.js +++ b/src/components/Nav/index.js @@ -95,10 +95,10 @@ export default function Nav({ mobile = false }) { target="_blank" rel="noreferrer noopener" > - + - + - + For data scientists, by data scientists - + ) diff --git a/src/components/PromoSection/styles.js b/src/components/PromoSection/styles.js index 2908bd06fb..a97b321371 100644 --- a/src/components/PromoSection/styles.js +++ b/src/components/PromoSection/styles.js @@ -59,7 +59,7 @@ export const Button = styled.a` color: #ffffff; background-color: #945dd6; - background: url('/static/img/arrow_right_white.svg') right center no-repeat; + background: url('/img/arrow_right_white.svg') right center no-repeat; background-position-x: 147px; transition: 0.2s background-color ease-out; @@ -76,7 +76,7 @@ export const Button = styled.a` background-color: #ffffff; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.21); - background-image: url('/static/img/arrow_right_dark.svg'); + background-image: url('/img/arrow_right_dark.svg'); transition: 0.2s background-color ease-out; &:hover { diff --git a/src/components/SEO/index.js b/src/components/SEO/index.js new file mode 100644 index 0000000000..5826a24a00 --- /dev/null +++ b/src/components/SEO/index.js @@ -0,0 +1,137 @@ +import PropTypes from 'prop-types' +import { graphql, useStaticQuery } from 'gatsby' +import React from 'react' +import Helmet from 'react-helmet' + +function SEO({ + title, + defaultMetaTitle, + description, + keywords, + image, + lang, + meta +}) { + const { site } = useStaticQuery( + graphql` + query { + site { + siteMetadata { + title + description + keywords + siteUrl + } + } + } + ` + ) + + const metaDescription = description || site.siteMetadata.description + + const metaKeywords = keywords || site.siteMetadata.keywords + + const metaTitle = title && !defaultMetaTitle ? title : site.siteMetadata.title + + const metaImage = image || '/social-share.png' + + const defaultMeta = [ + { + property: 'description', + content: metaDescription + }, + { + property: 'keywords', + content: metaKeywords + }, + { + property: 'og:title', + content: metaTitle + }, + { + property: 'og:description', + content: metaDescription + }, + { + property: 'og:type', + content: 'website' + }, + { + property: 'og:image', + content: metaImage + }, + { + property: 'og:image:secure_url', + content: metaImage + }, + { + name: 'twitter:card', + content: `summary_large_image` + }, + { + name: 'twitter:title', + content: metaTitle + }, + { + name: 'twitter:description', + content: metaDescription + }, + { + name: 'twitter:image', + content: encodeURI(`${site.siteMetadata.siteUrl}${metaImage}`) + } + ] + + return ( + + ) +} + +SEO.propTypes = { + title: PropTypes.string, + defaultMetaTitle: PropTypes.bool, + description: PropTypes.string, + keywords: PropTypes.array, + image: PropTypes.string, + lang: PropTypes.string, + meta: PropTypes.array +} + +SEO.defaultProps = { + lang: `en`, + meta: [] +} + +export default SEO diff --git a/src/components/SearchForm/styles.js b/src/components/SearchForm/styles.js index 6022840c28..ba988dc67b 100644 --- a/src/components/SearchForm/styles.js +++ b/src/components/SearchForm/styles.js @@ -15,7 +15,7 @@ export const Input = styled.input` border: solid 1px #dbe4ea; padding-left: 48px; padding-right: 24px; - background-image: url('/static/img/search.svg'); + background-image: url('/img/search.svg'); background-repeat: no-repeat; background-position: 15px center; font-size: 16px; diff --git a/src/components/Subscribe/index.js b/src/components/Subscribe/index.js index a35b315921..ea992e3cba 100644 --- a/src/components/Subscribe/index.js +++ b/src/components/Subscribe/index.js @@ -7,14 +7,14 @@ import { Container, Glyph, SubscribeContainer, Title, Wrapper } from './styles' export default function Subscribe() { return ( - + Subscribe for updates. We won't spam you. - + ) } diff --git a/src/components/Support/index.js b/src/components/Support/index.js index 73b5c48e08..ba75d61888 100644 --- a/src/components/Support/index.js +++ b/src/components/Support/index.js @@ -35,7 +35,7 @@ export default function SupportPage() { - + Slack-like Chat @@ -70,7 +70,7 @@ export default function SupportPage() { - + Bugs & Features @@ -89,7 +89,7 @@ export default function SupportPage() { - + Forum @@ -105,7 +105,7 @@ export default function SupportPage() { - + Email diff --git a/src/components/Support/styles.js b/src/components/Support/styles.js index 62e275ec38..475895ed33 100644 --- a/src/components/Support/styles.js +++ b/src/components/Support/styles.js @@ -126,7 +126,7 @@ export const DiscrodWidget = styled.img` width: 50px; height: 50px; cursor: pointer; - mask-image: url('/static/img/support/discord.svg'); + mask-image: url('/img/support/discord.svg'); mask-repeat: no-repeat; mask-position: center; background-color: #b88eeb; diff --git a/src/components/Tooltip/index.js b/src/components/Tooltip/index.js index a8398fb3fb..fe24801f8b 100644 --- a/src/components/Tooltip/index.js +++ b/src/components/Tooltip/index.js @@ -5,7 +5,7 @@ import includes from 'lodash.includes' import DesktopView from './DesktopView' import MobileView from './MobileView' -import glossary from '../../../public/static/docs/glossary' +import glossary from '../../../docs/glossary' import { OnlyDesktopInline, OnlyMobileInline } from '../../styles' diff --git a/src/components/TopMenu/index.js b/src/components/TopMenu/index.js index c4bfe432c8..924581fc51 100644 --- a/src/components/TopMenu/index.js +++ b/src/components/TopMenu/index.js @@ -54,12 +54,7 @@ export default class TopMenu extends Component { wide={isDocPage} > - dvc.org + dvc.org