Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

How to test documentation PR locally ? #469

Closed
surajnarwade opened this issue Nov 21, 2017 · 7 comments
Closed

How to test documentation PR locally ? #469

surajnarwade opened this issue Nov 21, 2017 · 7 comments

Comments

@surajnarwade
Copy link
Collaborator

surajnarwade commented Nov 21, 2017

It's very difficult to try documentation changes and preview locally, any additional documenation will help.

@concaf
Copy link
Collaborator

concaf commented Nov 21, 2017

Do you mean how to test markdown changes locally? There are plugins for IDEs which can help with that.

@cdrage
Copy link
Collaborator

cdrage commented Nov 21, 2017

You can just push the docs to your branch and view it on GitHub.. for example:

https://github.com/cdrage/kedge/blob/documentation-updates/docs/file-reference.md

@kadel
Copy link
Member

kadel commented Nov 22, 2017

@surajnarwade is probably asking how to generate file-reference webpage locally, right?

It is using https://github.com/lord/slate
You can check ./scripts/sync-doc.sh to se how its generated for kedgeproject.org webpage

@cdrage
Copy link
Collaborator

cdrage commented Nov 22, 2017

@surajnarwade Right now we generate slate using a docker image. Generating the static build:

docker run --rm -v $PWD:/usr/src/app/source -w /usr/src/app/source cdrage/slate bundle exec middleman build --clean

If you run the above command and then: jekyll serve . in the same directory, you should be able to view the docs at localhost:4000

I should add a command within the Makefile for this... probably make serve-docs

@surajnarwade
Copy link
Collaborator Author

@kadel @cdrage cool, thanks :)

@kadel
Copy link
Member

kadel commented Nov 30, 2017

can we close this?

@surajnarwade
Copy link
Collaborator Author

@kadel sure

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants