diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..48e341a --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3 @@ +{ + "lockfileVersion": 1 +} diff --git a/website/.docusaurus/client-modules.js b/website/.docusaurus/client-modules.js new file mode 100644 index 0000000..655586e --- /dev/null +++ b/website/.docusaurus/client-modules.js @@ -0,0 +1,3 @@ +export default [ + require("infima/dist/css/default/default.css"), +]; diff --git a/website/.docusaurus/docusaurus-plugin-content-blog/blog-2018-08-24-launch-4d6.json b/website/.docusaurus/docusaurus-plugin-content-blog/blog-2018-08-24-launch-4d6.json new file mode 100644 index 0000000..e576a11 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-blog/blog-2018-08-24-launch-4d6.json @@ -0,0 +1,8 @@ +{ + "permalink": "/blog/2018/08/24/launch", + "source": "@site/blog/2018-08-24-launch.md", + "description": "We are excited to announce Bowler, the safe refactoring tool for modern Python!", + "date": "2018-08-24T00:00:00.000Z", + "tags": [], + "title": "Introducing Bowler" +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-blog/blog-c06.json b/website/.docusaurus/docusaurus-plugin-content-blog/blog-c06.json new file mode 100644 index 0000000..8d5d5ca --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-blog/blog-c06.json @@ -0,0 +1,9 @@ +{ + "permalink": "/blog", + "page": 1, + "postsPerPage": 10, + "totalPages": 1, + "totalCount": 1, + "previousPage": null, + "nextPage": null +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-commands-f77.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-commands-f77.json new file mode 100644 index 0000000..71cfa05 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-commands-f77.json @@ -0,0 +1,16 @@ +{ + "id": "api-commands", + "title": "CLI Commands", + "description": "Bowler provides a command line tool to simplify the process of testing and", + "source": "@site/../docs/api-commands.md", + "permalink": "/docs/api-commands", + "sidebar": "docs", + "next": { + "title": "Developing Bowler", + "permalink": "/docs/dev-intro" + }, + "previous": { + "title": "Modifiers", + "permalink": "/docs/api-modifiers" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-filters-1e2.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-filters-1e2.json new file mode 100644 index 0000000..654665f --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-filters-1e2.json @@ -0,0 +1,16 @@ +{ + "id": "api-filters", + "title": "Filters", + "description": "Filters in Bowler are intermediate functions that optionally restrict the set of", + "source": "@site/../docs/api-filters.md", + "permalink": "/docs/api-filters", + "sidebar": "docs", + "next": { + "title": "Modifiers", + "permalink": "/docs/api-modifiers" + }, + "previous": { + "title": "Selectors", + "permalink": "/docs/api-selectors" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-modifiers-6fa.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-modifiers-6fa.json new file mode 100644 index 0000000..13ccc10 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-modifiers-6fa.json @@ -0,0 +1,16 @@ +{ + "id": "api-modifiers", + "title": "Modifiers", + "description": "Modifiers in Bowler are functions that modify, add, remove, or replace syntax tree", + "source": "@site/../docs/api-modifiers.md", + "permalink": "/docs/api-modifiers", + "sidebar": "docs", + "next": { + "title": "CLI Commands", + "permalink": "/docs/api-commands" + }, + "previous": { + "title": "Filters", + "permalink": "/docs/api-filters" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-query-29c.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-query-29c.json new file mode 100644 index 0000000..5d9b649 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-query-29c.json @@ -0,0 +1,16 @@ +{ + "id": "api-query", + "title": "Queries", + "description": "Bowler provides a \"fluent\" `Query` API for building and executing refactoring scripts.", + "source": "@site/../docs/api-query.md", + "permalink": "/docs/api-query", + "sidebar": "docs", + "next": { + "title": "Selectors", + "permalink": "/docs/api-selectors" + }, + "previous": { + "title": "Usage", + "permalink": "/docs/basics-usage" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-selectors-893.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-selectors-893.json new file mode 100644 index 0000000..da34260 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-api-selectors-893.json @@ -0,0 +1,16 @@ +{ + "id": "api-selectors", + "title": "Selectors", + "description": "Selectors are defined using the **lib2to3** pattern syntax to search the syntax tree", + "source": "@site/../docs/api-selectors.md", + "permalink": "/docs/api-selectors", + "sidebar": "docs", + "next": { + "title": "Filters", + "permalink": "/docs/api-filters" + }, + "previous": { + "title": "Queries", + "permalink": "/docs/api-query" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-intro-09b.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-intro-09b.json new file mode 100644 index 0000000..66bb289 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-intro-09b.json @@ -0,0 +1,12 @@ +{ + "id": "basics-intro", + "title": "Introduction", + "description": "## What is Bowler?", + "source": "@site/../docs/basics-intro.md", + "permalink": "/docs/basics-intro", + "sidebar": "docs", + "next": { + "title": "Refactoring", + "permalink": "/docs/basics-refactoring" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-refactoring-912.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-refactoring-912.json new file mode 100644 index 0000000..127fcbd --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-refactoring-912.json @@ -0,0 +1,16 @@ +{ + "id": "basics-refactoring", + "title": "Refactoring", + "description": "Bowler builds on top of the Concrete Syntax Tree (CST) provided by **lib2to3** in the", + "source": "@site/../docs/basics-refactoring.md", + "permalink": "/docs/basics-refactoring", + "sidebar": "docs", + "next": { + "title": "Setup", + "permalink": "/docs/basics-setup" + }, + "previous": { + "title": "Introduction", + "permalink": "/docs/basics-intro" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-setup-4a6.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-setup-4a6.json new file mode 100644 index 0000000..5858671 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-setup-4a6.json @@ -0,0 +1,16 @@ +{ + "id": "basics-setup", + "title": "Setup", + "description": "## Installing Bowler", + "source": "@site/../docs/basics-setup.md", + "permalink": "/docs/basics-setup", + "sidebar": "docs", + "next": { + "title": "Usage", + "permalink": "/docs/basics-usage" + }, + "previous": { + "title": "Refactoring", + "permalink": "/docs/basics-refactoring" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-usage-6af.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-usage-6af.json new file mode 100644 index 0000000..7c3c577 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-basics-usage-6af.json @@ -0,0 +1,16 @@ +{ + "id": "basics-usage", + "title": "Usage", + "description": "Bowler provides two primary mechanisms for refactoring. It provides a", + "source": "@site/../docs/basics-usage.md", + "permalink": "/docs/basics-usage", + "sidebar": "docs", + "next": { + "title": "Queries", + "permalink": "/docs/api-query" + }, + "previous": { + "title": "Setup", + "permalink": "/docs/basics-setup" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-dev-intro-413.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-dev-intro-413.json new file mode 100644 index 0000000..9dfcc57 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-dev-intro-413.json @@ -0,0 +1,16 @@ +{ + "id": "dev-intro", + "title": "Developing Bowler", + "description": "We want to make contributing to this project as easy and transparent as", + "source": "@site/../docs/dev-intro.md", + "permalink": "/docs/dev-intro", + "sidebar": "docs", + "next": { + "title": "Roadmap to the Future", + "permalink": "/docs/dev-roadmap" + }, + "previous": { + "title": "CLI Commands", + "permalink": "/docs/api-commands" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-dev-roadmap-609.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-dev-roadmap-609.json new file mode 100644 index 0000000..2f65122 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-dev-roadmap-609.json @@ -0,0 +1,12 @@ +{ + "id": "dev-roadmap", + "title": "Roadmap to the Future", + "description": "Bowler is still a very young project. There are many ways in which it could improve and", + "source": "@site/../docs/dev-roadmap.md", + "permalink": "/docs/dev-roadmap", + "sidebar": "docs", + "previous": { + "title": "Developing Bowler", + "permalink": "/docs/dev-intro" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus-plugin-content-docs/docs-route-ff2.json b/website/.docusaurus/docusaurus-plugin-content-docs/docs-route-ff2.json new file mode 100644 index 0000000..5552e61 --- /dev/null +++ b/website/.docusaurus/docusaurus-plugin-content-docs/docs-route-ff2.json @@ -0,0 +1,92 @@ +{ + "docsSidebars": { + "docs": [ + { + "type": "category", + "label": "Basics", + "items": [ + { + "type": "link", + "label": "Introduction", + "href": "/docs/basics-intro" + }, + { + "type": "link", + "label": "Refactoring", + "href": "/docs/basics-refactoring" + }, + { + "type": "link", + "label": "Setup", + "href": "/docs/basics-setup" + }, + { + "type": "link", + "label": "Usage", + "href": "/docs/basics-usage" + } + ] + }, + { + "type": "category", + "label": "API Reference", + "items": [ + { + "type": "link", + "label": "Queries", + "href": "/docs/api-query" + }, + { + "type": "link", + "label": "Selectors", + "href": "/docs/api-selectors" + }, + { + "type": "link", + "label": "Filters", + "href": "/docs/api-filters" + }, + { + "type": "link", + "label": "Modifiers", + "href": "/docs/api-modifiers" + }, + { + "type": "link", + "label": "CLI Commands", + "href": "/docs/api-commands" + } + ] + }, + { + "type": "category", + "label": "Contributing", + "items": [ + { + "type": "link", + "label": "Developing Bowler", + "href": "/docs/dev-intro" + }, + { + "type": "link", + "label": "Roadmap to the Future", + "href": "/docs/dev-roadmap" + } + ] + } + ] + }, + "permalinkToSidebar": { + "/docs/api-commands": "docs", + "/docs/api-filters": "docs", + "/docs/api-modifiers": "docs", + "/docs/api-query": "docs", + "/docs/api-selectors": "docs", + "/docs/basics-intro": "docs", + "/docs/basics-refactoring": "docs", + "/docs/basics-setup": "docs", + "/docs/basics-usage": "docs", + "/docs/dev-intro": "docs", + "/docs/dev-roadmap": "docs" + } +} \ No newline at end of file diff --git a/website/.docusaurus/docusaurus.config.js b/website/.docusaurus/docusaurus.config.js new file mode 100644 index 0000000..3b40f88 --- /dev/null +++ b/website/.docusaurus/docusaurus.config.js @@ -0,0 +1,69 @@ +export default { + "plugins": [], + "themes": [], + "customFields": {}, + "themeConfig": { + "navbar": { + "title": "Bowler", + "logo": { + "alt": "Bowler", + "src": "img/logo/Bowler_FullColor.svg" + }, + "links": [ + { + "to": "docs/basics-intro", + "label": "Getting Started", + "position": "right" + }, + { + "to": "docs/api-query", + "label": "API Reference", + "position": "right" + }, + { + "to": "docs/dev-roadmap", + "label": "Roadmap", + "position": "right" + }, + { + "href": "https://github.com/facebookincubator/bowler", + "label": "GitHub", + "position": "right" + } + ] + }, + "footer": { + "logo": { + "alt": "Facebook Open Source Logo", + "src": "img/oss_logo.png" + }, + "copyright": "Copyright © 2019 Facebook, Inc." + } + }, + "title": "Bowler", + "tagline": "Safe code refactoring for modern Python", + "url": "https://pybowler.io", + "baseUrl": "/", + "projectName": "bowler", + "organizationName": "facebookincubator", + "favicon": "img/favicon/Oddy.png", + "scripts": [ + "https://buttons.github.io/buttons.js" + ], + "presets": [ + [ + "@docusaurus/preset-classic", + { + "docs": { + "path": "../docs", + "sidebarPath": "/Users/diegoponce/Documents/projects/Bowler/website/sidebars.js" + } + }, + { + "theme": { + "customCss": "/Users/diegoponce/Documents/projects/Bowler/website/src/css/custom.css" + } + } + ] + ] +}; \ No newline at end of file diff --git a/website/.docusaurus/registry.js b/website/.docusaurus/registry.js new file mode 100644 index 0000000..58d45ac --- /dev/null +++ b/website/.docusaurus/registry.js @@ -0,0 +1,35 @@ +export default { + 'component---site-src-pages-help-js-7-e-3-222': [() => import(/* webpackChunkName: 'component---site-src-pages-help-js-7-e-3-222' */ "@site/src/pages/help.js"), "@site/src/pages/help.js", require.resolveWeak("@site/src/pages/help.js")], + 'component---site-src-pages-index-jsc-4-f-f99': [() => import(/* webpackChunkName: 'component---site-src-pages-index-jsc-4-f-f99' */ "@site/src/pages/index.js"), "@site/src/pages/index.js", require.resolveWeak("@site/src/pages/index.js")], + 'component---site-src-pages-users-js-1-db-7ac': [() => import(/* webpackChunkName: 'component---site-src-pages-users-js-1-db-7ac' */ "@site/src/pages/users.js"), "@site/src/pages/users.js", require.resolveWeak("@site/src/pages/users.js")], + 'component---theme-blog-list-pagea-6-a-7ba': [() => import(/* webpackChunkName: 'component---theme-blog-list-pagea-6-a-7ba' */ "@theme/BlogListPage"), "@theme/BlogListPage", require.resolveWeak("@theme/BlogListPage")], + 'component---theme-blog-post-pageccc-cab': [() => import(/* webpackChunkName: 'component---theme-blog-post-pageccc-cab' */ "@theme/BlogPostPage"), "@theme/BlogPostPage", require.resolveWeak("@theme/BlogPostPage")], + 'component---theme-doc-item-178-a40': [() => import(/* webpackChunkName: 'component---theme-doc-item-178-a40' */ "@theme/DocItem"), "@theme/DocItem", require.resolveWeak("@theme/DocItem")], + 'component---theme-doc-page-1-be-9be': [() => import(/* webpackChunkName: 'component---theme-doc-page-1-be-9be' */ "@theme/DocPage"), "@theme/DocPage", require.resolveWeak("@theme/DocPage")], + 'content---blog-2018-08-24-launch-540-ec5': [() => import(/* webpackChunkName: 'content---blog-2018-08-24-launch-540-ec5' */ "@site/blog/2018-08-24-launch.md"), "@site/blog/2018-08-24-launch.md", require.resolveWeak("@site/blog/2018-08-24-launch.md")], + 'content---blog-9-b-8-a4b': [() => import(/* webpackChunkName: 'content---blog-9-b-8-a4b' */ "@site/blog/2018-08-24-launch.md?truncated=true"), "@site/blog/2018-08-24-launch.md?truncated=true", require.resolveWeak("@site/blog/2018-08-24-launch.md?truncated=true")], + 'content---docs-api-commandscaa-cb8': [() => import(/* webpackChunkName: 'content---docs-api-commandscaa-cb8' */ "@site/../docs/api-commands.md"), "@site/../docs/api-commands.md", require.resolveWeak("@site/../docs/api-commands.md")], + 'content---docs-api-filters-6-e-2-bc2': [() => import(/* webpackChunkName: 'content---docs-api-filters-6-e-2-bc2' */ "@site/../docs/api-filters.md"), "@site/../docs/api-filters.md", require.resolveWeak("@site/../docs/api-filters.md")], + 'content---docs-api-modifiers-1-a-5-b1d': [() => import(/* webpackChunkName: 'content---docs-api-modifiers-1-a-5-b1d' */ "@site/../docs/api-modifiers.md"), "@site/../docs/api-modifiers.md", require.resolveWeak("@site/../docs/api-modifiers.md")], + 'content---docs-api-query-4-f-5-071': [() => import(/* webpackChunkName: 'content---docs-api-query-4-f-5-071' */ "@site/../docs/api-query.md"), "@site/../docs/api-query.md", require.resolveWeak("@site/../docs/api-query.md")], + 'content---docs-api-selectors-6-b-1-dcf': [() => import(/* webpackChunkName: 'content---docs-api-selectors-6-b-1-dcf' */ "@site/../docs/api-selectors.md"), "@site/../docs/api-selectors.md", require.resolveWeak("@site/../docs/api-selectors.md")], + 'content---docs-basics-intro-5-a-8-b5f': [() => import(/* webpackChunkName: 'content---docs-basics-intro-5-a-8-b5f' */ "@site/../docs/basics-intro.md"), "@site/../docs/basics-intro.md", require.resolveWeak("@site/../docs/basics-intro.md")], + 'content---docs-basics-refactoring-02-f-78b': [() => import(/* webpackChunkName: 'content---docs-basics-refactoring-02-f-78b' */ "@site/../docs/basics-refactoring.md"), "@site/../docs/basics-refactoring.md", require.resolveWeak("@site/../docs/basics-refactoring.md")], + 'content---docs-basics-setup-507-579': [() => import(/* webpackChunkName: 'content---docs-basics-setup-507-579' */ "@site/../docs/basics-setup.md"), "@site/../docs/basics-setup.md", require.resolveWeak("@site/../docs/basics-setup.md")], + 'content---docs-basics-usage-40-e-753': [() => import(/* webpackChunkName: 'content---docs-basics-usage-40-e-753' */ "@site/../docs/basics-usage.md"), "@site/../docs/basics-usage.md", require.resolveWeak("@site/../docs/basics-usage.md")], + 'content---docs-dev-intro-30-b-f35': [() => import(/* webpackChunkName: 'content---docs-dev-intro-30-b-f35' */ "@site/../docs/dev-intro.md"), "@site/../docs/dev-intro.md", require.resolveWeak("@site/../docs/dev-intro.md")], + 'content---docs-dev-roadmap-726-a02': [() => import(/* webpackChunkName: 'content---docs-dev-roadmap-726-a02' */ "@site/../docs/dev-roadmap.md"), "@site/../docs/dev-roadmap.md", require.resolveWeak("@site/../docs/dev-roadmap.md")], + 'docsMetadata---docs-route-9-c-9-6c1': [() => import(/* webpackChunkName: 'docsMetadata---docs-route-9-c-9-6c1' */ "@docusaurus-plugin-content-docs/docs-route-ff2.json"), "@docusaurus-plugin-content-docs/docs-route-ff2.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-route-ff2.json")], + 'metadata---blog-0-c-5-5e5': [() => import(/* webpackChunkName: 'metadata---blog-0-c-5-5e5' */ "@docusaurus-plugin-content-blog/blog-2018-08-24-launch-4d6.json"), "@docusaurus-plugin-content-blog/blog-2018-08-24-launch-4d6.json", require.resolveWeak("@docusaurus-plugin-content-blog/blog-2018-08-24-launch-4d6.json")], + 'metadata---blog-1-a-9-d63': [() => import(/* webpackChunkName: 'metadata---blog-1-a-9-d63' */ "@docusaurus-plugin-content-blog/blog-c06.json"), "@docusaurus-plugin-content-blog/blog-c06.json", require.resolveWeak("@docusaurus-plugin-content-blog/blog-c06.json")], + 'metadata---docs-api-commands-0-a-3-2d5': [() => import(/* webpackChunkName: 'metadata---docs-api-commands-0-a-3-2d5' */ "@docusaurus-plugin-content-docs/docs-api-commands-f77.json"), "@docusaurus-plugin-content-docs/docs-api-commands-f77.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-api-commands-f77.json")], + 'metadata---docs-api-filtersd-5-f-e7f': [() => import(/* webpackChunkName: 'metadata---docs-api-filtersd-5-f-e7f' */ "@docusaurus-plugin-content-docs/docs-api-filters-1e2.json"), "@docusaurus-plugin-content-docs/docs-api-filters-1e2.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-api-filters-1e2.json")], + 'metadata---docs-api-modifiers-14-b-d78': [() => import(/* webpackChunkName: 'metadata---docs-api-modifiers-14-b-d78' */ "@docusaurus-plugin-content-docs/docs-api-modifiers-6fa.json"), "@docusaurus-plugin-content-docs/docs-api-modifiers-6fa.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-api-modifiers-6fa.json")], + 'metadata---docs-api-query-5-f-8-b7c': [() => import(/* webpackChunkName: 'metadata---docs-api-query-5-f-8-b7c' */ "@docusaurus-plugin-content-docs/docs-api-query-29c.json"), "@docusaurus-plugin-content-docs/docs-api-query-29c.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-api-query-29c.json")], + 'metadata---docs-api-selectors-63-b-06d': [() => import(/* webpackChunkName: 'metadata---docs-api-selectors-63-b-06d' */ "@docusaurus-plugin-content-docs/docs-api-selectors-893.json"), "@docusaurus-plugin-content-docs/docs-api-selectors-893.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-api-selectors-893.json")], + 'metadata---docs-basics-intro-1-a-2-207': [() => import(/* webpackChunkName: 'metadata---docs-basics-intro-1-a-2-207' */ "@docusaurus-plugin-content-docs/docs-basics-intro-09b.json"), "@docusaurus-plugin-content-docs/docs-basics-intro-09b.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-basics-intro-09b.json")], + 'metadata---docs-basics-refactoringbfa-b8c': [() => import(/* webpackChunkName: 'metadata---docs-basics-refactoringbfa-b8c' */ "@docusaurus-plugin-content-docs/docs-basics-refactoring-912.json"), "@docusaurus-plugin-content-docs/docs-basics-refactoring-912.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-basics-refactoring-912.json")], + 'metadata---docs-basics-setup-92-a-8af': [() => import(/* webpackChunkName: 'metadata---docs-basics-setup-92-a-8af' */ "@docusaurus-plugin-content-docs/docs-basics-setup-4a6.json"), "@docusaurus-plugin-content-docs/docs-basics-setup-4a6.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-basics-setup-4a6.json")], + 'metadata---docs-basics-usage-630-84a': [() => import(/* webpackChunkName: 'metadata---docs-basics-usage-630-84a' */ "@docusaurus-plugin-content-docs/docs-basics-usage-6af.json"), "@docusaurus-plugin-content-docs/docs-basics-usage-6af.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-basics-usage-6af.json")], + 'metadata---docs-dev-intro-83-c-27b': [() => import(/* webpackChunkName: 'metadata---docs-dev-intro-83-c-27b' */ "@docusaurus-plugin-content-docs/docs-dev-intro-413.json"), "@docusaurus-plugin-content-docs/docs-dev-intro-413.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-dev-intro-413.json")], + 'metadata---docs-dev-roadmapd-44-2e3': [() => import(/* webpackChunkName: 'metadata---docs-dev-roadmapd-44-2e3' */ "@docusaurus-plugin-content-docs/docs-dev-roadmap-609.json"), "@docusaurus-plugin-content-docs/docs-dev-roadmap-609.json", require.resolveWeak("@docusaurus-plugin-content-docs/docs-dev-roadmap-609.json")],}; diff --git a/website/.docusaurus/routes.js b/website/.docusaurus/routes.js new file mode 100644 index 0000000..da770dd --- /dev/null +++ b/website/.docusaurus/routes.js @@ -0,0 +1,114 @@ + +import React from 'react'; +import ComponentCreator from '@docusaurus/ComponentCreator'; + +export default [ + +{ + path: '/', + component: ComponentCreator('/'), + exact: true, + +}, +{ + path: '/blog', + component: ComponentCreator('/blog'), + exact: true, + +}, +{ + path: '/blog/2018/08/24/launch', + component: ComponentCreator('/blog/2018/08/24/launch'), + exact: true, + +}, +{ + path: '/help', + component: ComponentCreator('/help'), + exact: true, + +}, +{ + path: '/users', + component: ComponentCreator('/users'), + exact: true, + +}, +{ + path: '/docs/:route', + component: ComponentCreator('/docs/:route'), + + routes: [ +{ + path: '/docs/api-commands', + component: ComponentCreator('/docs/api-commands'), + exact: true, + +}, +{ + path: '/docs/api-filters', + component: ComponentCreator('/docs/api-filters'), + exact: true, + +}, +{ + path: '/docs/api-modifiers', + component: ComponentCreator('/docs/api-modifiers'), + exact: true, + +}, +{ + path: '/docs/api-query', + component: ComponentCreator('/docs/api-query'), + exact: true, + +}, +{ + path: '/docs/api-selectors', + component: ComponentCreator('/docs/api-selectors'), + exact: true, + +}, +{ + path: '/docs/basics-intro', + component: ComponentCreator('/docs/basics-intro'), + exact: true, + +}, +{ + path: '/docs/basics-refactoring', + component: ComponentCreator('/docs/basics-refactoring'), + exact: true, + +}, +{ + path: '/docs/basics-setup', + component: ComponentCreator('/docs/basics-setup'), + exact: true, + +}, +{ + path: '/docs/basics-usage', + component: ComponentCreator('/docs/basics-usage'), + exact: true, + +}, +{ + path: '/docs/dev-intro', + component: ComponentCreator('/docs/dev-intro'), + exact: true, + +}, +{ + path: '/docs/dev-roadmap', + component: ComponentCreator('/docs/dev-roadmap'), + exact: true, + +}], +}, + + { + path: '*', + component: ComponentCreator('*') + } +]; diff --git a/website/.docusaurus/routesChunkNames.json b/website/.docusaurus/routesChunkNames.json new file mode 100644 index 0000000..9b68290 --- /dev/null +++ b/website/.docusaurus/routesChunkNames.json @@ -0,0 +1,85 @@ +{ + "/": { + "component": "component---site-src-pages-index-jsc-4-f-f99" + }, + "/blog": { + "component": "component---theme-blog-list-pagea-6-a-7ba", + "items": [ + { + "content": "content---blog-9-b-8-a4b", + "metadata": "metadata---blog-0-c-5-5e5" + } + ], + "metadata": "metadata---blog-1-a-9-d63" + }, + "/blog/2018/08/24/launch": { + "component": "component---theme-blog-post-pageccc-cab", + "content": "content---blog-2018-08-24-launch-540-ec5", + "metadata": "metadata---blog-0-c-5-5e5" + }, + "/help": { + "component": "component---site-src-pages-help-js-7-e-3-222" + }, + "/users": { + "component": "component---site-src-pages-users-js-1-db-7ac" + }, + "/docs/:route": { + "component": "component---theme-doc-page-1-be-9be", + "docsMetadata": "docsMetadata---docs-route-9-c-9-6c1" + }, + "/docs/api-commands": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-api-commandscaa-cb8", + "metadata": "metadata---docs-api-commands-0-a-3-2d5" + }, + "/docs/api-filters": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-api-filters-6-e-2-bc2", + "metadata": "metadata---docs-api-filtersd-5-f-e7f" + }, + "/docs/api-modifiers": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-api-modifiers-1-a-5-b1d", + "metadata": "metadata---docs-api-modifiers-14-b-d78" + }, + "/docs/api-query": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-api-query-4-f-5-071", + "metadata": "metadata---docs-api-query-5-f-8-b7c" + }, + "/docs/api-selectors": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-api-selectors-6-b-1-dcf", + "metadata": "metadata---docs-api-selectors-63-b-06d" + }, + "/docs/basics-intro": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-basics-intro-5-a-8-b5f", + "metadata": "metadata---docs-basics-intro-1-a-2-207" + }, + "/docs/basics-refactoring": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-basics-refactoring-02-f-78b", + "metadata": "metadata---docs-basics-refactoringbfa-b8c" + }, + "/docs/basics-setup": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-basics-setup-507-579", + "metadata": "metadata---docs-basics-setup-92-a-8af" + }, + "/docs/basics-usage": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-basics-usage-40-e-753", + "metadata": "metadata---docs-basics-usage-630-84a" + }, + "/docs/dev-intro": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-dev-intro-30-b-f35", + "metadata": "metadata---docs-dev-intro-83-c-27b" + }, + "/docs/dev-roadmap": { + "component": "component---theme-doc-item-178-a40", + "content": "content---docs-dev-roadmap-726-a02", + "metadata": "metadata---docs-dev-roadmapd-44-2e3" + } +} \ No newline at end of file diff --git a/website/core/Footer.js b/website/core/Footer.js deleted file mode 100644 index c78a62b..0000000 --- a/website/core/Footer.js +++ /dev/null @@ -1,69 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const React = require('react'); - -class Footer extends React.Component { - docUrl(doc, language) { - const baseUrl = this.props.config.baseUrl; - return baseUrl + 'docs/' + (language ? language + '/' : '') + doc; - } - - imgUrl(img) { - const baseUrl = this.props.config.baseUrl; - return baseUrl + 'img/' + img; - } - - pageUrl(doc, language) { - const baseUrl = this.props.config.baseUrl; - return baseUrl + (language ? language + '/' : '') + doc; - } - - render() { - const currentYear = new Date().getFullYear(); - let language = this.props.language || ''; - return ( - - ); - } -} - -module.exports = Footer; diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js new file mode 100644 index 0000000..cdcf958 --- /dev/null +++ b/website/docusaurus.config.js @@ -0,0 +1,82 @@ +/** + * Copyright (c) 2017-present, Facebook, Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +// See https://docusaurus.io/docs/site-config.html for all the possible +// site configuration options. + +const repoUrl = 'https://github.com/facebookincubator/bowler'; +const twitterUsername= 'fbOpenSource'; + +const siteConfig = { + title: 'Bowler' /* title for your website */, + tagline: 'Safe code refactoring for modern Python', + url: 'https://pybowler.io' /* your website url */, + baseUrl: '/' /* base url for your project */, + // For github.io type URLs, you would set the url and baseUrl like: + // url: 'https://facebook.github.io', + // baseUrl: '/test-site/', + + // Used for publishing and more + projectName: 'bowler', + organizationName: 'facebookincubator', + // For top-level user or org sites, the organization is still the same. + // e.g., for the https://JoelMarcey.github.io site, it would be set like... + // organizationName: 'JoelMarcey' + + /* path to images for header/footer */ + favicon: 'img/favicon/Oddy.png', + + // Add custom scripts here that would be placed in ', - } - ]} /> - - - - ); - } -} - -module.exports = Index; diff --git a/website/pages/en/users.js b/website/pages/en/users.js deleted file mode 100644 index c113bf5..0000000 --- a/website/pages/en/users.js +++ /dev/null @@ -1,49 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const React = require('react'); - -const CompLibrary = require('../../core/CompLibrary.js'); -const Container = CompLibrary.Container; - -const siteConfig = require(process.cwd() + '/siteConfig.js'); - -class Users extends React.Component { - render() { - if ((siteConfig.users || []).length === 0) { - return null; - } - const editUrl = siteConfig.repoUrl + '/edit/master/website/siteConfig.js'; - const showcase = siteConfig.users.map((user, i) => { - return ( - - {user.caption} - - ); - }); - - return ( -
- -
-
-

Who's Using This?

-

This project is used by many folks

-
-
{showcase}
-

Are you using this project?

- - Add your company - -
-
-
- ); - } -} - -module.exports = Users; diff --git a/website/sidebars.js b/website/sidebars.js new file mode 100644 index 0000000..be7c792 --- /dev/null +++ b/website/sidebars.js @@ -0,0 +1,27 @@ +module.exports = { + docs: [ + { + type: 'category', + label: 'Basics', + items: ["basics-intro", + "basics-refactoring", + "basics-setup", + "basics-usage"], + }, + { + type: 'category', + label: 'API Reference', + items: ["api-query", + "api-selectors", + "api-filters", + "api-modifiers", + "api-commands"], + }, + { + type: 'category', + label: 'Contributing', + items: ["dev-intro", + "dev-roadmap"], + }, + ], +}; \ No newline at end of file diff --git a/website/sidebars.json b/website/sidebars.json deleted file mode 100644 index bf3e66e..0000000 --- a/website/sidebars.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "docs": { - "Basics": [ - "basics-intro", - "basics-refactoring", - "basics-setup", - "basics-usage" - ], - "API Reference": [ - "api-query", - "api-selectors", - "api-filters", - "api-modifiers", - "api-commands" - ], - "Contributing": [ - "dev-intro", - "dev-roadmap" - ] - } -} diff --git a/website/siteConfig.js b/website/siteConfig.js deleted file mode 100644 index 6b7dee1..0000000 --- a/website/siteConfig.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Copyright (c) 2017-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -// See https://docusaurus.io/docs/site-config.html for all the possible -// site configuration options. - -/* List of projects/orgs using your project for the users page */ -const users = [ - { - caption: 'Facebook Engineering', - // You will need to prepend the image path with your baseUrl - // if it is not '/', like: '/test-site/img/docusaurus.svg'. - image: '/img/bowler.png', - infoLink: 'https://code.facebook.com', - pinned: true, - }, -]; - -const repoUrl = 'https://github.com/facebookincubator/bowler'; - -const siteConfig = { - title: 'Bowler' /* title for your website */, - tagline: 'Safe code refactoring for modern Python', - url: 'https://pybowler.io' /* your website url */, - baseUrl: '/' /* base url for your project */, - // For github.io type URLs, you would set the url and baseUrl like: - // url: 'https://facebook.github.io', - // baseUrl: '/test-site/', - - // Used for publishing and more - projectName: 'bowler', - organizationName: 'facebookincubator', - // For top-level user or org sites, the organization is still the same. - // e.g., for the https://JoelMarcey.github.io site, it would be set like... - // organizationName: 'JoelMarcey' - - // For no header links in the top nav bar -> headerLinks: [], - headerLinks: [ - {doc: 'basics-intro', label: 'Getting Started'}, - {doc: 'api-query', label: 'API Reference'}, - {doc: 'dev-roadmap', label: 'Roadmap'}, - {href: repoUrl, label: 'Github'}, - // {blog: true, label: 'Blog'}, - ], - - // If you have users set above, you add it here: - users, - - /* path to images for header/footer */ - headerIcon: 'img/logo/Bowler_Light.png', - footerIcon: 'img/logo/Bowler_Light.svg', - favicon: 'img/favicon/Oddy.png', - - /* colors for website */ - colors: { - primaryColor: '#383938', - // primaryColor: '#3964a8', - primaryColor: '#20232a', - secondaryColor: '#3956a6', - }, - - /* custom fonts for website */ - fonts: { - myFont: [ - "-apple-system", - "system-ui", - "sans" - ], - myOtherFont: [ - "-apple-system", - "system-ui" - ] - }, - - // This copyright info is used in /core/Footer.js and blog rss/atom feeds. - copyright: - 'Copyright © ' + - new Date().getFullYear() + - ' Facebook Inc.', - - highlight: { - // Highlight.js theme to use for syntax highlighting in code blocks - theme: 'atom-one-dark', - }, - usePrism: ['bash', 'python'], - - // Add custom scripts here that would be placed in