Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Oct 16, 2024
1 parent 9b6c1b2 commit 2174987
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
29 changes: 29 additions & 0 deletions auto/train.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

DEST_DIR=~/Downloads/train && mkdir -p $DEST_DIR && echo "Create dest dir $DEST_DIR"
if [[ $? -ne 0 ]]; then echo "Failed to create dir $DEST_DIR"; exit 1; fi

SRC_DIR=$(pwd)/for-writers && (cd $SRC_DIR) && echo "Use source dir $SRC_DIR"
if [[ $? -ne 0 ]]; then echo "Failed to use dir $SRC_DIR"; exit 1; fi

echo '' > $DEST_DIR/page.md && echo "Remove $DEST_DIR/page.md" &&
cat $SRC_DIR/pages/contact-*en.md >> $DEST_DIR/page.md && echo "Copy contact to $DEST_DIR" &&
cat $SRC_DIR/pages/faq-*en.md >> $DEST_DIR/page.md && echo "Copy faq to $DEST_DIR" &&
cat $SRC_DIR/pages/how-to-*en.md >> $DEST_DIR/page.md && echo "Copy how-to to $DEST_DIR" &&
cat $SRC_DIR/pages/product-*en.md >> $DEST_DIR/page.md && echo "Copy product to $DEST_DIR" &&
cat $SRC_DIR/pages/license-*en.md >> $DEST_DIR/page.md && echo "Copy license to $DEST_DIR" &&
cat $SRC_DIR/pages/security-*en.md >> $DEST_DIR/page.md && echo "Copy security to $DEST_DIR" &&
echo "Copy all pages to $DEST_DIR/page.md ok"
if [[ $? -ne 0 ]]; then echo "Failed to copy all pages to $DEST_DIR/page.md"; exit 1; fi

echo '' > $DEST_DIR/blog.md && echo "Remove $DEST_DIR/blog.md" &&
cat $SRC_DIR/blog-en/*.md >> $DEST_DIR/blog.md && echo "Copy all blogs to $DEST_DIR/blog.md ok"
if [[ $? -ne 0 ]]; then echo "Failed to copy all blogs to $DEST_DIR/blog.md"; exit 1; fi

echo '' > $DEST_DIR/doc.md && echo "Remove $DEST_DIR/doc.md" &&
cat $SRC_DIR/doc-en-7.0/doc/*.md >> $DEST_DIR/doc.md && echo "Copy all docs to $DEST_DIR/doc.md ok"
if [[ $? -ne 0 ]]; then echo "Failed to copy all docs to $DEST_DIR/doc.md"; exit 1; fi

echo ""
echo "Done"
echo ""
3 changes: 3 additions & 0 deletions i18n/en-us/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@
"homepage.getStarted": {
"message": "Get Started"
},
"homepage.askAI": {
"message": "Ask AI"
},
"homepage.cloudService": {
"message": "Cloud Service"
},
Expand Down
3 changes: 3 additions & 0 deletions i18n/zh-cn/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@
"homepage.getStarted": {
"message": "快速开始"
},
"homepage.askAI": {
"message": "AI助手"
},
"homepage.cloudService": {
"message": "云服务"
},
Expand Down
3 changes: 3 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ function HomepageHeader() {
<div className={styles.buttons}>
<Link className="button button--secondary button--lg" to="/docs/v6/doc/getting-started">
{translate({id: 'homepage.getStarted'})}
</Link> &nbsp;
<Link className="button button--secondary button--lg" to="https://chatgpt.com/g/g-FxEZ7G0XX-srs-expert" target='_blank'>
{translate({id: 'homepage.askAI'})}
</Link>
</div>
</div>
Expand Down

0 comments on commit 2174987

Please sign in to comment.