You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,48 @@ RspecApiDocumentation.configure do |config|
125
125
end
126
126
```
127
127
128
+
## Format
129
+
130
+
***json**: Generates an index file and example files in JSON.
131
+
***html**: Generates an index file and example files in HTML.
132
+
***combined_text**: Generates a single file for each resource. Used by [Raddocs](http://github.com/smartlogic/raddocs) for command line docs.
133
+
***combined_json**: Generates a single file for all examples.
***textile**: Generates an index file and example files in Textile.
136
+
***append_json**: Lets you selectively run specs without destroying current documentation. See section below.
137
+
138
+
### append_json
139
+
140
+
This format cannot be run with other formats as they will delete the entire documentation folder upon each run. This format appends new examples to the index file, and writes all run examples in the correct folder.
141
+
142
+
Below is a rake task that allows this format to be used easily.
143
+
144
+
```ruby
145
+
RSpec::Core::RakeTask.new('docs:generate:append', :spec_file) do |t, task_args|
0 commit comments