Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Hexo for documentation #10

Open
wants to merge 14 commits into
base: master
from

Conversation

@fluctix
Copy link

commented May 25, 2019

Solves #1
Capturefdsfdg
(Uses Hexo Docs Theme)

fluctix added 8 commits May 21, 2019
@fluctix

This comment has been minimized.

Copy link
Author

commented May 25, 2019

@abhishek97 Please review...I guess it should work fine now..

@fluctix fluctix referenced this pull request May 25, 2019
fluctix added 3 commits May 26, 2019
@abhishek97

This comment has been minimized.

Copy link
Member

commented May 27, 2019

@theParadoxicalWizard Have you hexo init ? I don't think this would work either. Have you run it on your machine?

@fluctix

This comment has been minimized.

Copy link
Author

commented May 27, 2019

@fluctix

This comment has been minimized.

Copy link
Author

commented Jun 4, 2019

@abhishek97 please review..

@abhishek97

This comment has been minimized.

Copy link
Member

commented Jun 4, 2019

ignore public/* files. You need to correctly add hexo as dep inside package.json (use yarn add --dev hexo-cli)
Event after that, this

SyntaxError: Unexpected token ] in JSON at position 558
    at JSON.parse (<anonymous>)
    at Hexo.jsonRenderer (/Users/abhishek/cb/express-jsonapi-controller/node_modules/hexo/lib/plugins/renderer/json.js:4:15)
    at Hexo.tryCatcher (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.<anonymous> (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/method.js:15:34)
    at Promise.then.text (/Users/abhishek/cb/express-jsonapi-controller/node_modules/hexo/lib/hexo/render.js:61:21)
    at tryCatcher (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/promise.js:574:18)
    at Promise._settlePromiseCtx (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/promise.js:611:10)
    at _drainQueueStep (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/async.js:142:12)
    at _drainQueue (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/async.js:131:9)
    at Async._drainQueues (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/async.js:147:5)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/abhishek/cb/express-jsonapi-controller/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@fluctix

This comment has been minimized.

Copy link
Author

commented Jun 4, 2019

@abhishek97 Wonder what might be causing it...It is working fine on my PC , can you share the complete log , i am unable to make out where the error might have occurred

@abhishek97

This comment has been minimized.

Copy link
Member

commented Jun 4, 2019

@theParadoxicalWizard change travis.yml to generate docs on travis. Waha pe dekh lete hai. Most probably incorrect dependency or changes you forgot to push

fluctix added 3 commits Jun 4, 2019
@fluctix

This comment has been minimized.

Copy link
Author

commented Jun 4, 2019

@abhishek97 Travis green and the docs are generated , but I guess it cannot be deployed because a GithubToken for pages is not provided
See the Travis build on my personal fork :
It shows no error as I have added the token in the Travis settings
https://travis-ci.org/theParadoxicalWizard/express-jsonapi-controller/builds/541265879

@fluctix

This comment has been minimized.

Copy link
Author

commented Jun 5, 2019

@abhishek97

When deployed on GH Pages(Styling is for some unknown reason not there):

https://fluctix.github.io/express-jsonapi-controller/

hexoghpages

When deployed on Netlify(works perfectly):

https://elastic-babbage-787712.netlify.com/

hexonetlify

No changes have been made in the code , just used two different hosting services
@abhishek97 Am I missing something , please help..

@fluctix

This comment has been minimized.

Copy link
Author

commented Jun 9, 2019

@abhishek97 Please review....

@fluctix

This comment has been minimized.

Copy link
Author

commented Jul 1, 2019

@abhishek97 Please review now .....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.