-
Notifications
You must be signed in to change notification settings - Fork 61
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
site translation broken after pushing to gh-pages #75
Comments
Alright, I just saw this issue #64 Any news on this? |
Unfortunately until we can get a multi languages plugin whitelisted, you cannot use polyglot with GitHub pages. Sorry 😅 However I am starting work on version 2.0.0, which I hope to get whitelisted in the future. Currently looking at these threads: If you leave this issue open I'll keep you updated 👍 |
Thanks Untra, I have thumbed-up your requests to maybe raise some attention on the topic. I will leave the issue open so I can get updates sure. Thank you for your work, I hope it will get whitelisted soon. |
Have the same problem :( Will try to deploy the same to gitlab pages. |
@cntlsn I migrated my github pages to gitlab page and it is possible to use polyglot there. |
hi @basementcz thx for your input, I will have a look. |
GitHub Pages doesn't accept many plugins, so if you want to do anything serious with Jekyll you pretty much have to build your site locally or with any CI system and then push it to your GitHub Pages branch. Here's the documentation from TravisCI on how to do this. Don't skip the step where you have to manually generate and register a private token for TravisCI. Here's also my configuration with the build step if that helps. Works like a charm for me. My configuration is a little special because I had to push to the |
This can be done nowadays by building your site and publishing it with GitHub actions. Check my template, or more specifically the GitHub action responsible for building and publishing it. |
@george-gca Hello george-gca I wanted to use your github action. |
Actually the - name: Checkout 🛎️
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.2"
bundler-cache: true
- name: Install and Build 🔧
run: |
export JEKYLL_ENV=production
bundle exec jekyll build --lsi
- name: Deploy 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site Meaning, get the code, setup the build environment, build the site, and upload the generated |
@george-gca Thank you.
and, could I keep my github pages options? like branch, source, .. |
No idea what this error means. Note that you can't take my deploy and use it as-is. Some steps during my process are custom made to the repo, like the |
You should look at the full stacktrace to get more information about your error. Checking your failed workflow there is:
Which is what is set in your Gemfile.lock. |
- https://github.com/george-gca/multi-language-al-folio 참고 - untra/polyglot#75 (comment) 처럼 gemfile의 제한이 에러를 만들기도 함
@george-gca |
Hi Untra,
After merging my
polyglot
branch togh-pages
the site is not able to display all the translated strings, nor in default or/en/
language.Actually, when trying to reach the not-default
website.com/en/
I get a 404You can check the website here
So far I have tried to:
data_dir: ./_data
anddestination: ./_site
from_config.yml
parallel_localization: false
in_config.yml
None of the above helped...
Any idea how to proceed?
Thanks a lot for your help.
The text was updated successfully, but these errors were encountered: