Commit Graph

47 Commits

Author SHA1 Message Date
Peggy Rayzis
272bb41b2a Add outline 2018-11-07 09:26:27 -08:00
Renovate Bot
40043dcc09 Update dependency hexo-server to v0.3.3 2018-08-26 07:59:21 +00:00
Jake
59f8b619dd wip on faq–added some answers 2018-08-15 16:17:11 -04:00
Jesse Rosenberger
02f6bb130a Update package-lock.json. 2018-07-13 13:53:06 -07:00
Jesse Rosenberger
310f81d0aa docs: Add browser auto-reloading on source content changes. (#186)
By virtue of a relatively simple `hexo-browsersync` package[0], which
implements BrowserSync[1] in Hexo, this change brings support for automatically
reloading the browser when the source content has changed.

No more pressing "Reload" in order to see the changes to the Markdown source
when working on documentation! 🎉

[0]: https://npm.im/hexo-browsersync
[1]: https://www.browsersync.io
2018-07-11 12:08:54 -07:00
renovate[bot]
37c8de2986 Update dependency apollo-hexo-config to v1.0.8 (#185)
This Pull Request updates dependency [apollo-hexo-config](https://github.com/apollographql/apollo-hexo-config) from `v1.0.7` to `v1.0.8`



<details>
<summary>Release Notes</summary>

### [`v1.0.8`](https://github.com/apollographql/apollo-hexo-config/compare/v1.0.7...v1.0.8)
[Compare Source](https://github.com/apollographql/apollo-hexo-config/compare/v1.0.7...v1.0.8)


---

</details>




---

This PR has been generated by [Renovate Bot](https://renovatebot.com).
2018-07-10 17:29:00 -07:00
Renovate Bot
b7b086eb50 chore(deps): update dependency meteor-theme-hexo to v1.0.16 2018-06-27 22:39:40 +00:00
Renovate Bot
818f76415c chore(deps): update dependency meteor-theme-hexo to v1.0.15 2018-06-20 22:35:14 +00:00
Renovate Bot
9623438fe3 chore(deps): update dependency meteor-theme-hexo to v1.0.14 2018-06-20 16:36:50 +00:00
Jake Dawkins
528ec52a94 React Apollo Testing (#164)
<!--**Pull Request Labels**

While not necessary, you can help organize our pull requests by labeling this issue when you open it.  To add a label automatically, simply [x] mark the appropriate box below:

- [ ] feature
- [ ] blocking
- [ ] docs

To add a label not listed above, simply place `/label another-label-name` on a line by itself.
-->

# Testing React Apollo 

This is a guide specifically for testing React Apollo. Based off of @excitement-engineer's (great) original work [in this PR](https://github.com/apollographql/apollo-client/pull/3309).

**A few notes:**
- I'm keeping this separate from server testing, since combined I think they'll be too long. **I'm open to discussion on this, though**.
- I added the guide here rather than React Apollo's docs, since I feel like we have a good set of `guides` here, and would hate for this to be missing. I also feel like the view logic may transfer to other UI integrations, but I don't have a lot of insight into that.
- I went with using `wait(0)` instead of refactoring and counting renders like some other exmples do, for simplicity. I wanted to lower the barrier of entry for testing as much as possible.
- I used `react-test-renderer` instead of Enzyme or anything else, just to keep the toolset as simple as possible.
2018-06-14 11:12:41 -04:00
Renovate Bot
341422af47 Update dependency meteor-theme-hexo to v1.0.13 2018-05-31 21:25:01 +00:00
Jesse Rosenberger
b71dda7d01 Merge branch 'master' into 201705-docs 2018-05-31 21:39:49 +03:00
Renovate Bot
6d376a7f7d chore(deps): update dependency meteor-theme-hexo to v1.0.11 2018-05-31 18:19:05 +00:00
unicodeveloper
c404b65ac6 Make the landing page awesome 2018-05-31 14:39:10 +01:00
Sashko Stubailo
d2b976a73c Update package lock 2018-05-30 15:45:09 -07:00
Peggy Rayzis
a3c3f09fb7 Add descriptions to all articles 2018-05-29 23:54:12 -04:00
Jesse Rosenberger
6d40655303 Introduce guides, practices and fundamentals. 2018-05-29 20:57:13 +03:00
renovate[bot]
8dc4d28782 chore(deps): update dependency meteor-theme-hexo to v1.0.10 (#154)
This Pull Request updates dependency [meteor-theme-hexo](https://github.com/meteor/meteor-theme-hexo) from `v1.0.9` to `v1.0.10`



<details>
<summary>Release Notes</summary>

### [`v1.0.10`](https://github.com/meteor/meteor-theme-hexo/blob/master/CHANGELOG.md#v1010)
[Compare Source](https://github.com/meteor/meteor-theme-hexo/compare/v1.0.9...2b6e168dbc17614e77dd6d8c55d48afa5a1f125a)
* Add cookie consent banner to help accommodate GDPR regulations.

---

</details>




---

This PR has been generated by [Renovate Bot](https://renovatebot.com).
2018-05-23 15:02:00 +03:00
renovate[bot]
97d79c2c59 chore(deps): update dependency hexo-server to v0.3.2 (#153) 2018-05-22 18:00:14 +03:00
renovate[bot]
3ee8415db2 chore(deps): update dependency meteor-theme-hexo to v1.0.9 (#152)
This Pull Request updates dependency [meteor-theme-hexo](https://github.com/meteor/meteor-theme-hexo) from `v1.0.6` to `v1.0.9`



<details>
<summary>Release Notes</summary>

### [`v1.0.9`](https://github.com/meteor/meteor-theme-hexo/blob/master/CHANGELOG.md#v109)
[Compare Source](https://github.com/meteor/meteor-theme-hexo/compare/v1.0.8...v1.0.9)
* Fix the dropdown so it can detect single digit versions from the URL.

---

### [`v1.0.8`](https://github.com/meteor/meteor-theme-hexo/blob/master/CHANGELOG.md#v108)
[Compare Source](https://github.com/meteor/meteor-theme-hexo/compare/v1.0.7...v1.0.8)
* Update the letter-spacing on the sidebar title, in order to fit additional
  content onto a single line (like a version dropdown).

---

### [`v1.0.7`](https://github.com/meteor/meteor-theme-hexo/blob/master/CHANGELOG.md#v107)
[Compare Source](https://github.com/meteor/meteor-theme-hexo/compare/v1.0.6...v1.0.7)
* Fix the color of charcoal colored dropdown boxes on the charcoal colored
  background.
* Fix the version selector to support path-based docs deployments.

---

</details>




---

This PR has been generated by [Renovate Bot](https://renovatebot.com).
2018-05-22 17:59:02 +03:00
Renovate Bot
30068930f0 chore(deps): update hexo-related packages 2018-04-13 13:11:13 +00:00
renovate[bot]
863c29ed35 chore(deps): update dependency meteor-theme-hexo to v1.0.5 (#148) 2018-04-11 12:23:18 +03:00
Renovate Bot
72c14854fb chore(deps): update dependency hexo to v3.7.1 2018-04-10 07:09:33 +00:00
renovate[bot]
6041d8c4ac chore(deps): pin dependency hexo-prism-plus to v1.0.0 (#146) 2018-04-06 22:39:55 +03:00
Jesse Rosenberger
80bb5b97e7 docs: Update apollo-hexo-config to 1.0.7.
To enable Prism syntax highlighting, along with the new `meteor-theme-hexo`.

Ref: https://github.com/apollographql/apollo-hexo-config/commit/547107b0
Ref: https://github.com/meteor/meteor-theme-hexo/pull/61
2018-04-06 21:27:48 +03:00
Jesse Rosenberger
202064d19c docs: Update meteor-theme-hexo to 1.0.4.
To enable Prism syntax highlighting.

[0] https://github.com/meteor/meteor-theme-hexo/pull/61
2018-04-06 21:21:55 +03:00
Jesse Rosenberger
163318d78f docs: Add hexo-prism-plus to enable Prism syntax highlighting. (#145)
The default syntax highlighting provided by Hexo uses highlight.js.  While
there are a number of great syntax highlights provided by highlight.js, some of
the more important ones to the Apollo project: `graphql`, `typescript`, and
`jsx` are notably missing.

This uses the `hexo-prism-plus` plugin for Hexo, along with some upstream
configuration to `apollo-hexo-config`[0] and `meteor-theme-hexo` (previously
named `hexo-theme-meteor`)[1].  See refs for more information!

[0] https://github.com/apollographql/apollo-hexo-config/commit/547107b0
[1] https://github.com/meteor/meteor-theme-hexo/pull/61
2018-04-06 21:08:41 +03:00
Renovate Bot
1e72f9f80a chore(deps): update dependency apollo-hexo-config to v1.0.6 2018-04-06 13:08:20 +00:00
Renovate Bot
c3a68711e4 chore(deps): update dependency hexo to v3.7.0 2018-03-30 12:35:03 +00:00
Jesse Rosenberger
13682d380a docs: Remove unnecessary handlebars dependency.
This the reason for this unneeded dependency traces back to the `api-box` on
https://github.com/meteor/docs, though its dependency hasn't been necessary on
any other docs deployment, including this one, since then.
2018-03-23 19:04:33 +02:00
Jesse Rosenberger
7cc3dbe60d docs: Remove develop-theme script, now managed elsewhere.
Rather than developing the theme on individual docs deployments, that work
should now be done on the theme repository[0] and the example doc
deployment[1] since those repositories contain the infrastructure for testing
and deploying changes across all docs properties.  More information on
developing the theme can be found on those repository's `README.md`s.

[0] https://github.com/meteor/hexo-theme-meteor
[1] https://github.com/meteor/theme-example
2018-03-23 18:39:12 +02:00
Jesse Rosenberger
9ffa321323 docs: Remove unnecessary showdown dependency.
While I'm aware of the need for the `showdown` package for rendering some
content on the Meteor Docs, I'm not aware of any Apollo repository that uses
it.  I've searched through the source, and cannot find any usage.

If there is a repository that uses it directly (in its `scripts/` directory),
it should be switched to using a plugin, which can explicitly declare
`showdown` as a dependency, rather than depending on it at the root of the
repository. (This is how `hexo-typescript-api-box` does it on the
`apollo-client` docs, which has correctly removed the direct dependency.)

Luckily, these repositories now have tests so if any of these fail, we should
know pretty easily and be able to add the dependency back to just those that
need it.
2018-03-23 18:18:10 +02:00
Jesse Rosenberger
702819c063 docs: Remove unnecessary hexo-generator-* plugins.
Generators are used for generating additional content in Hexo.  While these
are great for making a blog (for example, `hexo-generator-index` to put all
your blog posts on an index page, `hexo-generator-tag` to keep a page updated
with all your trending blog tags, and `hexo-generator-archive` if you want to
store your aging content somewhere where nobody will find it), they don't seem
to be at all necessary for our purposes, which are documentation.

Unfortunately, they are in the default skeleton of a new Hexo project and they
don't seem to have ever been removed from our non-blog docs deployments,
despite the fact that they seem unnecessary.

In an effort to drastically reduce the overhead of maintaining these docs
deployments, I'm removing these as "unnecessary" until proven otherwise.
2018-03-23 17:52:29 +02:00
Jesse Rosenberger
062042d2b9 Merge branch 'master' into renovate/nodemon-1.x 2018-03-21 16:35:46 +02:00
Renovate Bot
9af875fe66 chore(deps): update dependency nodemon to v1.17.2 2018-03-21 14:05:14 +00:00
Renovate Bot
97008bccc2 chore(deps): update dependency meteor-theme-hexo to v1.0.3 2018-03-21 14:04:41 +00:00
Renovate Bot
992523e869 chore(deps): update dependency apollo-hexo-config to v1.0.5 2018-03-21 13:53:45 +00:00
Jesse Rosenberger
002c099740 docs: Upgrade Hexo generator/tag/server dependencies. 2018-03-13 10:20:06 -07:00
Jesse Rosenberger
8db9d66bca docs: Upgrade Hexo to 3.6.0. 2018-03-13 10:20:06 -07:00
Jesse Rosenberger
88d914d6bd docs: Use theme from npm, rather than submodule, using chexo.
The theme which the docs in this repository are based on
([`hexo-theme-meteor`](https://github.com/meteor/hexo-theme-meteor)) has been
published to npm.

Additionally, most of the configuration which was once present in this
repository's `_config.yml` file, has been moved into an Apollo-centric theme
configuration npm,
[`apollo-hexo-config`](https://www.npmjs.com/package/apollo-hexo-config) (and
similarly, [GitHub](https://github.com/apollographql/apollo-hexo-config)).

The theme bundled in this npm is a converged version of the two `apollo`
and `master` branches on the `hexo-theme-meteor` repository, which is a result
of the work undertaken in https://github.com/meteor/hexo-theme-meteor/pull/51.

Lastly, this makes use of a new `chexo` npm which acts as a wrapper for `hexo`
but permits the use of an inherited configuration from npm, rather than a
statically defined CLI file parameter (previously with `--config a,b`).
2018-03-13 10:20:06 -07:00
Jesse Rosenberger
5c95232451 docs: Use devDependencies instead of dependencies.
It's safe to mark all dependencies of this theme as 'dev' dependencies, as
none of them are needed to be installed in a production setting.

This was done automatically, so in some cases, this merges existing
`devDependencies`, and may also have added a missing `nodemon` `devDependency`
in cases where it was missing.  In other cases, this commit may not have
made such a change.
2018-03-13 10:20:06 -07:00
Jesse Rosenberger
6ab44f1ce3 Update various documentation dependencies. 2018-02-06 19:13:50 +02:00
Jesse Rosenberger
6b33772f9d Update hexo to latest version, 3.5.0. 2018-02-06 19:13:50 +02:00
Jesse Rosenberger
e811330413 Update hexo-renderer-marked to latest version.
Similar to HEAD^, this is to update a low-severity vulnerability by the
dependend upon `marked` npm.
2018-02-06 19:13:50 +02:00
Jesse Rosenberger
a9a296328b Update hexo-renderer-ejs to latest version.
Most notably to update `ejs` and quell the vulnerability warning on
GitHub, which had a low probability of being problematic as the usage
here is for a statically generated site.
2018-02-06 19:13:50 +02:00
Jesse Rosenberger
897443cd3e Update JSONStream discrepancies in package-lock.json.
The differences, which are purely ordering differences, are seemingly due
to a difference in `npm` versions.
2018-02-06 19:13:50 +02:00
Sashko Stubailo
ade5f1f21e Add docs site 2017-10-22 15:21:35 -07:00