Skip to content

Commit

Permalink
Fix some style issues in quick start docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeradrutnam committed Dec 5, 2024
1 parent 2fbe463 commit 1cf2105
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 66 deletions.
39 changes: 6 additions & 33 deletions en/asgardeo/docs/quick-starts/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,74 +42,54 @@ prerequisites:

## Create an Angular app

Create an Angular app using Angular CLI.


Create an Angular app using Angular CLI.

``` bash

ng new asgardeo-angular
ng new asgardeo-angular
```

!!! tip "Tip"
To run the command above, you need to have Angular CLI installed. You can install it using the following command.

=== "npm"

``` bash

npm install -g @angular/cli@17

npm install -g @angular/cli@17
```
=== "yarn"

``` bash

yarn global add @angular/cli@17

yarn global add @angular/cli@17
```

=== "pnpm"

``` bash

pnpm add -g @angular/cli@17
pnpm add -g @angular/cli@17
```



## Install angular-oauth2-oidc

The [Angular OAuth2 OIDC SDK](https://www.npmjs.com/package/angular-oauth2-oidc){:target="_blank"} is a production-ready OIDC SDK that simplifies integrating {{product_name}} into your Angular applications. To get started, simply add the Angular OAuth2 OIDC SDK to the project. Make sure to stop the dev server started in the previous step.

=== "npm"

``` bash

npm install angular-oauth2-oidc

```

=== "yarn"

``` bash

yarn add angular-oauth2-oidc

```

=== "pnpm"

``` bash

pnpm add angular-oauth2-oidc

```

 
 
 

## Configure `AuthConfig` in your app

The `AuthConfig` object holds the configuration necessary for connecting your app to {{product_name}}.
Expand Down Expand Up @@ -160,7 +140,6 @@ export const appConfig: ApplicationConfig = {
]
};


```

!!! Important
Expand Down Expand Up @@ -219,10 +198,6 @@ Next, replace the existing content of the `app.component.html` file with followi

```





Visit your app's homepage at [http://localhost:4200](http://localhost:4200).

!!! Important
Expand Down Expand Up @@ -257,5 +232,3 @@ Modify the `app.component.html` file with the following code.
<button *ngIf="isAuthorized" (click)="logout()">Logout</button>

```


38 changes: 5 additions & 33 deletions en/identity-server/7.0.0/docs/quick-starts/angular.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,75 +42,54 @@ prerequisites:

## Create an Angular app

Create an Angular app using Angular CLI.



Create an Angular app using Angular CLI.

``` bash

ng new wso2is-angular
ng new wso2is-angular
```

!!! tip "Tip"
To run the command above, you need to have Angular CLI installed. You can install it using the following command.
=== "npm"

``` bash

npm install -g @angular/cli@17

npm install -g @angular/cli@17
```
=== "yarn"

``` bash

yarn global add @angular/cli@17

yarn global add @angular/cli@17
```

=== "pnpm"

``` bash

pnpm add -g @angular/cli@17
pnpm add -g @angular/cli@17
```



## Install angular-oauth2-oidc

The [Angular OAuth2 OIDC SDK](https://www.npmjs.com/package/angular-oauth2-oidc){:target="_blank"} is a production-ready OIDC SDK that simplifies integrating {{product_name}} into your Angular applications. To get started, simply add the Angular OAuth2 OIDC SDK to the project. Make sure to stop the dev server started in the previous step.

=== "npm"

``` bash

npm install angular-oauth2-oidc

```

=== "yarn"

``` bash

yarn add angular-oauth2-oidc

```

=== "pnpm"

``` bash

pnpm add angular-oauth2-oidc

```

&nbsp;
&nbsp;
&nbsp;

## Configure `AuthConfig` in your app

The `AuthConfig` object holds the configuration necessary for connecting your app to {{product_name}}.
Expand Down Expand Up @@ -161,7 +140,6 @@ export const appConfig: ApplicationConfig = {
]
};


```

!!! Important
Expand Down Expand Up @@ -220,10 +198,6 @@ Next, replace the existing content of the `app.component.html` file with followi

```





Visit your app's homepage at [http://localhost:4200](http://localhost:4200).

!!! Important
Expand Down Expand Up @@ -258,5 +232,3 @@ Modify the `app.component.html` file with the following code.
<button *ngIf="isAuthorized" (click)="logout()">Logout</button>

```


1 change: 1 addition & 0 deletions en/theme/material/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
border-top-left-radius: var(--md-code-block-radius);
border-top-right-radius: var(--md-code-block-radius);
background-color: var(--md-code-tab-bg-color);
color: var(--md-code-fg-color);
}

.highlighttable .linenos {
Expand Down

0 comments on commit 1cf2105

Please sign in to comment.