-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from DataDog/anmarchenko/yard_docs
generate YARD documentation
- Loading branch information
Showing
15 changed files
with
87 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
--markup markdown | ||
--markup-provider redcarpet | ||
--readme README.md | ||
--tag configure_with:"Configure with" | ||
--tag default:"Defaults to" | ||
--tag 'public_api:Public API' | ||
--hide-tag public_api | ||
--files LICENSE | ||
--files docs/Deprecation.md | ||
--files docs/PublicApi.md | ||
--template-path yard/templates | ||
-e ./yard/extensions.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Deprecation | ||
|
||
Deprecated API objects are scheduled to be **removed in the next major version release**. | ||
|
||
Deprecated objects can still be safely used until the next major version. | ||
|
||
Objects will receive the deprecation tag in a minor version release, | ||
allowing for deprecation warnings to be surfaced to users before the next major release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Public API | ||
|
||
`datadog-ci` respects [Semantic Versioning 2.0.0](https://semver.org/spec/v2.0.0.html). | ||
|
||
Classes, modules, and methods marked as part of the public API will not introduce | ||
breaking changes outside of a major version release. | ||
|
||
Objects that belong to the public API are marked with the `@public_api` YARD documentation tag. | ||
When navigating [`datadog-ci`'s YARD documentation](https://rubydoc.info/gems/datadog-ci), public API | ||
objects will have an explicit banner informing the user that they are part of the public API contract. | ||
|
||
Objects not marked with the `@public_api` tag are not part of the public API contract, and thus | ||
considered internal to `datadog-ci`. These objects can receive breaking changes in minor and patch | ||
releases. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div class="note deprecated"><strong>Deprecated <%= link_file('Deprecation.md', 'for removal') %>.</strong> <%= htmlify_line object.tag(:deprecated).text %></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# frozen_string_literal: true | ||
|
||
# def init | ||
# return if object.docstring.blank? && !object.has_tag?(:api) | ||
# sections :index, [:private, :deprecated, :abstract, :todo, :note, :returns_void, :text], T('tags') | ||
# end | ||
|
||
def deprecated | ||
return unless object.has_tag?(:deprecated) | ||
|
||
erb(:deprecated) | ||
end |