diff --git a/.circleci/config.yml b/.circleci/config.yml index 0855f6bf..02d9553d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -79,7 +79,7 @@ jobs: git config --global user.email "${GH_EMAIL}@users.noreply.github.com" git config --global user.name "${GH_NAME}" echo "machine github.com login $GH_NAME password $GH_TOKEN" > ~/.netrc - cd docs && yarn install && GIT_USER=${GH_NAME} yarn publish-gh-pages + cd website && yarn install && GIT_USER=${GH_NAME} yarn deploy workflows: version: 2 diff --git a/.gitignore b/.gitignore index 9ea00e08..781b75e2 100644 --- a/.gitignore +++ b/.gitignore @@ -61,3 +61,24 @@ coverage # node-waf configuration .lock-wscript + +# Dependencies +/node_modules + +# Production +/build + +# Generated files +.docusaurus +.cache-loader + +# Misc +.DS_Store +.env.local +.env.development.local +.env.test.local +.env.production.local + +npm-debug.log* +yarn-debug.log* +yarn-error.log* \ No newline at end of file diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index ee0ccc9d..00000000 --- a/docs/README.md +++ /dev/null @@ -1,33 +0,0 @@ -# Website - -This website is built using [Docusaurus 2](https://v2.docusaurus.io/), a modern static website generator. - -### Installation - -``` -$ yarn -``` - -### Local Development - -``` -$ yarn start -``` - -This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server. - -### Build - -``` -$ yarn build -``` - -This command generates static content into the `build` directory and can be served using any static contents hosting service. - -### Deployment - -``` -$ GIT_USER= USE_SSH=true yarn deploy -``` - -If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch. diff --git a/docs/docs/assets/android-250x.png b/docs/assets/android-250x.png similarity index 100% rename from docs/docs/assets/android-250x.png rename to docs/assets/android-250x.png diff --git a/docs/docs/assets/android-component-250x.gif b/docs/assets/android-component-250x.gif similarity index 100% rename from docs/docs/assets/android-component-250x.gif rename to docs/assets/android-component-250x.gif diff --git a/docs/docs/assets/android-component.gif b/docs/assets/android-component.gif similarity index 100% rename from docs/docs/assets/android-component.gif rename to docs/assets/android-component.gif diff --git a/docs/docs/assets/android.png b/docs/assets/android.png similarity index 100% rename from docs/docs/assets/android.png rename to docs/assets/android.png diff --git a/docs/docs/assets/ios-250x.png b/docs/assets/ios-250x.png similarity index 100% rename from docs/docs/assets/ios-250x.png rename to docs/assets/ios-250x.png diff --git a/docs/docs/assets/ios-component-250x.gif b/docs/assets/ios-component-250x.gif similarity index 100% rename from docs/docs/assets/ios-component-250x.gif rename to docs/assets/ios-component-250x.gif diff --git a/docs/docs/assets/ios-component.gif b/docs/assets/ios-component.gif similarity index 100% rename from docs/docs/assets/ios-component.gif rename to docs/assets/ios-component.gif diff --git a/docs/docs/assets/ios.png b/docs/assets/ios.png similarity index 100% rename from docs/docs/assets/ios.png rename to docs/assets/ios.png diff --git a/docs/docs/assets/windows-250x.png b/docs/assets/windows-250x.png similarity index 100% rename from docs/docs/assets/windows-250x.png rename to docs/assets/windows-250x.png diff --git a/docs/docs/assets/windows.png b/docs/assets/windows.png similarity index 100% rename from docs/docs/assets/windows.png rename to docs/assets/windows.png diff --git a/docs/blog/2019-05-28-hola.md b/docs/blog/2019-05-28-hola.md deleted file mode 100644 index 5552da12..00000000 --- a/docs/blog/2019-05-28-hola.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -id: hola -title: Hola -author: Gao Wei -author_title: Docusaurus Core Team -author_url: https://github.com/wgao19 -author_image_url: https://avatars1.githubusercontent.com/u/2055384?v=4 -tags: [hola, docusaurus] ---- - -Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque elementum dignissim ultricies. Fusce rhoncus ipsum tempor eros aliquam consequat. Lorem ipsum dolor sit amet diff --git a/docs/blog/2019-05-29-hello-world.md b/docs/blog/2019-05-29-hello-world.md deleted file mode 100644 index 3b331939..00000000 --- a/docs/blog/2019-05-29-hello-world.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -id: hello-world -title: Hello -author: Endilie Yacop Sucipto -author_title: Maintainer of Docusaurus -author_url: https://github.com/endiliey -author_image_url: https://avatars1.githubusercontent.com/u/17883920?s=460&v=4 -tags: [hello, docusaurus] ---- - -Welcome to this blog. This blog is created with [**Docusaurus 2 alpha**](https://v2.docusaurus.io/). - - - -This is a test post. - -A whole bunch of other information. diff --git a/docs/blog/2019-05-30-welcome.md b/docs/blog/2019-05-30-welcome.md deleted file mode 100644 index 3b5affed..00000000 --- a/docs/blog/2019-05-30-welcome.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: welcome -title: Welcome -author: Yangshun Tay -author_title: Front End Engineer @ Facebook -author_url: https://github.com/yangshun -author_image_url: https://avatars0.githubusercontent.com/u/1315101?s=400&v=4 -tags: [facebook, hello, docusaurus] ---- - -Blog features are powered by the blog plugin. Simply add files to the `blog` directory. It supports tags as well! - -Delete the whole directory if you don't want the blog features. As simple as that! diff --git a/docs/docs/contributing.md b/docs/contributing.md similarity index 100% rename from docs/docs/contributing.md rename to docs/contributing.md diff --git a/docs/docs/installing.md b/docs/installing.md similarity index 100% rename from docs/docs/installing.md rename to docs/installing.md diff --git a/docs/docs/language-support.md b/docs/language-support.md similarity index 100% rename from docs/docs/language-support.md rename to docs/language-support.md diff --git a/docs/docs/share-open.md b/docs/share-open.md similarity index 100% rename from docs/docs/share-open.md rename to docs/share-open.md diff --git a/docs/docs/share-package-installed.md b/docs/share-package-installed.md similarity index 100% rename from docs/docs/share-package-installed.md rename to docs/share-package-installed.md diff --git a/docs/docs/share-remote-file.md b/docs/share-remote-file.md similarity index 100% rename from docs/docs/share-remote-file.md rename to docs/share-remote-file.md diff --git a/docs/docs/share-single.md b/docs/share-single.md similarity index 100% rename from docs/docs/share-single.md rename to docs/share-single.md diff --git a/docs/docs/testing.md b/docs/testing.md similarity index 100% rename from docs/docs/testing.md rename to docs/testing.md diff --git a/docs/docs/troubleshooting-ios.md b/docs/troubleshooting-ios.md similarity index 100% rename from docs/docs/troubleshooting-ios.md rename to docs/troubleshooting-ios.md diff --git a/docs/docs/ui-components.md b/docs/ui-components.md similarity index 100% rename from docs/docs/ui-components.md rename to docs/ui-components.md diff --git a/docs/.gitignore b/website/.gitignore similarity index 100% rename from docs/.gitignore rename to website/.gitignore diff --git a/docs/docusaurus.config.js b/website/docusaurus.config.js similarity index 100% rename from docs/docusaurus.config.js rename to website/docusaurus.config.js diff --git a/docs/package.json b/website/package.json similarity index 93% rename from docs/package.json rename to website/package.json index 138874b6..6b57ff7b 100644 --- a/docs/package.json +++ b/website/package.json @@ -5,7 +5,6 @@ "scripts": { "start": "docusaurus start", "build": "docusaurus build", - "publish-gh-pages": "docusaurus deploy", "swizzle": "docusaurus swizzle", "deploy": "docusaurus deploy" }, diff --git a/docs/sidebars.js b/website/sidebars.js similarity index 100% rename from docs/sidebars.js rename to website/sidebars.js diff --git a/docs/src/css/custom.css b/website/src/css/custom.css similarity index 100% rename from docs/src/css/custom.css rename to website/src/css/custom.css diff --git a/docs/src/pages/index.js b/website/src/pages/index.js similarity index 100% rename from docs/src/pages/index.js rename to website/src/pages/index.js diff --git a/docs/src/pages/styles.module.css b/website/src/pages/styles.module.css similarity index 100% rename from docs/src/pages/styles.module.css rename to website/src/pages/styles.module.css diff --git a/docs/static/css/code-block-buttons.css b/website/static/css/code-block-buttons.css similarity index 100% rename from docs/static/css/code-block-buttons.css rename to website/static/css/code-block-buttons.css diff --git a/docs/static/img/app_data.svg b/website/static/img/app_data.svg similarity index 100% rename from docs/static/img/app_data.svg rename to website/static/img/app_data.svg diff --git a/docs/static/img/attached_file.svg b/website/static/img/attached_file.svg similarity index 100% rename from docs/static/img/attached_file.svg rename to website/static/img/attached_file.svg diff --git a/docs/static/img/community.png b/website/static/img/community.png similarity index 100% rename from docs/static/img/community.png rename to website/static/img/community.png diff --git a/docs/static/img/react.svg b/website/static/img/react.svg similarity index 100% rename from docs/static/img/react.svg rename to website/static/img/react.svg diff --git a/docs/static/js/code-block-buttons.js b/website/static/js/code-block-buttons.js similarity index 100% rename from docs/static/js/code-block-buttons.js rename to website/static/js/code-block-buttons.js diff --git a/docs/yarn.lock b/website/yarn.lock similarity index 100% rename from docs/yarn.lock rename to website/yarn.lock