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

Commit 023ed89

Browse files
committed
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 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`).
1 parent 50ba504 commit 023ed89

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
To run the documents locally, please use the following commands:
66

77
```
8-
git submodule init
9-
git submodule update
108
npm install
119
npm start
1210
```

docs/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"version": "3.5.0"
77
},
88
"devDependencies": {
9+
"apollo-hexo-config": "^1.0.2",
10+
"chexo": "^1.0.4",
911
"handlebars": "^4.0.5",
1012
"hexo": "3.5.0",
1113
"hexo-generator-archive": "0.1.5",
@@ -17,12 +19,13 @@
1719
"hexo-renderer-marked": "0.3.2",
1820
"hexo-server": "0.3.1",
1921
"lodash": "^4.13.1",
22+
"meteor-theme-hexo": "^1.0.1",
2023
"nodemon": "^1.14.12",
2124
"showdown": "^1.4.2"
2225
},
2326
"scripts": {
24-
"start": "hexo serve",
25-
"build": "hexo generate",
27+
"start": "npm run build && chexo apollo-hexo-config -- server",
28+
"build": "chexo apollo-hexo-config -- generate",
2629
"develop-theme": "nodemon -x 'rm db.json; hexo serve' -w assets/ -w code/ -w source/ -w themes/ -w scripts/",
2730
"clean": "hexo clean",
2831
"test": "npm run clean; npm run build"

docs/themes/meteor

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)