Skip to content

Commit d8307c9

Browse files
ygggnnixaa
authored andcommitted
fix(docs): fix dead links and code examples (#905)
1 parent e023aa3 commit d8307c9

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

docs/articles/auth-guard.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ Let's modify our guard a bit to reflect this logic:
105105
import { Injectable } from '@angular/core';
106106
import { CanActivate, Router } from '@angular/router';
107107
import { NbAuthService } from '@nebular/auth';
108-
import { tap } from 'rxjs/operators/tap';
108+
import { tap } from 'rxjs/operators';
109109

110110
@Injectable()
111111
export class AuthGuard implements CanActivate {

docs/articles/auth-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const routes: Routes = [
109109

110110
## Enable Styles
111111

112-
Last but not least - install the component styles into your styles.scss ([more details](docs/guides/enabling-theme-system)):
112+
Last but not least - install the component styles into your styles.scss ([more details](docs/guides/enable-theme-system)):
113113

114114
```scss
115115
@import '~@nebular/auth/styles/all'; // or @import '~@nebular/auth/styles/{theme-name}';

docs/articles/concept-theme-system.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ List of component style variables is specified in the component documentation, f
7676

7777
## Variables Usage
7878

79-
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:
79+
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:
8080

8181
```scss
8282
@import '../../../@theme/styles/themes';

docs/articles/enabling-theme-system.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313

1414
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:
1515

16-
```scss
16+
```json5
1717
"styles": [
18-
"../node_modules/@nebular/theme/styles/prebuilt/cosmic.css", // or default.css
19-
],
20-
18+
"../node_modules/@nebular/theme/styles/prebuilt/cosmic.css", // or default.css
19+
],
2120
```
2221

2322
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.

docs/articles/security-install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ npm i @nebular/security
1717
## Import the module:
1818

1919
```ts
20-
import { NbSecurityModule } from '@nebular/security
20+
import { NbSecurityModule } from '@nebular/security';
2121
```
2222
<hr>
2323
## Register it

0 commit comments

Comments
 (0)