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
ac0753b4
Commit
ac0753b4
authored
8 years ago
by
Jason Simmons
Committed by
GitHub
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script for merging javadoc into the dartdoc output (#7935)
parent
708909fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
0 deletions
+44
-0
docs.sh
dev/bots/docs.sh
+1
-0
.gitignore
dev/tools/.gitignore
+1
-0
javadoc.dart
dev/tools/javadoc.dart
+40
-0
pubspec.yaml
dev/tools/pubspec.yaml
+2
-0
No files found.
dev/bots/docs.sh
View file @
ac0753b4
...
...
@@ -8,6 +8,7 @@ pub global activate dartdoc 0.9.11
# a custom index.html, placing everything into dev/docs/doc
(
cd
dev/tools
;
pub get
)
FLUTTER_ROOT
=
$PWD
dart dev/tools/dartdoc.dart
FLUTTER_ROOT
=
$PWD
dart dev/tools/javadoc.dart
# Ensure google webmaster tools can verify our site.
cp
dev/docs/google2ed1af765c529f57.html dev/docs/doc
...
...
This diff is collapsed.
Click to expand it.
dev/tools/.gitignore
View file @
ac0753b4
.packages
.pub/
pubspec.lock
packages
This diff is collapsed.
Click to expand it.
dev/tools/javadoc.dart
0 → 100644
View file @
ac0753b4
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import
'dart:async'
;
import
'dart:io'
;
import
'package:archive/archive.dart'
;
import
'package:http/http.dart'
as
http
;
const
String
kDocRoot
=
'dev/docs/doc'
;
/// This script downloads an archive of Javadoc for the engine from the
/// artifact store and extracts it to the location used for Dartdoc.
Future
<
Null
>
main
(
List
<
String
>
args
)
async
{
String
engineVersion
=
new
File
(
'bin/internal/engine.version'
).
readAsStringSync
().
trim
();
String
url
=
'https://storage.googleapis.com/flutter_infra/flutter/
$engineVersion
/android-javadoc.zip'
;
http
.
Response
response
=
await
http
.
get
(
url
);
Archive
archive
=
new
ZipDecoder
().
decodeBytes
(
response
.
bodyBytes
);
Directory
output
=
new
Directory
(
'
$kDocRoot
/javadoc'
);
print
(
'Extracing javadoc to
${output.path}
'
);
output
.
createSync
(
recursive:
true
);
for
(
ArchiveFile
af
in
archive
)
{
if
(
af
.
isFile
)
{
File
file
=
new
File
(
'
${output.path}
/
${af.name}
'
);
file
.
createSync
(
recursive:
true
);
file
.
writeAsBytesSync
(
af
.
content
);
}
}
File
testFile
=
new
File
(
'
${output.path}
/io/flutter/view/FlutterView.html'
);
if
(!
testFile
.
existsSync
())
{
print
(
'Expected file
${testFile.path}
not found'
);
exit
(
1
);
}
}
This diff is collapsed.
Click to expand it.
dev/tools/pubspec.yaml
View file @
ac0753b4
...
...
@@ -2,5 +2,7 @@ name: dev_tools
description
:
Various repository development tools for flutter.
dependencies
:
archive
:
^1.0.20
args
:
^0.13.4
http
:
^0.11.3
path
:
^1.4.0
This diff is collapsed.
Click to expand it.
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