This docs deployment is a test Hexo theme used by the meteor-theme-hexo
(npm) theme test deployment previews on Netlify.
It can also be used to test theme changes locally!
There are two commands, and they use the same arguments which are explained below.
npm run build -- <arguments>
- This generates the content.
npm start -- <arguments>
- This generates and also starts a local web server on port 4000.
--config-pkg <node-pkg>
- Where
<node-pkg>
is a Hexo configuration, such asapollo-hexo-config
. - Either this option, or the next option are required.
- Where
--config-dir <path>
- Where
<path>
is a local checkout of the configuration. - Either this option, or the previous option is required.
- Where
--theme-dir <path>
(defaults tometeor-theme-hexo
installed from npm)
**For the configuration, use your local checkout which is alongside this theme in ../apollo-hexo-config
along with a local copy of the theme which is alongside in ../meteor-theme-hexo
.
npm start -- --config-dir ../apollo-hexo-config --theme-dir ../meteor-theme-hexo
**Use the Apollo config from npm, but the local checkout of the theme.
npm start -- --config-pkg apollo-hexo-config --theme-dir ../meteor-theme-hexo
**Use the (published) Apollo config and the theme, both via npm install.
npm start -- --config-pkg apollo-hexo-config
**Use the (published) Meteor config and the theme, both via npm install.
npm start -- --config-pkg meteor-hexo-config