diff --git a/tools/gendocs/.gitignore b/tools/gendocs/.gitignore deleted file mode 100644 index 542ebfb2..00000000 --- a/tools/gendocs/.gitignore +++ /dev/null @@ -1,71 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# Typescript v1 declaration files -typings/ - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# dotenv environment variable files -.env* - -# gatsby files -.cache/ -public - -# Mac files -.DS_Store - -# Yarn -yarn-error.log -.pnp/ -.pnp.js -# Yarn Integrity file -.yarn-integrity - -.idea/ diff --git a/tools/gendocs/LICENSE b/tools/gendocs/LICENSE deleted file mode 100644 index e74feb36..00000000 --- a/tools/gendocs/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 Rocketseat - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/tools/gendocs/README.md b/tools/gendocs/README.md deleted file mode 100644 index 9dcc6808..00000000 --- a/tools/gendocs/README.md +++ /dev/null @@ -1,61 +0,0 @@ -

- A illustration of file that is the @rocketseat/gatsby-theme-docs logo -

- -

- Gatsby Starter: Rocket Docs -

- -

- Out of the box Gatsby Starter for creating documentation websites easily and quickly. With support for MDX, code highlight, Analytics, SEO and more πŸ”₯ Using the theme: @rocketseat/gatsby-theme-docs -

- -

- PRs welcome! - - License - - - Follow @rocketseat - -

- -## πŸš€ Features - -- πŸ“ MDX for docs; -- πŸ›£ Yaml-based sidebar navigation; -- πŸ“± Responsive and mobile friendly; -- πŸ–₯ Code highlighting with [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) and [react-live](https://github.com/FormidableLabs/react-live) support; -- πŸ₯‡ SEO (Sitemap, schema.org data, Open Graph and Twitter tags). -- πŸ“ˆ Google Analytics support; -- πŸ“„ Custom docs schema; -- πŸ–± Table of Contents; -- ⚑️ Offline Support & WebApp Manifest; -- and much more πŸ”₯ - -## ⚑️ Getting started - -1. Create the website. - - ```sh - npx gatsby new rocket-docs https://github.com/rocketseat/gatsby-starter-rocket-docs - ``` - -2. Start developing. - - ```sh - cd rocket-docs - gatsby develop - ``` - -3. Are you ready for launch? - - Your site is now running at `http://localhost:8000` - -## πŸ“„ Docs - -Looking for docs? Check our live demo and documentation [website](https://rocketdocs.netlify.app). - ---- - -Made with πŸ’œ by Rocketseat :wave: [check our community!](https://discordapp.com/invite/gCRAFhc) diff --git a/tools/gendocs/docs b/tools/gendocs/docs deleted file mode 120000 index 92a7f825..00000000 --- a/tools/gendocs/docs +++ /dev/null @@ -1 +0,0 @@ -../../docs \ No newline at end of file diff --git a/tools/gendocs/gatsby-config.js b/tools/gendocs/gatsby-config.js deleted file mode 100644 index 74f783b3..00000000 --- a/tools/gendocs/gatsby-config.js +++ /dev/null @@ -1,28 +0,0 @@ -module.exports = { - pathPrefix: `/${process.env.VERSION}`, - siteMetadata: { - siteTitle: `Dagger Docs`, - defaultTitle: `Dagger Docs`, - siteTitleShort: `Dagger Docs`, - siteDescription: `Dagger Documentation`, - siteUrl: `https://launch.dagger.io`, - siteAuthor: `@dagger`, - siteImage: `/banner.png`, - siteLanguage: `en`, - themeColor: `#1890FF`, - docVersion : `${process.env.VERSION}`, - }, - flags: { PRESERVE_WEBPACK_CACHE: true }, - plugins: [ - { - resolve: `@rocketseat/gatsby-theme-docs`, - options: { - basePath: `/`, - configPath: `docs/sidebar`, - docsPath: `docs`, - repositoryUrl: `https://github.com/dagger/dagger`, - baseDir: `/`, - }, - }, - ], -}; diff --git a/tools/gendocs/package.json b/tools/gendocs/package.json deleted file mode 100644 index aef687f0..00000000 --- a/tools/gendocs/package.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "name": "dagger-docs", - "private": true, - "version": "1.0.0", - "description": "dagger dc", - "author": "Dagger", - "license": "MIT", - "starter-name": "dagger-docs-generator", - "dependencies": { - "@rocketseat/gatsby-theme-docs": "^2.3.1", - "gatsby": "^3.0.4", - "gatsby-plugin-canonical-urls": "^3.0.0", - "gatsby-plugin-google-analytics": "^3.0.0", - "gatsby-plugin-manifest": "^3.0.0", - "gatsby-plugin-offline": "^4.0.0", - "gatsby-plugin-remove-trailing-slashes": "^3.0.0", - "gatsby-plugin-sitemap": "^3.0.0", - "prop-types": "^15.7.2", - "react": "^17.0.1", - "react-dom": "^17.0.1" - }, - "devDependencies": {}, - "keywords": [ - "gatsby", - "rocketseat", - "gatsby-starter" - ], - "scripts": { - "build": "gatsby build", - "start": "gatsby develop", - "serve": "gatsby serve", - "clean": "gatsby clean" - } -} diff --git a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/assets/dagger-logo.png b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/assets/dagger-logo.png deleted file mode 100644 index 7c5e64e8..00000000 Binary files a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/assets/dagger-logo.png and /dev/null differ diff --git a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Logos.js b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Logos.js deleted file mode 100644 index 35cdeea3..00000000 --- a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Logos.js +++ /dev/null @@ -1,6 +0,0 @@ -import React from 'react'; -import logo from '../assets/dagger-logo.png' - -export default function Logo(props) { - return Logo -} \ No newline at end of file diff --git a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/ExternalLink/index.js b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/ExternalLink/index.js deleted file mode 100644 index dcbad43c..00000000 --- a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/ExternalLink/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import { FiExternalLink } from 'react-icons/fi'; - -export default function ExternalLink({ link, label }) { - return ( - - {label} - - - ); -} - -ExternalLink.propTypes = { - link: PropTypes.string.isRequired, - label: PropTypes.string.isRequired, -}; diff --git a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/InternalLink/index.js b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/InternalLink/index.js deleted file mode 100644 index f951b77f..00000000 --- a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/InternalLink/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import {Link} from 'gatsby'; - -export default function InternalLink({ link, label }) { - - return ( - - {label} - - ); -} - -InternalLink.propTypes = { - link: PropTypes.string.isRequired, - label: PropTypes.string.isRequired, -}; diff --git a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js deleted file mode 100644 index 22b19355..00000000 --- a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/Select/index.js +++ /dev/null @@ -1,30 +0,0 @@ -import React, { useEffect, useState } from "react"; -import { Select as SelectStyled } from '../styles'; - -const Select = () => { - const isBrowser = typeof window !== "undefined" - const [tagsList, setTagsList] = useState([]) - const currentLocation = isBrowser ? window.location.pathname.split('/') : [] - currentLocation.shift() //remove last trailing slash - - useEffect(() => { - async function getTags() { - const fetchTags = await fetch('/tags.json').then(result => result.json()); - if (fetchTags.length > 0) { - setTagsList(fetchTags); - } - } - - getTags() - }, []) - - return ( - isBrowser ? window.location.pathname = `/${e.currentTarget.value}` : null}> - {tagsList.map(t => ( - - ))} - - ); -}; - -export default Select; diff --git a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/index.js b/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/index.js deleted file mode 100644 index e1aff7fe..00000000 --- a/tools/gendocs/src/@rocketseat/gatsby-theme-docs/components/Sidebar/index.js +++ /dev/null @@ -1,95 +0,0 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import { useStaticQuery, graphql, Link } from 'gatsby'; -import { useSidebar } from '@rocketseat/gatsby-theme-docs-core'; - -import { - Container, - LogoContainer, - List, - Heading, - Item, - SubItem, -} from './styles'; -import Select from './Select' -import { isExternalUrl } from '../../util/url'; -import ExternalLink from './ExternalLink'; -import InternalLink from './InternalLink'; -import Logo from '../Logos'; - -function ListWithSubItems({ children, text }) { - return ( - <> - {text} - {children} - - ); -} - -export default function Sidebar({ isMenuOpen }) { - const { - site: { - siteMetadata: { basePath }, - }, - } = useStaticQuery(graphql` - { - site { - siteMetadata { - basePath - } - } - } - `); - - const data = useSidebar(); - - function renderLink(link, label) { - return isExternalUrl(link) ? ( - - ) : ( - - ); - } - - return ( - - - - -