From 4d05c85a80c32cd7b374b0d207d8250148adf2c9 Mon Sep 17 00:00:00 2001 From: Takahiro YAMASHITA Date: Mon, 8 Jul 2019 19:40:14 +0900 Subject: [PATCH] plugin_config_formatter: update new doc URL Signed-off-by: Takahiro YAMASHITA --- lib/fluent/command/plugin_config_formatter.rb | 8 ++++---- test/command/test_plugin_config_formatter.rb | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/fluent/command/plugin_config_formatter.rb b/lib/fluent/command/plugin_config_formatter.rb index 5c77c12062..f765ae5d4a 100644 --- a/lib/fluent/command/plugin_config_formatter.rb +++ b/lib/fluent/command/plugin_config_formatter.rb @@ -32,8 +32,8 @@ class FluentPluginConfigFormatter "buffer", "parser", "formatter", "storage" ] - DOCS_BASE_URL = "https://docs.fluentd.org/v1.0/articles/quickstart" - DOCS_ARTICLE_BASE_URL = "https://docs.fluentd.org/v1.0/articles/" + DOCS_BASE_URL = "https://docs.fluentd.org/v/1.0" + DOCS_PLUGIN_HELPER_BASE_URL = "#{DOCS_BASE_URL}/plugin-helper-overview/" def initialize(argv = ARGV) @argv = argv @@ -198,7 +198,7 @@ def dump_json(dumped_config) end def plugin_helper_url(plugin_helper) - "#{DOCS_ARTICLE_BASE_URL}api-plugin-helper-#{plugin_helper}" + "#{DOCS_PLUGIN_HELPER_BASE_URL}api-plugin-helper-#{plugin_helper}" end def plugin_helper_markdown_link(plugin_helper) @@ -207,7 +207,7 @@ def plugin_helper_markdown_link(plugin_helper) def plugin_overview_url(class_name) plugin_type = class_name.slice(/::(\w+)\z/, 1).downcase - "#{DOCS_ARTICLE_BASE_URL}#{plugin_type}-plugin-overview" + "#{DOCS_BASE_URL}/#{plugin_type}#overview" end def plugin_overview_markdown_link(class_name) diff --git a/test/command/test_plugin_config_formatter.rb b/test/command/test_plugin_config_formatter.rb index dc3bb1d8de..6765c57a1e 100644 --- a/test/command/test_plugin_config_formatter.rb +++ b/test/command/test_plugin_config_formatter.rb @@ -180,10 +180,10 @@ def process(tag, es) expected = <