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,13 +61,13 @@ 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 --> //- DROPDOWN BUTTON
nav.dropdown 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> 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") div(class="overlay ng-hide" ng-click="appCtrl.toggleVersionMenu($event)" ng-show="appCtrl.showMenu")
<!-- DROPDOWN MENU --> //- DROPDOWN MENU
ul(class="dropdown-menu" ng-class="appCtrl.showMenu ? 'is-visible' : ''") ul(class="dropdown-menu" ng-class="appCtrl.showMenu ? 'is-visible' : ''")
mixin tree(public.docs.ts, "/docs/ts", "Angular for TypeScript") mixin tree(public.docs.ts, "/docs/ts", "Angular for TypeScript")
mixin tree(public.docs.js, "/docs/js", "Angular for JavaScript") mixin tree(public.docs.js, "/docs/js", "Angular for JavaScript")

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