diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 2ba6e049ffd..00000000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "docs/themes/meteor"] - path = docs/themes/meteor - url = https://github.com/meteor/hexo-theme-meteor.git diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 00000000000..09ea3a62866 --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1 @@ +_multiconfig.yml diff --git a/docs/_config.yml b/docs/_config.yml index 91b1de40ef4..02658204e3a 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,18 +1,20 @@ -# Hexo Configuration -## Docs: http://hexo.io/docs/configuration.html -## Source: https://github.com/hexojs/hexo/ - -# Site +github_repo: apollographql/apollo-client title: Apollo Client propertytitle: Using GraphQL with Apollo Client subtitle: React Guide description: A guide to using the Apollo GraphQL Client with React. -author: -language: -timezone: versions: - '1' +content_root: docs/source +public_dir: public/docs/react + +url: https://www.apollographql.com/docs/react +root: /docs/react/ + +typescript_api_box: + data_file: docs.json + # This setting also defines the page order used to generate the Previous/Next links at the bottom of each page sidebar_categories: # Basics @@ -51,81 +53,4 @@ sidebar_categories: - recipes/meteor - recipes/recompose Reference: - - reference/index - - -github_repo: apollographql/apollo-client -content_root: docs/source - -social_links: - github: 'https://github.com/apollographql' - twitter: '@apollographql' - slackInvitePage: 'https://www.apollodata.com/#slack' - -typescript_api_box: - data_file: docs.json - -# API keys -apis: - segment: wgrIo8Bul0Ujl8USETG3DB6hONdy4kTg - gtm: GTM-PNFDVBB - -# URL -## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' -url: https://www.apollographql.com/docs/react -root: /docs/react/ -permalink: :year/:month/:day/:title/ -permalink_defaults: - -# Directory -source_dir: source -public_dir: public/docs/react -tag_dir: tags -archive_dir: archives -category_dir: categories -code_dir: downloads/code -i18n_dir: :lang -skip_render: - -# Writing -new_post_name: :title.md # File name of new posts -default_layout: post -titlecase: false # Transform title into titlecase -external_link: true # Open external links in new tab -filename_case: 0 -render_drafts: false -post_asset_folder: false -relative_link: false -future: true -highlight: - enable: true - line_number: true - auto_detect: true - tab_replace: - -# Category & Tag -default_category: uncategorized -category_map: -tag_map: - -# Date / Time format -## Hexo uses Moment.js to parse and display date -## You can customize the date format as defined in -## http://momentjs.com/docs/#/displaying/format/ -date_format: YYYY-MM-DD -time_format: HH:mm:ss - -# Pagination -## Set per_page to 0 to disable pagination -per_page: 10 -pagination_dir: page - -# Extensions -## Plugins: http://hexo.io/plugins/ -## Themes: http://hexo.io/themes/ -theme: meteor - -# Deployment -## Docs: http://hexo.io/docs/deployment.html -deploy: - type: + - reference/index \ No newline at end of file diff --git a/docs/package.json b/docs/package.json index 1eb4d025903..13fa2715206 100644 --- a/docs/package.json +++ b/docs/package.json @@ -3,26 +3,35 @@ "version": "0.0.0", "private": true, "hexo": { - "version": "3.4.3" + "version": "3.6.0" }, - "dependencies": { - "hexo": "3.4.4", - "hexo-generator-archive": "^0.1.2", - "hexo-generator-category": "^0.1.2", - "hexo-generator-index": "^0.2.0", - "hexo-generator-tag": "^0.2.0", - "hexo-renderer-ejs": "^0.3.0", - "hexo-renderer-less": "^0.2.0", - "hexo-renderer-marked": "^0.3.0", - "hexo-server": "^0.3.0", + "devDependencies": { + "apollo-hexo-config": "^1.0.2", + "chexo": "^1.0.4", + "hexo": "3.6.0", + "hexo-generator-archive": "0.1.5", + "hexo-generator-category": "0.1.3", + "hexo-generator-index": "0.2.1", + "hexo-generator-tag": "0.2.0", + "hexo-renderer-ejs": "0.3.1", + "hexo-renderer-less": "0.2.0", + "hexo-renderer-marked": "0.3.2", + "hexo-server": "0.3.1", "hexo-typescript-api-box": "^0.9.1", + "meteor-theme-hexo": "^1.0.1", "typedoc": "^0.9.0", "typescript": "^2.5.3" }, "scripts": { - "types": - "cd ../packages/apollo-client && typedoc --json ../../docs/docs.json --ignoreCompilerErrors ./src/index.ts", - "build": "npm run types && hexo generate", - "start": "hexo serve" + "start": "npm run build && chexo apollo-hexo-config -- server", + "types": "cd ../packages/apollo-client && typedoc --json ../../docs/docs.json --ignoreCompilerErrors ./src/index.ts", + "build": "npm run types && chexo apollo-hexo-config -- generate", + "clean": "hexo clean", + "test": "npm run clean; npm run build" + }, + "renovate": { + "extends": [ + "apollo-docs" + ] } } diff --git a/docs/themes/meteor b/docs/themes/meteor deleted file mode 160000 index 99b04f2471f..00000000000 --- a/docs/themes/meteor +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 99b04f2471f1cd6b11621c972d8f21cc740e66f7