Closed lparisc closed 1 year ago
During the last redesign JS code was added to generate the Right Side Bar, and that code needed to parse the URL. That parsing broke when the local was added to the URL.
Removing the custom theme created during the redesign solved the issue. Something in the custom theme created by contract developer is preventing multi-local support.
###
# Install Theme Updates
Install_DOC6S_Theme() {
#cp -r "${SCRIPT_DIR:?}/../web/docusaurus/src/components" "${ARG_BUILD_DIR:?}/devdocs/src/"
#cp -r "${SCRIPT_DIR:?}/../web/docusaurus/src/css" "${ARG_BUILD_DIR:?}/devdocs/src/"
#cp -r "${SCRIPT_DIR:?}/../web/docusaurus/src/hooks" "${ARG_BUILD_DIR:?}/devdocs/src/"
#cp -r "${SCRIPT_DIR:?}/../web/docusaurus/src/pages" "${ARG_BUILD_DIR:?}/devdocs/src/"
#cp -r "${SCRIPT_DIR:?}/../web/docusaurus/src/theme" "${ARG_BUILD_DIR:?}/devdocs/src/"
cp -r "${SCRIPT_DIR:?}/../web/docusaurus/static" "${ARG_BUILD_DIR:?}/devdocs/"
}
Works when CustomTOC
is removed. See image below for image of component.
Page working with CustomTOC
Fixed, one interesting thing the right side TOC drop down switches to "Next" for non-en locals. The en-local has "latest". Not sure how this drop down is used, it was custom work as part of the redesign.
Fixed, one interesting thing the right side TOC drop down switches to "Next" for non-en locals. The en-local has "latest". Not sure how this drop down is used, it was custom work as part of the redesign.
The same version drop-down should be used for all locales. I'll create another ticket to address this later.
Most chinese (and probably other locales) static pages are currently rendering this (React?) error:
"Cannot destructure property 'versions' of 'n' as it is undefined."
AC:
i18n/...
should render the appropriate locale version.This ticket is High Priority - related to https://github.com/eosnetworkfoundation/devrel/issues/213