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

Github pages and _static #6

Open
joedaws opened this issue Apr 4, 2022 · 3 comments
Open

Github pages and _static #6

joedaws opened this issue Apr 4, 2022 · 3 comments

Comments

@joedaws
Copy link

joedaws commented Apr 4, 2022

Github pages processes site files using Jekyll and this means that underscore prefixed directories don't get copied over to the final site. Since the style sheet of a wb generated page is in _static/css the stylesheet won't load for a page hosted on github pages. I think the solution is to follow the suggestion in https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/ and add a file called .nojekyll or at least that worked for me.

@aerosol
Copy link
Owner

aerosol commented Apr 4, 2022

@joedaws do you think this warrants adding those files to the repo or should we document GH pages deployment on its own page?

@joedaws
Copy link
Author

joedaws commented Apr 5, 2022

In my opinion, its sufficient to make a note in the documentation about publishing a wb generated site on github pages. Maybe in the Generate for the internets section on the page https://mtod.org/wb/docs/usage.html

@joedaws
Copy link
Author

joedaws commented Apr 5, 2022

On the other hand, it might be nice to have an optional flag so that wb gen /tmp/my-wiki-prod my-wiki https://cool.web --nojekyll will produce the html files with a .nojekyll file in the output root.

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

No branches or pull requests

2 participants