Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a0eb081a
authored
Jan 10, 2020
by
Don Turner
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add favicon to javadocs
parent
6aa35aaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
javadoc_util.gradle
javadoc_util.gradle
View file @
a0eb081a
...
...
@@ -27,6 +27,23 @@ ext.fixJavadoc = {
ant
.
replaceregexp
(
match:
oracleLink
,
replace:
oracleFixed
,
flags:
'g'
)
{
fileset
(
dir:
"${javadocPath}"
,
includes:
"**/*.html"
)
}
// Add favicon to each page
def
headTag
=
"<head>"
def
headTagWithFavicon
=
"<head>"
+
"<!-- start favicons snippet, use https://realfavicongenerator.net/ -->"
+
"<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/assets/apple-touch-icon.png\">"
+
"<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/assets/favicon-32x32.png\">"
+
"<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/assets/favicon-16x16.png\">"
+
"<link rel=\"manifest\" href=\"/assets/site.webmanifest\">"
+
"<link rel=\"mask-icon\" href=\"/assets/safari-pinned-tab.svg\" color=\"#fc4d50\">"
+
"<link rel=\"shortcut icon\" href=\"/assets/favicon.ico\">"
+
"<meta name=\"msapplication-TileColor\" content=\"#ffc40d\">"
+
"<meta name=\"msapplication-config\" content=\"/assets/browserconfig.xml\">"
+
"<meta name=\"theme-color\" content=\"#ffffff\">"
+
"<!-- end favicons snippet -->"
ant
.
replaceregexp
(
match:
headTag
,
replace:
headTagWithFavicon
,
flags:
'g'
)
{
fileset
(
dir:
"${javadocPath}"
,
includes:
"**/*.html"
)
}
// Remove date metadata that changes every time Javadoc is generated.
def
javadocGeneratedBy
=
"<!-- Generated by javadoc.*?-->\n"
ant
.
replaceregexp
(
match:
javadocGeneratedBy
,
replace:
""
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment