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
fbcd664e
Unverified
Commit
fbcd664e
authored
Nov 07, 2018
by
Greg Spencer
Committed by
GitHub
Nov 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generate a robots.txt when generating docs for API site. (#24059)
parent
9abce96e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
docs.sh
dev/bots/docs.sh
+15
-14
No files found.
dev/bots/docs.sh
View file @
fbcd664e
...
...
@@ -78,21 +78,22 @@ cp "$FLUTTER_ROOT/dev/docs/google2ed1af765c529f57.html" "$FLUTTER_ROOT/dev/docs/
# Upload new API docs when running on Cirrus
if
[[
-n
"
$CIRRUS_CI
"
&&
-z
"
$CIRRUS_PR
"
]]
;
then
echo
"This is not a pull request; considering whether to upload docs... (branch=
$CIRRUS_BRANCH
)"
if
[[
"
$CIRRUS_BRANCH
"
==
"master"
||
"
$CIRRUS_BRANCH
"
==
"beta"
]]
;
then
if
[[
"
$CIRRUS_BRANCH
"
==
"master"
]]
;
then
echo
"Updating master docs: https://master-docs-flutter-io.firebaseapp.com/"
# Disable search indexing on the master staging site so searches get only
# the beta site.
echo
-e
"User-agent: *
\n
Disallow: /"
>
"
$FLUTTER_ROOT
/dev/docs/doc/robots.txt"
export
FIREBASE_TOKEN
=
"
$FIREBASE_MASTER_TOKEN
"
deploy 5 master-docs-flutter-io
fi
if
[[
"
$CIRRUS_BRANCH
"
==
"master"
]]
;
then
echo
"Updating
$CIRRUS_BRANCH
docs: https://master-docs-flutter-io.firebaseapp.com/"
# Disable search indexing on the master staging site so searches get only
# the stable site.
echo
-e
"User-agent: *
\n
Disallow: /"
>
"
$FLUTTER_ROOT
/dev/docs/doc/robots.txt"
export
FIREBASE_TOKEN
=
"
$FIREBASE_MASTER_TOKEN
"
deploy 5 master-docs-flutter-io
fi
if
[[
"
$CIRRUS_BRANCH
"
==
"beta"
]]
;
then
echo
"Updating beta docs: https://docs.flutter.io/"
export
FIREBASE_TOKEN
=
"
$FIREBASE_PUBLIC_TOKEN
"
deploy 5 docs-flutter-io
fi
if
[[
"
$CIRRUS_BRANCH
"
==
"stable"
]]
;
then
# Enable search indexing on the master staging site so searches get only
# the stable site.
echo
"Updating
$CIRRUS_BRANCH
docs: https://docs.flutter.io/"
echo
-e
"# All robots welcome!"
>
"
$FLUTTER_ROOT
/dev/docs/doc/robots.txt"
export
FIREBASE_TOKEN
=
"
$FIREBASE_PUBLIC_TOKEN
"
deploy 5 docs-flutter-io
fi
fi
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