Skip to content

Commit

Permalink
refactor: use translation by file name (#88)
Browse files Browse the repository at this point in the history
* refactor: use translation by file name

* fix: update docsy
  • Loading branch information
ouuan authored Oct 18, 2020
1 parent 6c27bcd commit 8a41ef1
Show file tree
Hide file tree
Showing 77 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ theme = ["docsy"]
enableGitInfo = true

# Language settings
contentDir = "content/en"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = false
# Useful when translating.
enableMissingTranslationPlaceholders = true

Expand Down Expand Up @@ -68,13 +66,11 @@ weight = 1
title = "CP Editor"
description = "专为算法竞赛设计的 IDE"
languageName = "中文"
contentDir = "content/zh"
weight = 2
[languages.ru]
title = "CP Editor"
description = "редактор, созданный для спортивного программирования"
languageName = "Русский"
contentDir = "content/ru"
weight = 3

[markup]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.