Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
00c4c7b0
Commit
00c4c7b0
authored
Oct 13, 2017
by
Devon Carew
Committed by
GitHub
Oct 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
de-emphasize the footer of the generated docs (#12514)
parent
4ffa801c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
styles.html
dev/docs/styles.html
+11
-2
dartdoc.dart
dev/tools/dartdoc.dart
+5
-2
No files found.
dev/docs/styles.html
View file @
00c4c7b0
...
...
@@ -134,8 +134,17 @@
}
/* Attempt to de-emphasise the source code section */
section
.summary.source-code
{
opacity
:
0.3
;
}
section
.summary.source-code
:hover
{
opacity
:
0.8
;
}
section
.summary.source-code
{
opacity
:
0.3
;
}
section
.summary.source-code
:hover
{
opacity
:
0.8
;
}
footer
{
font-size
:
13px
;
padding
:
12px
20px
;
}
</style>
<!-- The following rules are from http://google.github.io/material-design-icons/ -->
...
...
dev/tools/dartdoc.dart
View file @
00c4c7b0
...
...
@@ -139,14 +139,17 @@ dependencies:
}
void
createFooter
(
String
footerPath
)
{
const
int
kGitRevisionLength
=
10
;
final
ProcessResult
gitResult
=
Process
.
runSync
(
'git'
,
<
String
>[
'rev-parse'
,
'HEAD'
]);
final
String
gitHead
=
(
gitResult
.
exitCode
==
0
)
?
gitResult
.
stdout
.
trim
()
:
'unknown'
;
String
gitRevision
=
(
gitResult
.
exitCode
==
0
)
?
gitResult
.
stdout
.
trim
()
:
'unknown'
;
gitRevision
=
gitRevision
.
length
>
kGitRevisionLength
?
gitRevision
.
substring
(
0
,
kGitRevisionLength
)
:
gitRevision
;
final
String
timestamp
=
new
DateFormat
(
'yyyy-MM-dd HH:mm'
).
format
(
new
DateTime
.
now
());
new
File
(
footerPath
).
writeAsStringSync
(
'• </span class="no-break">
$timestamp
<span> '
'• </span class="no-break">
$git
Head
</span>'
'• </span class="no-break">
$git
Revision
</span>'
);
}
...
...
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