You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by gu...@apache.org on 2019/12/08 12:35:29 UTC

[pulsar] branch master updated: [website] Mitigate "Invalid code tab markdown" issue on translated docs (#5817)

This is an automated email from the ASF dual-hosted git repository.

guangning pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 5d5f58f  [website] Mitigate "Invalid code tab markdown" issue on translated docs (#5817)
5d5f58f is described below

commit 5d5f58fba0204afea93b64df1fd98c019b043d5c
Author: Sijie Guo <si...@apache.org>
AuthorDate: Sun Dec 8 04:35:19 2019 -0800

    [website] Mitigate "Invalid code tab markdown" issue on translated docs (#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: #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 #5816.
    
    * revert unneeded changes
---
 site2/tools/build-site.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/site2/tools/build-site.sh b/site2/tools/build-site.sh
index aa191a7..537d87f 100755
--- a/site2/tools/build-site.sh
+++ b/site2/tools/build-site.sh
@@ -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