docs: fix remaining broken links (#2832)

* docs: fix remaining broken links In particular, don’t show the language dropdown for the docs change-log page (since JS and Dart don’t have a change log). Together with #2830, this fixes #2150

* ignore invalid link from about bios
This commit is contained in:
Patrice Chalin 2016-11-18 21:24:35 -08:00 committed by Ward Bell
parent b3c65a9a93
commit 2026e5026d
3 changed files with 16 additions and 14 deletions

View File

@ -793,7 +793,9 @@ gulp.task('link-checker', function(done) {
'resources/%7B%7Bresource.url%7D%7D', 'resources/%7B%7Bresource.url%7D%7D',
// API docs have links directly into GitHub repo sources; these can // API docs have links directly into GitHub repo sources; these can
// quickly become invalid, so ignore them for now: // quickly become invalid, so ignore them for now:
'*/angular/tree/*' '*/angular/tree/*',
// harp.json "bios" for "Ryan Schmukler", URL isn't valid:
'http://slingingcode.com'
]; ];
var blcOptions = { requestMethod: method, excludedKeywords: exclude}; var blcOptions = { requestMethod: method, excludedKeywords: exclude};
return linkChecker({ blcOptions: blcOptions }); return linkChecker({ blcOptions: blcOptions });

View File

@ -61,16 +61,16 @@ if language == 'dart'
else else
- var title = 'Angular ' + version + ' for Dart' - var title = 'Angular ' + version + ' for Dart'
if current.path[4] !== 'change-log'
//- DROPDOWN BUTTON
nav.dropdown
button(aria-label="Select a version of Angular" md-button class="dropdown-button" ng-click="appCtrl.toggleVersionMenu($event)") #{title} <span class="icon icon-arrow-drop-down"></span>
div(class="overlay ng-hide" ng-click="appCtrl.toggleVersionMenu($event)" ng-show="appCtrl.showMenu")
<!-- DROPDOWN BUTTON --> //- DROPDOWN MENU
nav.dropdown ul(class="dropdown-menu" ng-class="appCtrl.showMenu ? 'is-visible' : ''")
button(aria-label="Select a version of Angular" md-button class="dropdown-button" ng-click="appCtrl.toggleVersionMenu($event)") #{title} <span class="icon icon-arrow-drop-down"></span> mixin tree(public.docs.ts, "/docs/ts", "Angular for TypeScript")
div(class="overlay ng-hide" ng-click="appCtrl.toggleVersionMenu($event)" ng-show="appCtrl.showMenu") mixin tree(public.docs.js, "/docs/js", "Angular for JavaScript")
//- Disable cross-language link for API entry pages (but keep for top API search page):
<!-- DROPDOWN MENU --> if ! (current.path[3] === 'api' && public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]])
ul(class="dropdown-menu" ng-class="appCtrl.showMenu ? 'is-visible' : ''") mixin tree(public.docs.dart, "/docs/dart", "Angular for Dart")
mixin tree(public.docs.ts, "/docs/ts", "Angular for TypeScript")
mixin tree(public.docs.js, "/docs/js", "Angular for JavaScript")
//- Disable cross-language link for API entry pages (but keep for top API search page):
if ! (current.path[3] === 'api' && public.docs[current.path[1]][current.path[2]][current.path[3]][current.path[4]])
mixin tree(public.docs.dart, "/docs/dart", "Angular for Dart")

View File

@ -282,7 +282,7 @@ code-example(format="").
Create a `styles.css` file in the *#{_indexHtmlDir}* folder and start styling, perhaps with the minimal Create a `styles.css` file in the *#{_indexHtmlDir}* folder and start styling, perhaps with the minimal
styles shown below. For the full set of master styles used by the documentation samples, styles shown below. For the full set of master styles used by the documentation samples,
see [styles.css](https://github.com/angular/angular.io/blob/master/public/docs/_examples/styles.css). see [styles.css](https://github.com/angular/angular.io/blob/master/public/docs/_examples/_boilerplate/styles.css).
+makeExample('quickstart/js/styles.1.css', null, 'styles.css')(format=".") +makeExample('quickstart/js/styles.1.css', null, 'styles.css')(format=".")
.l-main-section .l-main-section