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
[SPARK-26918][DOCS] All .md should have ASF license header #24243
Conversation
Test build #104091 has finished for PR 24243 at commit
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question about including the license twice otherwise LGTM.
I have checked for including double licenses by executing the following search and there is only ./docs/cloud-integration.md
where this problem occurs:
$ find . -name "*.md" -exec grep -c "http://www.apache.org/licenses" \{} \; -print | grep 2 -A 2
2
./docs/cloud-integration.md
1
--
./build/scala-2.12.7/doc/LICENSE.md
2
./build/scala-2.12.8/doc/LICENSE.md
1
./build/scala-2.11.7/doc/LICENSE.md
1
./build/scala-2.11.8/doc/LICENSE.md
1
./build/scala-2.11.12/doc/LICENSE.md
0
0
I run a completness check too. As I understand only the markdowns under the ./docs are targeted, in this case the PR is also complete:
|
I'll fix all that, yeah. The only annoying thing is that this metadata gets displayed in Github like ... |
Regarding github markdown comment I have found this working:
But unfortunately it should be combined with the metadata and that I am afraid won't work. |
I tried that and it rendered in the HTML output, so abandoned it. I couldn't find something that works with jekyll other than metadata |
I have only one idea: to introduce an extra "build" step where you filter out lines starting with |
Test build #104106 has finished for PR 24243 at commit
|
Yeah... I figure it's not worth it unless we find for some reason this solution isn't sufficient or it's too annoying. I like that it's metadata in this case. If we had to, it could convert to HTML comments but that puts the bulk of the comment in the HTML too. |
I’d agree we should avoid doing a bunch of extra work for this...
|
Merged to master |
What changes were proposed in this pull request?
Add AL2 license to metadata of all .md files.
This seemed to be the tidiest way as it will get ignored by .md renderers and other tools. Attempts to write them as markdown comments revealed that there is no such standard thing.
How was this patch tested?
Doc build