Skip to content

Commit

Permalink
Upgrade docs theme to 0.3 (apollographql#4742)
Browse files Browse the repository at this point in the history
* Upgrade theme for better versioning strategy

* Prettier change

* Move _redirects to public dir
  • Loading branch information
trevorblades authored Apr 22, 2019
1 parent 601dcd0 commit 5c34e09
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
12 changes: 11 additions & 1 deletion docs/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ module.exports = {
contentDir: 'docs/source',
basePath: '/docs/react',
githubRepo: 'apollographql/apollo-client',
versions: ['2.4', '2.5'],
versions: [
{
value: '2.4',
ref: 'origin/version-2.4',
},
{
value: '2.5',
ref: 'HEAD',
default: true,
},
],
typescriptApiBox: {
filepathPrefix: 'packages/apollo-client/src/',
},
Expand Down
28 changes: 9 additions & 19 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
},
"dependencies": {
"gatsby": "2.3.23",
"gatsby-theme-apollo-docs": "0.2.50"
"gatsby-theme-apollo-docs": "^0.3.0-alpha.0"
},
"devDependencies": {
"typedoc": "0.14.2",
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[build]
base = "docs/"
publish = "docs/public/"
command = "npm run types && gatsby build --prefix-paths && mkdir -p docs/react && mv public/* docs/react && mv docs public/"
command = "npm run types && gatsby build --prefix-paths && mkdir -p docs/react && mv public/* docs/react && mv docs public/ && mv public/docs/react/_redirects public"
[build.environment]
NPM_VERSION = "6"

0 comments on commit 5c34e09

Please sign in to comment.