TI-Tokyo / riak-docs-fork

Riak Products Documentation
http://www.tiot.jp/riak-docs/
Other
3 stars 6 forks source link

Some of the click to switch to OS docs don't switch back #274

Open Bob-The-Marauder opened 4 months ago

Bob-The-Marauder commented 4 months ago

If we look at https://www.tiot.jp/riak-docs/riak/kv/2.9.10/setup/upgrading/version/#upgrading-process for example with steps 2 and 3 (backing up stuff then removing basho-patches) we can see how we have RHEL/CentOS and Ubuntu options. The RHEL/CentOS use /usr/lib64/... whereas Ubuntu uses /usr/lib/....

Steps to replicate:

  1. Click on Ubuntu - the command changes to the Ubuntu version
  2. Click back on RHEL/CentOS - for 2), the command vanishes and for 3), the command stays as the Ubuntu command i.e. /usr/lib/... and not /usr/lib64/..

I'm not sure the prevalence of this issue throughout the docs. I'd like to think it was only this page as this is the only place I have found it. However, it is possible it exists elsewhere too.

pjaclark commented 4 months ago

Initial guess - it's the / in RHEL/CENTOS

pjaclark commented 4 months ago

For code blocks, use ubuntudebian and rhelcentos.

Then in code-blocks.coffee add something like:

  'language-ubuntudebian'     : { display_name : 'Ubuntu\Debian',  highlight_as : 'language-bash' }
  'language-rhelcentos'     : { display_name : 'RHEL\CentOS',  highlight_as : 'language-bash' }