Skip to content

Commit

Permalink
Update documentation navigation (#817)
Browse files Browse the repository at this point in the history
* Remove unused locales in navigation section

* Move template-engine-options page to the advanced documentation section

* Add Netlify redirects for template-engine-options page

* Translate 'Template engine options' in Japanese
  • Loading branch information
AlexB52 authored and tdreyno committed Jul 2, 2019
1 parent ae4ade2 commit c2c8ba0
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 8 deletions.
4 changes: 1 addition & 3 deletions locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ en:
configuration: Configuring Your Site
custom_extensions: Custom Extensions
data_files: Data Files
development_optimization: Development Optimization
dynamic_pages: Dynamic Pages
file_size_optimization: File Size Optimization
improving_cacheability: Improving Cacheability
localization: Localization (i18n)
performance_optimization: Performance Optimization
pretty_urls: Pretty URLs (Directory Indexes)
production_optimization: Production Optimization
project_templates: Project Templates
rack_middleware: Rack Middleware
sitemap: The Sitemap
template_engine_options: Template Engine Options
open_source:
title: Contribute to Open Souce
service: Add Your Service
Expand Down
4 changes: 1 addition & 3 deletions locales/jp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ jp:
configuration: 設定
custom_extensions: カスタム拡張
data_files: データファイル
development_optimization: 開発の最適化
dynamic_pages: 動的ページ
file_size_optimization: ファイルサイズ最適化
improving_cacheability: キャッシュ機能の改善
localization: 多言語化 (i18n)
performance_optimization: パフォーマンス最適化
pretty_urls: きれいな URL (ディレクトリインデックス)
production_optimization: プロダクションの最適化
project_templates: プロジェクトテンプレート
rack_middleware: Rack ミドルウェア
sitemap: サイトマップ
template_engine_options: テンプレートエンジンオプション
open_source:
title: オープンソースへの貢献
service: サービスの追加
Expand Down
20 changes: 20 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,23 @@
from = "/jp/getting-started/"
to = "/jp/basics/install"
status = 301

[[redirects]]
from = "/advanced/template_engine_options"
to = "/advanced/template-engine-options"
status = 301

[[redirects]]
from = "/jp/advanced/template_engine_options"
to = "/jp/advanced/template-engine-options"
status = 301

[[redirects]]
from = "/basics/template-engine-options"
to = "/advanced/template-engine-options"
status = 301

[[redirects]]
from = "/jp/basics/template-engine-options"
to = "/jp/advanced/template-engine-options"
status = 301
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ If we wanted to get fancy, we could add a loop:
</ul>
```

[see the list]: /basics/template-engine-options/
[see the list]: /advanced/template-engine-options/
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ Middleman で使うテンプレートはそのファイル名にテンプレー
</ul>
```

[see the list]: /jp/basics/template-engine-options/
[see the list]: /jp/advanced/template-engine-options/
6 changes: 6 additions & 0 deletions source/partials/_documentation_nav.erb
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,11 @@
"#{locale_prefix}/advanced/custom-extensions/"
) %>
</li>
<li class="doc-item">
<%= current_link_to(
t("navigation.advanced.template_engine_options"),
"#{locale_prefix}/advanced/template-engine-options/"
) %>
</li>
</ul>
</div>

0 comments on commit c2c8ba0

Please sign in to comment.