Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ make docs
# Build the documentation server
make server

# Run the server locally (http://localhost:3000)
# Run the server locally (http://localhost:5169)
make run

# Create a distribution package (zip with server + docs)
Expand Down Expand Up @@ -70,7 +70,7 @@ make server

# Run it
./hem-doc-server
# Serving docs at http://localhost:3000
# Serving docs at http://localhost:5169
```

The server provides:
Expand Down
70 changes: 68 additions & 2 deletions build_docs.hml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ let SUPPORTED_LANGUAGES = {
zh: "中文",
de: "Deutsch",
es: "Español",
fr: "Français",
ja: "日本語",
pt: "Português"
};
Expand Down Expand Up @@ -110,6 +111,20 @@ let SECTION_TRANSLATIONS = {
"hpm: Package Development": "hpm: Desenvolvimento de Pacotes",
"hpm: Reference": "hpm: Referência",
"hpm: Other": "hpm: Outros"
},
fr: {
"Language Reference": "Référence du Langage",
"Getting Started": "Prise en Main",
"Language Guide": "Guide du Langage",
"Advanced Topics": "Sujets Avancés",
"API Reference": "Référence API",
"Design & Philosophy": "Conception et Philosophie",
"Contributing": "Contribuer",
"hpm: Getting Started": "hpm : Prise en Main",
"hpm: User Guide": "hpm : Guide Utilisateur",
"hpm: Package Development": "hpm : Développement de Paquets",
"hpm: Reference": "hpm : Référence",
"hpm: Other": "hpm : Autres"
}
};

Expand Down Expand Up @@ -359,6 +374,55 @@ let TITLE_TRANSLATIONS = {
"Versioning": "Versionamento",
"Architecture": "Arquitetura",
"Exit Codes": "Códigos de Saída"
},
fr: {
"Installation": "Installation",
"Quick Start": "Démarrage Rapide",
"Tutorial": "Tutoriel",
"Learning Paths": "Parcours d'Apprentissage",
"Syntax": "Syntaxe",
"Types": "Types",
"Functions": "Fonctions",
"Arrays": "Tableaux",
"Strings": "Chaînes de Caractères",
"Objects": "Objets",
"Control Flow": "Flux de Contrôle",
"Error Handling": "Gestion des Erreurs",
"Modules": "Modules",
"Memory": "Gestion de la Mémoire",
"Pattern Matching": "Filtrage par Motif",
"Runes": "Runes",
"Async Concurrency": "Asynchronisme et Concurrence",
"Atomics": "Opérations Atomiques",
"Bundling Packaging": "Empaquetage et Distribution",
"Command Execution": "Exécution de Commandes",
"Command Line Args": "Arguments en Ligne de Commande",
"FFI": "FFI (Interface de Fonctions Étrangères)",
"File IO": "E/S de Fichiers",
"Profiling": "Profilage",
"Signals": "Signaux",
"Array API": "API des Tableaux",
"String API": "API des Chaînes",
"File API": "API des Fichiers",
"Memory API": "API Mémoire",
"Concurrency API": "API de Concurrence",
"Builtins": "Fonctions Intégrées",
"Operators": "Opérateurs",
"Type System": "Système de Types",
"Philosophy": "Philosophie",
"Implementation": "Implémentation",
"Signature Syntax": "Syntaxe des Signatures",
"Guidelines": "Directives",
"Testing": "Tests",
"Commands": "Commandes",
"Configuration": "Configuration",
"Project Setup": "Configuration du Projet",
"Troubleshooting": "Dépannage",
"Creating Packages": "Création de Paquets",
"Package Spec": "Spécification des Paquets",
"Versioning": "Gestion des Versions",
"Architecture": "Architecture",
"Exit Codes": "Codes de Sortie"
}
};

Expand All @@ -368,6 +432,7 @@ let PAGE_TITLES = {
zh: "Hemlock 语言手册",
de: "Hemlock-Sprachhandbuch",
es: "Manual del Lenguaje Hemlock",
fr: "Manuel du Langage Hemlock",
ja: "Hemlock言語マニュアル",
pt: "Manual da Linguagem Hemlock"
};
Expand All @@ -378,6 +443,7 @@ let WELCOME_TITLE_TRANSLATIONS = {
zh: "欢迎",
de: "Willkommen",
es: "Bienvenido",
fr: "Bienvenue",
ja: "ようこそ",
pt: "Bem-vindo"
};
Expand Down Expand Up @@ -2629,12 +2695,12 @@ fn main() {
// Determine which languages to build
let languages = [];
if (lang == "all") {
languages = ["en", "zh", "de", "es", "ja", "pt"];
languages = ["en", "zh", "de", "es", "fr", "ja", "pt"];
} else if (SUPPORTED_LANGUAGES[lang] != null) {
languages = [lang];
} else {
print("Error: Unknown language '" + lang + "'");
print("Supported languages: en, zh, de, es, ja, pt");
print("Supported languages: en, zh, de, es, fr, ja, pt");
exit(1);
}

Expand Down
24 changes: 12 additions & 12 deletions build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@
'Bundling Packaging': '打包与发布',
'Command Execution': '命令执行',
'Command Line Args': '命令行参数',
'Ffi': 'FFI (外部函数接口)',
'File Io': '文件 I/O',
'FFI': 'FFI (外部函数接口)',
'File IO': '文件 I/O',
'Profiling': '性能分析',
'Signals': '信号处理',
# Reference
Expand Down Expand Up @@ -216,8 +216,8 @@
'Bundling Packaging': 'Bündeln & Paketieren',
'Command Execution': 'Befehlsausführung',
'Command Line Args': 'Kommandozeilenargumente',
'Ffi': 'FFI (Fremdsprachenschnittstelle)',
'File Io': 'Datei-I/O',
'FFI': 'FFI (Fremdsprachenschnittstelle)',
'File IO': 'Datei-I/O',
'Profiling': 'Profilerstellung',
'Signals': 'Signalverarbeitung',
# Reference
Expand Down Expand Up @@ -272,8 +272,8 @@
'Bundling Packaging': 'Empaquetado y Distribución',
'Command Execution': 'Ejecución de Comandos',
'Command Line Args': 'Argumentos de Línea de Comandos',
'Ffi': 'FFI (Interfaz de Funciones Externas)',
'File Io': 'E/S de Archivos',
'FFI': 'FFI (Interfaz de Funciones Externas)',
'File IO': 'E/S de Archivos',
'Profiling': 'Perfilado',
'Signals': 'Señales',
# Reference
Expand Down Expand Up @@ -328,8 +328,8 @@
'Bundling Packaging': 'バンドルとパッケージング',
'Command Execution': 'コマンド実行',
'Command Line Args': 'コマンドライン引数',
'Ffi': 'FFI(外部関数インターフェース)',
'File Io': 'ファイルI/O',
'FFI': 'FFI(外部関数インターフェース)',
'File IO': 'ファイルI/O',
'Profiling': 'プロファイリング',
'Signals': 'シグナル処理',
# Reference
Expand Down Expand Up @@ -384,8 +384,8 @@
'Bundling Packaging': 'Empacotamento e Distribuição',
'Command Execution': 'Execução de Comandos',
'Command Line Args': 'Argumentos de Linha de Comando',
'Ffi': 'FFI (Interface de Funções Estrangeiras)',
'File Io': 'E/S de Arquivos',
'FFI': 'FFI (Interface de Funções Estrangeiras)',
'File IO': 'E/S de Arquivos',
'Profiling': 'Perfilamento',
'Signals': 'Sinais',
# Reference
Expand Down Expand Up @@ -440,8 +440,8 @@
'Bundling Packaging': 'Empaquetage et Distribution',
'Command Execution': 'Exécution de Commandes',
'Command Line Args': 'Arguments en Ligne de Commande',
'Ffi': 'FFI (Interface de Fonctions Étrangères)',
'File Io': 'E/S de Fichiers',
'FFI': 'FFI (Interface de Fonctions Étrangères)',
'File IO': 'E/S de Fichiers',
'Profiling': 'Profilage',
'Signals': 'Signaux',
# Reference
Expand Down
Loading