Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
docs: Use theme from npm, rather than submodule, using chexo.
Browse files Browse the repository at this point in the history
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 meteor/meteor-theme-hexo#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`).
  • Loading branch information
abernix committed Mar 12, 2018
1 parent ef6080c commit 0475bc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

7 changes: 5 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"version": "3.5.0"
},
"devDependencies": {
"apollo-hexo-config": "^1.0.2",
"chexo": "^1.0.4",
"handlebars": "^4.0.5",
"hexo": "3.5.0",
"hexo-generator-archive": "0.1.5",
Expand All @@ -17,12 +19,13 @@
"hexo-renderer-marked": "0.3.2",
"hexo-server": "0.3.1",
"lodash": "^4.13.1",
"meteor-theme-hexo": "^1.0.1",
"nodemon": "^1.14.12",
"showdown": "^1.4.2"
},
"scripts": {
"start": "hexo serve",
"build": "hexo generate",
"start": "npm run build && chexo apollo-hexo-config -- server",
"build": "chexo apollo-hexo-config -- generate",
"develop-theme": "nodemon -x 'rm db.json; hexo serve' -w assets/ -w code/ -w source/ -w themes/ -w scripts/",
"clean": "hexo clean",
"test": "npm run clean; npm run build"
Expand Down
1 change: 0 additions & 1 deletion docs/themes/meteor
Submodule meteor deleted from f2e7d6

0 comments on commit 0475bc9

Please sign in to comment.