From ff53defb4fc0a7a7b0f39d95bd7a90d082d2a355 Mon Sep 17 00:00:00 2001 From: Naomi Black Date: Mon, 19 Oct 2015 00:31:07 +0100 Subject: [PATCH] docs(cheatsheet): updates for the cheatsheet, move to angular min --- public/_includes/_scripts-include.jade | 6 +++--- public/_layout.jade | 2 +- public/docs/ts/latest/guide/cheatsheet.jade | 2 +- public/resources/css/_angular.scss | 10 ++++++++++ public/resources/css/main.scss | 1 + 5 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 public/resources/css/_angular.scss diff --git a/public/_includes/_scripts-include.jade b/public/_includes/_scripts-include.jade index eb857ef883..e32fe80975 100644 --- a/public/_includes/_scripts-include.jade +++ b/public/_includes/_scripts-include.jade @@ -6,9 +6,9 @@ script(src="/resources/js/vendor/lodash.js") -script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.js") -script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.js") -script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-aria.js") +script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js") +script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js") +script(src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-aria.min.js") script(src="https://ajax.googleapis.com/ajax/libs/angular_material/0.8.3/angular-material.min.js") diff --git a/public/_layout.jade b/public/_layout.jade index 93b427cdd4..cfa3adc596 100644 --- a/public/_layout.jade +++ b/public/_layout.jade @@ -1,4 +1,4 @@ -doctype html public "9 of spades" +doctype html public html(lang="en" ng-app="angularIOApp" itemscope itemtype="http://schema.org/Framework") head != partial("/_includes/_head-include") diff --git a/public/docs/ts/latest/guide/cheatsheet.jade b/public/docs/ts/latest/guide/cheatsheet.jade index 18e605c9bb..ba5125bd38 100644 --- a/public/docs/ts/latest/guide/cheatsheet.jade +++ b/public/docs/ts/latest/guide/cheatsheet.jade @@ -16,7 +16,7 @@ article(class="l-content-small grid-fluid docs-content") br br - table(ng-repeat='section in cheatsheet') + table(ng-repeat='section in cheatsheet' ng-cloak) tr th {{section.syntax}} th diff --git a/public/resources/css/_angular.scss b/public/resources/css/_angular.scss new file mode 100644 index 0000000000..8dd35a40d9 --- /dev/null +++ b/public/resources/css/_angular.scss @@ -0,0 +1,10 @@ +/* + * Angular Core Styles (subset) + * + * These styles are usually imported when angular.js script loads, but on angular.io that happens + * too late because of the Jade pre-rendering. + */ + +[ng-cloak] { + display: none !important; +} \ No newline at end of file diff --git a/public/resources/css/main.scss b/public/resources/css/main.scss index 3c050928ed..556fa8ea3c 100644 --- a/public/resources/css/main.scss +++ b/public/resources/css/main.scss @@ -9,6 +9,7 @@ @import 'theme'; @import 'base/reset'; @import 'base/type'; +@import 'angular'; /*