Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbt-header plugins should handle md files in docs project #11245

Merged
merged 1 commit into from Apr 19, 2022

Conversation

mkurz
Copy link
Member

@mkurz mkurz commented Apr 19, 2022

Makes the ancient addMarkdownCopyright script obsolete so we can remove it in #11142, since we have the sbt-header plugin now.
The empty line gets added by default when running headerCreateAll. We could set headerEmptyLine := false, however that does not really help, since there are many java and scala files which do have the empty line, meaning now these would be modified, this time automatically removing the empty line by the sbt-header plugin.

FileType("md") -> CommentStyle(new CommentCreator() {
override def apply(text: String, existingText: Option[String]): String = {
s"<!--- $text -->"
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened sbt/sbt-header#285 to simplify the CommentStyle config even more.

@mkurz
Copy link
Member Author

mkurz commented Apr 19, 2022

Merging, all doc related tests pass.

@mkurz mkurz merged commit 4a5e3ce into playframework:main Apr 19, 2022
@mkurz mkurz deleted the docs_md_header branch April 19, 2022 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant