This repository has been archived by the owner on Feb 13, 2019. It is now read-only.
Disable Jekyll to enable examples in Github pages #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
By default GitHub pages use Jekyll, which ignores all files starting with an underscore (https://help.github.com/articles/files-that-start-with-an-underscore-are-missing/).
This both means long times till the site appears on GitHub pages (as it all has to go through Jekyll) and the examples 404 (https://japaric.github.io/stm32f103xx-hal/stm32f103xx_hal/examples/_00_hello/index.html).
I've updated the
after_success.sh
script so it creates a file called.nojekyll
so that Jekyll is disabled, which seems to solve the problem (https://rudihorn.github.io/stm32f103xx-hal/stm32f103xx_hal/examples/_00_hello/index.html).The one issue I faced was that seemingly builds are disabled for the
master
branch, but only themaster
branch can produce the GitHub pages, so I have changed this to thestaging
branch? This might not be desired.