Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explanation for config cache_dir. / Add locale zh-CN zh-TW. #363

Merged
merged 1 commit into from
May 28, 2015
Merged
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
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,9 @@ When you want to avoid any unnecessary computation in production mode,
you can generate a cache with ``rake apipie:cache`` and configure the
app to use it in production with ``config.use_cache = Rails.env.production?``

Default cache dir is ``File.join(Rails.root, "public", "apipie-cache")``,
you can change it to where you want, example: ``config.cache_dir = File.join(Rails.root, "doc", "apidoc")``.

If, for some complex cases, you need to generate/re-generate just part of the cache
use ``rake apipie:cache cache_part=index`` resp. ``rake apipie:cache cache_part=resources``
To generate it for different locations for further processing use ``rake apipie:cache OUT=/tmp/apipie_cache``.
Expand Down
28 changes: 28 additions & 0 deletions config/locales/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'zh-CN':
apipie:
resources: 资源
resource: 资源
description: 描述
no_docs_found: 没有找到文档
no_docs_found_descr: 没有找到文档。
follow_instructions_html: 点击 %{href} 查看描述。
follow_instructions_href: 高级指导
oops: Oops!!
resource_not_found_html: 没有找到资源 %{res} 。
method_not_found_html: 没有找到资源 %{res} 的方法 %{method} 。
goto_homepage_html: 试图访问 %{href}
goto_homepage_href: "%{app_name} API 文档主页"
required: 必填
optional: 选填
nil_allowed: 允许空值
param_name: 参数名字
params: 参数
examples: 示例
metadata: 元数据
errors: 错误
supported_formats: 支持格式
enable_javascript_html: 浏览 %{comments_href}前请允许执行 JavaScript 。
comments_powered_by_disqus: 评论技术支持 %{disqus}
api_documentation: API 文档
headers: 头部
header_name: 头部名字
28 changes: 28 additions & 0 deletions config/locales/zh-TW.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
'zh-TW':
apipie:
resources: 資源
resource: 資源
description: 描述
no_docs_found: 沒有找到文檔
no_docs_found_descr: 沒有找到文檔。
follow_instructions_html: 點擊 %{href} 查看描述。
follow_instructions_href: 高級指導
oops: Oops!!
resource_not_found_html: 沒有找到資源 %{res} 。
method_not_found_html: 沒有找到資源 %{res} 的方法 %{method} 。
goto_homepage_html: 試圖訪問 %{href}
goto_homepage_href: "%{app_name} API 文檔主頁"
required: 必填
optional: 選填
nil_allowed: 允許空值
param_name: 參數名字
params: 參數
examples: 示例
metadata: 元數據
errors: 錯誤
supported_formats: 支持格式
enable_javascript_html: 瀏覽 %{comments_href}前請允許執行 JavaScript 。
comments_powered_by_disqus: 評論技術支持 %{disqus}
api_documentation: API 文檔
headers: 頭部
header_name: 頭部名字