diff --git a/.prettierrc.json b/.prettierrc.json index c764781e6..dcfe08e2e 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,5 +1,13 @@ { "arrowParens": "always", "trailingComma": "all", - "printWidth": 80 + "printWidth": 80, + "overrides": [ + { + "files": "*.mdx", + "options": { + "printWidth": 40 + } + } + ] } diff --git a/Victory-Hero.png b/Victory-Hero.png deleted file mode 100644 index e950c0995..000000000 Binary files a/Victory-Hero.png and /dev/null differ diff --git a/docs/.eslintrc.json b/docs/.eslintrc.json deleted file mode 100644 index 9cecdbe2f..000000000 --- a/docs/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": "next/core-web-vitals", - "rules": { - "no-magic-numbers": 0, - "react/no-multi-comp": 0, - "new-cap": 0, - "max-params": 0, - "@typescript-eslint/ban-ts-comment": 0, - "@typescript-eslint/no-unnecessary-type-assertion": 0 - } -} diff --git a/docs/.gitignore b/docs/.gitignore deleted file mode 100644 index fd3dbb571..000000000 --- a/docs/.gitignore +++ /dev/null @@ -1,36 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js -.yarn/install-state.gz - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index 0fbff9c12..000000000 --- a/docs/README.md +++ /dev/null @@ -1,49 +0,0 @@ -

Victory Documentation Site

- -[Documentation site](https://commerce.nearform.com/open-source/victory/) for [victory](https://github.com/FormidableLabs/victory) built with [Next.js](https://nextjs.org/). - - -## Getting Started - -To install and run the docs site locally, first install and build from the ROOT of this repository - -The victory packages are PNPM linked into this project. You will need to execute a build at the root of the repository before the changes will be picked up by the documentation site. - -```bash -pnpm install -pnpm build -pnpm dev -``` - -Note that paths in local development are based on a root of "/" but be careful when defining relative and absolute paths inline or doing url parsing, as the production output root will be "open-source/victory." - -## Want to see if you're ready to :shipit:? - -First, build the static site (within /docs folder): - -```bash -pnpm build -``` -Once the build succeeds, serve it: - -```bash -pnpm start -``` - -This will render the docs site at `http://localhost:3000/open-source/victory/`. If you go to root (i.e. `http://localhost:3000/`). - -Note the staging and production sites are served from a nested path, e.g. `https://commerce.nearform.com/open-source/victory`. This step is important for validating that both the `basePath` used by the static HTML output and the `basename` used by the client-side router are working as expected. - -## Deployment - -### Preview Environments - -Upon creating a Pull Request, a Vercel preview deployment is created and posted as a comment on the pull request to allow for testing changes. - -### Production - -This site is deployed with Vercel infrastructure. - -The site is directly accessible at [https://victory-rose.vercel.app/open-source/victory](https://victory-rose.vercel.app/open-source/victory). - -The `commerce.nearform.com` site uses a rewrite to host it under the path [https://commerce.nearform.com/open-source/victory/](https://commerce.nearform.com/open-source/victory/). diff --git a/docs/next.config.mjs b/docs/next.config.mjs deleted file mode 100644 index 183cb354f..000000000 --- a/docs/next.config.mjs +++ /dev/null @@ -1,9 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = { - basePath: "/open-source/victory", - compiler: { - styledComponents: true, - }, -}; - -export default nextConfig; diff --git a/docs/package.json b/docs/package.json deleted file mode 100644 index 088825cb3..000000000 --- a/docs/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "victory-docs", - "description": "Documentation site for Victory", - "version": "9.3.1", - "private": true, - "scripts": { - "dev": "next dev", - "prebuild": "pnpm -C .. run build", - "build": "pnpm run prebuild && next build", - "start": "next start", - "lint": "next lint" - }, - "dependencies": { - "next": "14.1.0", - "react": "^18", - "react-dom": "^18" - }, - "devDependencies": { - "@d3fc/d3fc-discontinuous-scale": "^4.0.2", - "@next/third-parties": "^14.1.0", - "@typescript-eslint/eslint-plugin": "^6", - "@typescript-eslint/parser": "^6", - "@types/klaw": "^3.0.6", - "@types/node": "^20", - "@types/react": "^18", - "@types/react-dom": "^18", - "autoprefixer": "^10.0.1", - "axios": "^0.21.2", - "d3-array": "^2.4.0", - "d3-scale": "^3.2.1", - "d3-time": "^1.1.0", - "date-fns": "^2.12.0", - "eslint": "^8", - "eslint-config-next": "14.1.0", - "formidable-oss-badges": "^1.3.1", - "fuse.js": "^3.2.1", - "gray-matter": "^4.0.3", - "js-yaml": "^3.12.0", - "klaw": "^3.0.0", - "lodash": "^4.17.19", - "postcss": "^8", - "prism-react-renderer": "^2.3.1", - "react-cool-inview": "^3.0.1", - "react-copy-to-clipboard": "^5.1.0", - "react-icons": "^5.3.0", - "react-inlinesvg": "^4.1.1", - "react-live": "^4.1.6", - "react-markdown": "^9.0.1", - "react-scroll": "^1.9.0", - "remark": "^9.0.0", - "remark-frontmatter": "^1.3.0", - "remark-slug": "^5.1.1", - "styled-components": "^6.1.8", - "styled-normalize": "^8.0.6", - "tailwindcss": "^3.3.0", - "typescript": "^5", - "unist-util-select": "^1.5.0", - "victory": "*" - }, - "overrides": { - "react": "^18" - } -} diff --git a/docs/postcss.config.js b/docs/postcss.config.js deleted file mode 100644 index 12a703d90..000000000 --- a/docs/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; diff --git a/docs/public/require-cycles.png b/docs/public/require-cycles.png deleted file mode 100644 index 298fbe2d3..000000000 Binary files a/docs/public/require-cycles.png and /dev/null differ diff --git a/docs/src/app/about/page.tsx b/docs/src/app/about/page.tsx deleted file mode 100644 index a1fefc1d6..000000000 --- a/docs/src/app/about/page.tsx +++ /dev/null @@ -1,103 +0,0 @@ -"use client"; - -import styled from "styled-components"; - -import StyledLayout from "@/layouts/styled-page"; - -import Page from "@/partials/page"; -import Showcase from "@/partials/about/showcase"; -import Footer from "@/partials/footer"; - -const Divider = styled.hr` - height: 1px; - border: none; - border-bottom: 1px solid ${({ theme }) => theme.color.paleRed}; - margin: 2.8rem 0 3rem 0; -`; - -const Section = styled.div` - margin-bottom: 4.6rem; -`; - -const PageHeader = styled.h1` - font-family: ${({ theme }) => theme.font.bold}; - margin-top: 0; - margin-bottom: 2rem; -`; - -const Subheader = styled.h2` - font-size: 3rem; - font-family: ${({ theme }) => theme.font.bold}; - margin-top: 0; - margin-bottom: 0.4rem; -`; - -const GitHubIconContainer = styled.div` - margin-bottom: 2.3rem; -`; - -export default function Home() { - return ( - - - Victory: Charting for React and React Native - - {/* - * TODO: Customize these buttons - * https://github.com/FormidableLabs/formidable-landers/issues/175 - */} - - - - -

- Victory is a set of modular charting components for React and React - Native. Victory makes it easy to get started without sacrificing - flexibility. Create one of a kind data visualizations with fully - customizable styles and behaviors. Victory uses the same API for web - and React Native applications for easy cross-platform charting. -

-

- - See Victory Contributors - -

- - - -
- Victory in Use -

- Victory is used for charting across the web, from publicly-consumed - informational graphs to internal tracking and reporting. -

-
- - - -