monero-project / monero-site

https://getmonero.org
BSD 3-Clause "New" or "Revised" License
278 stars 390 forks source link

use our own custom Jekyll-Multiple-Languages-Plugin #2317

Open plowsof opened 3 months ago

plowsof commented 3 months ago

prefacing this by saying i don't know what ruby or gems are.

please read 2140 for more context:

we are currently forced to use ruby < 3.2.0 which is not good for long term as Ruby EOL's versions frequently

Starting in Ruby 3.2.0 the exists? (pluralized) alias for exist? seems to has been removed.

Now to my request. So before i can even attempt to fix the lowest hanging fruit "exists?" -> "exist?" issue, i need to use/import a custom version of JML.

Jekyll multiple languages plugin describes how to import/use the plugin manually (or as a submodule): https://github.com/kurtsson/jekyll-multiple-languages-plugin?tab=readme-ov-file#32-manually

I couldn't get it to work.. infinite recursion.. dependency still attempted to be grabbed from an external resource instead of locally. I am hoping its just my lack of ruby/gem/plugin knowledge and someone can help/advise.

plowsof commented 3 months ago

i seem to have got it working, just the .rb file in _plugins will auto load. combined with cleaning any mention of JML plugin from config files https://jekyllrb.com/docs/plugins/installation/

plowsof commented 3 months ago

ruby 3.2.4 now builds with a custom JML script. the "nil into string" error was fixed by adding some extra parsing logic. this was a speedrun just to make myself feel confident about getmonero having a none EOL ruby version in ~8 months. I need to put the changes into an acceptable/re-viewable PR.

https://github.com/plowsof/monero-site/pull/29