mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-10-21 07:47:17 +00:00
Bing Webmaster Tools flags meta descriptions under roughly 90-100 characters. It counts characters, so most Chinese, Japanese and Korean pages failed even when the text read fine. - Hand-written descriptions for the key site pages in 11 languages: home, pricing, support, team, the blog index and its categories. Plus 16 docs pages whose text is too short to extend from. - scripts/fit-meta-descriptions.mjs runs after both builds (v3/build.sh, deploy.sh and the docs workflow). It brings every other description to 120-160 characters, using the page's opening sentences. - Category descriptions now resolve for the transliterated zh/ja/ko slugs. Before, those pages only ever showed the generic text. - IndexNow: the key file ships with the site from v3/public, and scripts/indexnow.mjs submits the live sitemaps. After deploying, each workflow submits its own half: the site or the docs. - Translate the bodies of the Spanish team page and the German support page, which were still in English. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
596 B
Bash
Executable File
21 lines
596 B
Bash
Executable File
#!/usr/bin/env bash
|
|
rm -rf dist
|
|
npm run build
|
|
cd dist
|
|
ln -s pricing/index.html pricing.html
|
|
ln -s terms/index.html terms.html
|
|
ln -s success/index.html success.html
|
|
ln -s cancel/index.html cancel.html
|
|
ln -s privacy/index.html privacy.html
|
|
ln -s team/index.html team.html
|
|
ln -s careers/index.html careers.html
|
|
ln -s open-source/index.html open-source.html
|
|
ln -s ../v2/self-host
|
|
ln -s ../currencies.json
|
|
ln -s ../v2/web
|
|
cp -rf ../zh ./
|
|
# Bing flags meta descriptions outside ~120-160 characters; see the script.
|
|
node ../../scripts/fit-meta-descriptions.mjs .
|
|
tar czf x *
|
|
mv x ..
|