Skip to content
Merged
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
add warning for config.docs_dir
  • Loading branch information
jakehow committed May 4, 2019
commit ce261dd2e6976ef133164ec586f00ae867a54eed
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ RspecApiDocumentation.configure do |config|
config.configurations_dir = Rails.root.join("doc", "configurations", "api")

# Output folder
# **WARNING*** All contents of the configured directory will be cleared, use a dedicated directory.
config.docs_dir = Rails.root.join("doc", "api")

# An array of output format(s).
Expand Down Expand Up @@ -238,6 +239,7 @@ RspecApiDocumentation.configure do |config|
config.define_group :public do |config|
# By default the group's doc_dir is a subfolder under the parent group, based
# on the group's name.
# **WARNING*** All contents of the configured directory will be cleared, use a dedicated directory.
config.docs_dir = Rails.root.join("doc", "api", "public")

# Change the filter to only include :public examples
Expand Down