mirror of
https://github.com/actix/actix-website
synced 2025-02-21 11:54:48 +01:00
let actix.rs for en
This commit is contained in:
parent
a0b1f54a3f
commit
c41a02fc0a
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
|
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" ]]; then
|
||||||
cp CNAME public
|
cp CNAME public
|
||||||
|
mv public/en/* public && rm -R public/en
|
||||||
git clone https://github.com/davisp/ghp-import.git &&
|
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 &&
|
./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"
|
echo "Uploaded documentation"
|
||||||
|
24
config.toml
24
config.toml
@ -1,25 +1,23 @@
|
|||||||
defaultContentLanguageInSubdir = true
|
|
||||||
enableRobotsTXT = true
|
|
||||||
|
|
||||||
DefaultContentLanguage = "en"
|
|
||||||
|
|
||||||
[languages.en]
|
|
||||||
baseURL = "https://actix.rs"
|
|
||||||
title = "actix"
|
title = "actix"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
canonifyURLs = true
|
canonifyURLs = true
|
||||||
googleAnalytics = "UA-110322332-1"
|
googleAnalytics = "UA-110322332-1"
|
||||||
pygmentsUseClasses = true
|
pygmentsUseClasses = true
|
||||||
pygmentsCodeFences = true
|
pygmentsCodeFences = true
|
||||||
|
|
||||||
|
defaultContentLanguageInSubdir = true
|
||||||
|
enableRobotsTXT = true
|
||||||
|
|
||||||
|
DefaultContentLanguage = "en"
|
||||||
|
|
||||||
|
[languages]
|
||||||
|
[languages.en]
|
||||||
|
baseURL = "https://actix.rs"
|
||||||
|
languageName = "English"
|
||||||
weight = 1
|
weight = 1
|
||||||
[languages.cn]
|
[languages.cn]
|
||||||
baseURL = "https://actix.rs/cn"
|
baseURL = "https://actix.rs/cn"
|
||||||
title = "actix"
|
languageName = "Chinese"
|
||||||
languageCode = "zh-cn"
|
|
||||||
canonifyURLs = true
|
|
||||||
googleAnalytics = "UA-110322332-1"
|
|
||||||
pygmentsUseClasses = true
|
|
||||||
pygmentsCodeFences = true
|
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user