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:
parent
a0b1f54a3f
commit
c41a02fc0a
@ -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"
|
||||
|
22
config.toml
22
config.toml
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user