-
Notifications
You must be signed in to change notification settings - Fork 23
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
showcase & api docs: publish to github pages #282
Comments
Blocked by #148 |
Alternative option for deployment to gh-pages for simpler projects: https://docs.travis-ci.com/user/deployment/pages/ |
@christophercr just thought about this, but so far we didn't think about the distinction between stark-core and stark-ui api docs.. I guess each needs its own sub-folder under api-docs? So the structure would be like:
|
Docs publication currently blocked by #127 |
Showcase publication currently blocked by #353 |
@dsebastien indeed, we overlooked that. I agree with the folder structure you propose ;) |
Okay, proposal adapted! |
I'll adapt the proposal to match our last discussion:
Travis CLI:
Encrypting the private key:
|
GH repos are limited to ~1GB and stark-core's API docs alone is ~25MB, so our initial idea of also keeping API docs for nightly builds will not hold for long. I'll only allow releases to get their published docs. |
One issue to keep in mind while generating the encrypted key on Windows :s travis-ci/travis-ci#4746 |
Build & deploy the showcase and api docs to github pages when creating releases
Preparation:
gh-pages
branchgh-pages
branch (should start empty)api-docs
andshowcase
folders in that branchapi-docs\stark-core\latest
andapi-docs\stark-ui\latest
folderslatest
folder in showcasenpm run build:showcase
Then create a script (gh-deploy.sh) executed as part of the Travis CI build that will...
First perform checks:
Then generate the API docs
npm run docs:all
The prepare the docs for upload to the github-pages branch:
showcase/<version>
foldershowcase/<version>
showcase/latest
In addition, for each stark module:
api-docs/<stark-module>/<version>
folderapi-docs/<stark-module>/<version>
api-docs/<stark-module>/latest
Finally:
Docs:
Bonus
https://nationalbankbelgium.github.io
Refs:
The text was updated successfully, but these errors were encountered: