Skip to content

Commit ed281e8

Browse files
committed
Allow raw input(html/markdown/textile) from api_description
1 parent 00d4360 commit ed281e8

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

features/html_documentation.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Feature: Generate HTML documentation from test examples
2424
RspecApiDocumentation.configure do |config|
2525
config.app = App
2626
config.api_name = "Example API"
27-
config.api_explanation = "Example API Description"
27+
config.api_explanation = "<p>Example API Description</p>"
2828
config.request_headers_to_include = %w[Cookie]
2929
config.response_headers_to_include = %w[Content-Type]
3030
end

templates/rspec_api_documentation/html_index.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<body>
1111
<div class="container">
1212
<h1>{{ api_name }}</h1>
13-
{{ api_explanation }}
13+
{{{ api_explanation }}}
1414
{{# sections }}
1515
<div class="article">
1616
<h2>{{ resource_name }}</h2>

templates/rspec_api_documentation/markdown_index.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# {{ api_name }}
2-
{{ api_explanation }}
2+
{{{ api_explanation }}}
33

44
{{# sections }}
55
## {{ resource_name }}

templates/rspec_api_documentation/textile_index.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
h1. {{ api_name }}
2-
{{ api_explanation }}
2+
{{{ api_explanation }}}
33

44
{{# sections }}
55
h2. {{ resource_name }}

0 commit comments

Comments
 (0)