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
a58ea16f
authored
Jan 10, 2020
by
olly
Committed by
Oliver Woodman
Jan 10, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add favicon to javadocs. b/145393567
PiperOrigin-RevId: 289054937
parent
7e5d6deb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
RELEASENOTES.md
javadoc_util.gradle
RELEASENOTES.md
View file @
a58ea16f
...
...
@@ -60,6 +60,7 @@
This issue caused FLAC streams with other bit depths to sound like white noise
on earlier releases, but only when embedded in a non-FLAC container such as
Matroska or MP4.
*
Javadocs: Add favicon for easier identification in browser tabs
### 2.11.1 (2019-12-20) ###
...
...
javadoc_util.gradle
View file @
a58ea16f
...
...
@@ -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