1
0
mirror of https://github.com/actix/actix-website synced 2025-02-17 10:13:31 +01:00

let actix.rs for en

This commit is contained in:
krircc 2018-06-23 07:43:29 +08:00
parent a0b1f54a3f
commit c41a02fc0a
2 changed files with 11 additions and 12 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
cp CNAME public
mv public/en/* public && rm -R public/en
git clone https://github.com/davisp/ghp-import.git &&
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -b master -r https://"$GH_TOKEN"@github.com/actix/actix.github.io.git public &&
echo "Uploaded documentation"

View File

@ -1,25 +1,23 @@
title = "actix"
languageCode = "en-us"
canonifyURLs = true
googleAnalytics = "UA-110322332-1"
pygmentsUseClasses = true
pygmentsCodeFences = true
defaultContentLanguageInSubdir = true
enableRobotsTXT = true
DefaultContentLanguage = "en"
[languages]
[languages.en]
baseURL = "https://actix.rs"
title = "actix"
languageCode = "en-us"
canonifyURLs = true
googleAnalytics = "UA-110322332-1"
pygmentsUseClasses = true
pygmentsCodeFences = true
languageName = "English"
weight = 1
[languages.cn]
baseURL = "https://actix.rs/cn"
title = "actix"
languageCode = "zh-cn"
canonifyURLs = true
googleAnalytics = "UA-110322332-1"
pygmentsUseClasses = true
pygmentsCodeFences = true
languageName = "Chinese"
weight = 2
[params]