Skip to content

Commit

Permalink
[website] Mitigate "Invalid code tab markdown" issue on translated do…
Browse files Browse the repository at this point in the history
…cs (apache#5817)

* [website] Mitigate "Invalid code tab markdown" issue on translated docs

*Motivation*

Docusaurus code tabs are removed when crowdin generated the translated docs.
It causes website failed to build.

See details: apache#5816

*Modifications*

Use the original file for the translated files when building the website.

Note: this is a work around. it doesn't address the root cause of apache#5816.

* revert unneeded changes
  • Loading branch information
sijie authored and tuteng committed Dec 8, 2019
1 parent 02bf9a0 commit 5d5f58f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions site2/tools/build-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ yarn
yarn write-translations
yarn run crowdin-upload
yarn run crowdin-download

# TODO: remove this after figuring out why crowdin removed code tab when generating translated files
# https://github.com/apache/pulsar/issues/5816
cp versioned_docs/version-2.4.2/functions-develop.md translated_docs/zh-CN/version-2.4.2/functions-develop.md
cp versioned_docs/version-2.4.2/functions-develop.md translated_docs/ja/version-2.4.2/functions-develop.md
cp versioned_docs/version-2.4.2/functions-develop.md translated_docs/fr/version-2.4.2/functions-develop.md

yarn build

node ./scripts/replace.js
Expand Down

0 comments on commit 5d5f58f

Please sign in to comment.