From d8307c9850df0d0b6547fbf04a8bd679311958d8 Mon Sep 17 00:00:00 2001 From: Sergey Andrievskiy Date: Wed, 17 Oct 2018 15:22:13 +0300 Subject: [PATCH] fix(docs): fix dead links and code examples (#905) --- docs/articles/auth-guard.md | 2 +- docs/articles/auth-install.md | 2 +- docs/articles/concept-theme-system.md | 2 +- docs/articles/enabling-theme-system.md | 7 +++---- docs/articles/security-install.md | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/articles/auth-guard.md b/docs/articles/auth-guard.md index ace11ffce5..9c40770cbd 100644 --- a/docs/articles/auth-guard.md +++ b/docs/articles/auth-guard.md @@ -105,7 +105,7 @@ Let's modify our guard a bit to reflect this logic: import { Injectable } from '@angular/core'; import { CanActivate, Router } from '@angular/router'; import { NbAuthService } from '@nebular/auth'; -import { tap } from 'rxjs/operators/tap'; +import { tap } from 'rxjs/operators'; @Injectable() export class AuthGuard implements CanActivate { diff --git a/docs/articles/auth-install.md b/docs/articles/auth-install.md index 5c5e24d4ec..3e746e3bb9 100644 --- a/docs/articles/auth-install.md +++ b/docs/articles/auth-install.md @@ -109,7 +109,7 @@ export const routes: Routes = [ ## Enable Styles -Last but not least - install the component styles into your styles.scss ([more details](docs/guides/enabling-theme-system)): +Last but not least - install the component styles into your styles.scss ([more details](docs/guides/enable-theme-system)): ```scss @import '~@nebular/auth/styles/all'; // or @import '~@nebular/auth/styles/{theme-name}'; diff --git a/docs/articles/concept-theme-system.md b/docs/articles/concept-theme-system.md index f02232e9f8..8dc934671d 100644 --- a/docs/articles/concept-theme-system.md +++ b/docs/articles/concept-theme-system.md @@ -76,7 +76,7 @@ List of component style variables is specified in the component documentation, f ## Variables Usage -Now, if you want to use the variables in your custom style files, all you need to do (of course, after the [successful setup of the Theme System](docs/guides/enabling-theme-system) is to call `nb-theme(var-name)` function: +Now, if you want to use the variables in your custom style files, all you need to do (of course, after the [successful setup of the Theme System](docs/guides/enable-theme-system) is to call `nb-theme(var-name)` function: ```scss @import '../../../@theme/styles/themes'; diff --git a/docs/articles/enabling-theme-system.md b/docs/articles/enabling-theme-system.md index b2afb10424..6170ab1dd1 100644 --- a/docs/articles/enabling-theme-system.md +++ b/docs/articles/enabling-theme-system.md @@ -13,11 +13,10 @@ 1) Then you just need to include a CSS file of a theme you want to use into your `.angular-cli.json` file like this: -```scss +```json5 "styles": [ - "../node_modules/@nebular/theme/styles/prebuilt/cosmic.css", // or default.css - ], - + "../node_modules/@nebular/theme/styles/prebuilt/cosmic.css", // or default.css +], ``` And that is all. In the future, if you need any of the advanced features - you can easily start using them by going through the Normal/Advanced setup steps. diff --git a/docs/articles/security-install.md b/docs/articles/security-install.md index ad583101ad..36b7aac79b 100644 --- a/docs/articles/security-install.md +++ b/docs/articles/security-install.md @@ -17,7 +17,7 @@ npm i @nebular/security ## Import the module: ```ts -import { NbSecurityModule } from '@nebular/security +import { NbSecurityModule } from '@nebular/security'; ```
## Register it