Commit Graph

11 Commits

Author SHA1 Message Date
Martin Staffa cd700f65f4 chore(docs.angularjs.org): only deploy production index.html as entry file
Previously, we rewrote index.html to index-production.html, but Firebase ignored
this, probably because an exact file match always takes priority. This lead
to the problem thatthe root - angularjs.org - didn't include the angular.js source
files from the CDN
2018-03-01 16:57:56 +01:00
Martin Staffa f36f25f17a chore(docs.angularjs.org): allow crawling of examples, don't deploy e2e test files 2018-03-01 16:57:55 +01:00
Martin Staffa 2953e47da4 chore(docs.angularjs.org): allow crawling but not indexing of partials/
The sitemap.xml might also prevent the indexing, as the partials are not
listed.

Related to #16432 
Closes #16457
2018-02-15 11:54:14 +01:00
George Kalpakas 06f5069813 chore(docs.angular.js): do not break when deploying
Follow-up to #16451.

Closes #16452
2018-02-12 23:21:23 +02:00
Martin Staffa 8681fce27b chore(docs.angularjs.org): serve snapshots for googlebot
This commit restores serving the plain partials (content) when a docs
page is accessed with ?_escaped_fragment_=.
The Google Ajax Crawler accesses these urls when the page has
`<meta type="fragment" content="!">` is set.

During the migration to Firebase, this was lost, which resulted in Google
dropping the docs almost completely from the index.

We are using a Firebase cloud function to serve the partials. Since
we cannot access the static hosted files from the function, we have to
deploy them as part of the function directory instead, from which they
can be read.

Related to #16432
Related to #16417
2018-02-12 16:09:54 +01:00
Martin Staffa 5a022524a3 chore(deploy): rename deploy folders 2018-02-12 16:09:52 +01:00
Martin Staffa 9509feba99 chore(docs.angularjs.org): fix incorrect rewrites 2018-02-05 22:18:03 +01:00
Martin Staffa b0b3a2b6cb chore(docs.angularjs.org): serve xml files (sitemap) 2018-02-05 19:26:19 +01:00
Martin Staffa 1cdc72f3a5 chore(docs.angularjs.org): add robots.txt 2018-02-02 12:31:49 +01:00
Martin Staffa 7a1270cf4b chore(errors.angularjs.org): add project with redirects to docs.angularjs.org 2018-01-22 16:00:39 +01:00
Martin Staffa 559e93c7ce chore(docs.angularjs.org): move project in separate folder
Firebase projects should be in their own folder, because the firebase-tools
search for projects in the parent folder, which makes it more difficult to create
new projects.
2018-01-22 16:00:38 +01:00