Skip to content

Commit

Permalink
docs: add menu items for translations and make EN default
Browse files Browse the repository at this point in the history
  • Loading branch information
Azadzadeh committed Dec 15, 2022
1 parent b9735bb commit 481b63e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/config.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
baseURL = "https://p4gefau1t.github.io/trojan-go"

languageCode = "zh-CN"
languageCode = "en-US"
title = "Trojan-Go Docs"
theme = "hugo-theme-techdoc"

hasCJKLanguage = true
metaDataFormat = "yaml"

defaultContentLanguage = "zh"
defaultContentLanguage = "en"
defaultContentLanguageInSubdir= true
enableMissingTranslationPlaceholders = false

Expand Down Expand Up @@ -79,14 +79,19 @@ enableMissingTranslationPlaceholders = false
# See https://gohugo.io/content-management/menus/
[menu]
[[menu.main]]
name = "Home"
url = "/"
name = "English (DeepL)"
url = "/en/"
weight = 1

[[menu.main]]
name = "Chinese (original)"
url = "/zh/"
weight = 2

[[menu.main]]
name = "GitHub"
url = "https://github.com/p4gefau1t"
weight = 2
weight = 3

# Markup configure section
# See https://gohugo.io/getting-started/configuration-markup/
Expand Down
5 changes: 5 additions & 0 deletions docs/content/en/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ weight: 10

# Trojan-Go

{{% panel status="notice" title="English translation" %}}
Note that the documentation for Trojan-Go was translated from original Chinese using the automatic translation service [DeepL](https://www.deepl.com/translator). Please submit a PR if you find any discrepancy.
{{% /panel %}}


Here is the documentation for Trojan-Go, you can find some tips on how to use it in the left navigation bar, as well as a full description of the configuration file.

Trojan-Go is a complete Trojan proxy implemented in Go, compatible with the Trojan protocol and the original configuration file format. It supports and is compatible with most of the features of the Trojan-GFW version, and extends it with more useful features.
Expand Down

0 comments on commit 481b63e

Please sign in to comment.