Skip to content

Commit

Permalink
Merge pull request #4855 from jeradrutnam/master
Browse files Browse the repository at this point in the history
Fix some issues in quick-starts
  • Loading branch information
sagara-gunathunga authored Nov 13, 2024
2 parents 0351a01 + ab117ae commit c1ef2f9
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 29 deletions.
16 changes: 8 additions & 8 deletions en/asgardeo/docs/quick-starts/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ what_you_will_learn:
- Display user profile information
prerequisites:
- About 15 minutes
- <a href="{{ config.extra.base_path }}/get-started/create-asgardeo-account/">Asgardeo account</a>
- <a href="{{ base_path }}/get-started/create-asgardeo-account/">Asgardeo account</a>
- Install a JS package manager
- A favorite text editor or IDE
source_code: <a href="https://github.com/asgardeo/asgardeo-auth-react-sdk/tree/main/samples/asgardeo-react-app" target="_blank" class="github-icon">React Vite App Sample</a>
# whats_next:
# - Try out {{product_name}} [complete React guide](https://wso2.com/asgardeo/docs/complete-guides/react/introduction/){:target="_blank"}
# - Try out {{product_name}} user onboarding complete guide for React
# - Read security best practices for React app guide
whats_next:
- Try out <a href="{{ base_path }}/complete-guides/react/introduction/" target="_blank">{{ product_name }} complete React guide</a>
- Try out {{product_name}} user onboarding complete guide for React
- Read security best practices for React app guide
---
## Configure an Application in Asgardeo
## Configure an Application in {{ product_name }}

- Sign into Asgardeo console and navigate to Applications > New Application.
- Sign into {{ product_name }} console and navigate to Applications > New Application.
- Select Single Page Application and complete the wizard popup by providing a suitable name and an authorized redirect URL

- Name - Asgardeo-React
Expand Down Expand Up @@ -169,7 +169,7 @@ Visit your app's homepage at [http://localhost:5173](http://localhost:5173).

!!! Important

You need to create a test user in Asgardeo by following this [guide](https://is.docs.wso2.com/en/latest/guides/users/manage-users/#onboard-single-user){:target="_blank"} to tryout login and logout features.
You need to create a test user in {{ product_name }} by following this [guide]({{ base_path }}/guides/users/manage-users/#onboard-single-user){:target="_blank"} to tryout login and logout features.

## Display logged in user details

Expand Down
8 changes: 4 additions & 4 deletions en/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ extra:
integrations:
- name: Auth React SDK
icon: assets/img/logo/react-logo.svg
description: An SDK to integrate {{ config.extra.product_name }} into React applications
description: An SDK to integrate {{ product_name }} into React applications
documentation_link: get-started/try-your-own-app/react/
download_link: https://github.com/asgardeo/asgardeo-auth-react-sdk/releases/latest/download/asgardeo-react-app.zip
source_link: https://github.com/asgardeo/asgardeo-auth-react-sdk
- name: Auth SPA SDK
icon: assets/img/logo/javascript-logo.svg
description: An SDK to integrate {{ config.extra.product_name }} into single page applications
description: An SDK to integrate {{ product_name }} into single page applications
documentation_link: get-started/try-your-own-app/javascript/
download_link: https://github.com/asgardeo/asgardeo-auth-spa-sdk/releases/latest/download/asgardeo-html-js-app.zip
source_link: https://github.com/asgardeo/asgardeo-auth-spa-sdk
Expand All @@ -128,7 +128,7 @@ extra:
- name: Auth Node SDK
icon: assets/img/logo/expressjs-logo.svg
dark_icon: assets/img/logo/expressjs-logo-dark.svg
description: An SDK to integrate {{ config.extra.product_name }} into JS/TS-based frameworks such as ExpressJS
description: An SDK to integrate {{ product_name }} into JS/TS-based frameworks such as ExpressJS
source_link: https://github.com/asgardeo/asgardeo-auth-node-sdk
- name: Tomcat OIDC Agent
icon: assets/img/logo/java-logo.svg
Expand Down Expand Up @@ -161,7 +161,7 @@ extra:
source_link: https://github.com/openid/AppAuth-iOS
- name: Android Mobile UI SDK
icon: assets/img/logo/android-logo.svg
description: A client SDK to integrate {{ config.extra.product_name }} into Android mobile applications using "app-native authentication"
description: A client SDK to integrate {{ product_name }} into Android mobile applications using "app-native authentication"
documentation_link: https://asgardeo.github.io/mobile-ui-sdks/android/introduction.html
source_link: https://github.com/asgardeo/mobile-ui-sdks/tree/main/android
redoc_theme: '{
Expand Down
16 changes: 8 additions & 8 deletions en/identity-server/7.0.0/docs/quick-starts/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ what_you_will_learn:
- Display user profile information
prerequisites:
- About 15 minutes
- <a href="{{ config.extra.base_path }}/get-started/quick-set-up/">Set-up WSO2 Identity Server</a>
- <a href="{{ base_path }}/get-started/quick-set-up/">Set-up WSO2 Identity Server</a>
- Install a JS package manager
- A favorite text editor or IDE
source_code: <a href="https://github.com/asgardeo/asgardeo-auth-react-sdk/tree/main/samples/asgardeo-react-app" target="_blank" class="github-icon">React Vite App Sample</a>
# whats_next:
# - Try out {{product_name}} [complete React guide](https://is.docs.wso2.com/en/latest/complete-guides/react/introduction/){:target="_blank"}
# - Try out {{product_name}} user onboarding complete guide for React
# - Read security best practices for React app guide
whats_next:
- Try out <a href="{{ base_path }}/complete-guides/react/introduction/" target="_blank">{{ product_name }} complete React guide</a>
- Try out {{product_name}} user onboarding complete guide for React
- Read security best practices for React app guide
---
## Configure an Application in WSO2 Identity Server
## Configure an Application in {{ product_name }}

- Sign into WSO2 Identity Server console and navigate to Applications > New Application.
- Sign into {{ product_name }} console and navigate to Applications > New Application.
- Select Single Page Application and complete the wizard popup by providing a suitable name and an authorized redirect URL

- Name - IS-React
Expand Down Expand Up @@ -176,7 +176,7 @@ Visit your app's homepage at [http://localhost:5173](http://localhost:5173).

!!! Important

You need to create a test user in WSO2 Identity Server by following this [guide](https://wso2.com/asgardeo/docs/guides/users/manage-users/#onboard-a-single-user){:target="_blank"} to tryout login and logout features.
You need to create a test user in {{ product_name }} by following this [guide]({{ base_path }}/guides/users/manage-users/#onboard-single-user){:target="_blank"} to tryout login and logout features.

## Display logged in user details

Expand Down
6 changes: 3 additions & 3 deletions en/theme/material/assets/css/complete-guide.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
display: inline-block;
margin-top: 1px;
margin-right: 10px;
background: var(--md-default-fg-color);
background: var(--md-default-fg-color--light);
color: var(--md-default-bg-color);
font-size: 12px;
border-radius: 50%;
Expand All @@ -60,8 +60,8 @@
top: 1rem;
left: 24px;
width: 0;
height: calc(100% - 5px);
border-left: 1px solid var(--md-default-fg-color);
height: calc(100% - 11px);
border-left: 1px solid var(--md-default-fg-color--light);
}

.md-nav__item:last-child::before {
Expand Down
4 changes: 2 additions & 2 deletions en/theme/material/assets/css/quick-start.css
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ ul.tick-list > li:before {
[data-md-component='toc'] .md-nav__link::before {
content: '';
position: absolute;
top: .5rem;
top: .8rem;
left: 0;
width: 0;
height: calc(100% - 5px);
height: calc(100% - 13px);
border-left: 1px solid var(--md-default-fg-color);
}

Expand Down
2 changes: 1 addition & 1 deletion en/theme/material/templates/integrations.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
{% endif %}
<p class="integration-card-header">{{ integration.name }}</p>
{% set description = integration.description %}
{% set description = description.replace('{{ config.extra.product_name }}', config.extra.product_name) %}
{% set description = description.replace('{{ product_name }}', config.extra.product_name).replace('{{product_name}}', config.extra.product_name) %}
<p class="integration-card-description">{{ description }}</p>
<div class="integration-card-source-links">
{% if integration.documentation_link %}
Expand Down
9 changes: 6 additions & 3 deletions en/theme/material/templates/quick-start.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ <h1 id="{{ page.meta.heading | lower | replace(' ', '-') | replace('/', '-') }}"
<h4 id="what-you-will-learn">What You Will Learn</h4>
<ul class="tick-list">
{% for item in page.meta.what_you_will_learn %}
{% set item = item.replace('{{ config.extra.base_path }}', config.extra.base_path) %}
{% set item = item.replace('{{ base_path }}', config.extra.base_path).replace('{{base_path}}', config.extra.base_path) %}
{% set item = item.replace('{{ product_name }}', config.extra.product_name).replace('{{product_name}}', config.extra.product_name) %}
<li>{{ item | safe }}</li>
{% endfor %}
</ul>
Expand All @@ -51,7 +52,8 @@ <h4>Prerequisites</h4>
Before you start, ensure you have the following:
<ul>
{% for item in page.meta.prerequisites %}
{% set item = item.replace('{{ config.extra.base_path }}', config.extra.base_path) %}
{% set item = item.replace('{{ base_path }}', config.extra.base_path).replace('{{base_path}}', config.extra.base_path) %}
{% set item = item.replace('{{ product_name }}', config.extra.product_name).replace('{{product_name}}', config.extra.product_name) %}
<li>{{ item | safe }}</li>
{% endfor %}
</ul>
Expand Down Expand Up @@ -79,7 +81,8 @@ <h4>Example Source Code</h4>
<h2>What's Next?</h2>
<ul>
{% for item in page.meta.whats_next %}
{% set item = item.replace('{{ config.extra.base_path }}', config.extra.base_path) %}
{% set item = item.replace('{{ base_path }}', config.extra.base_path).replace('{{base_path}}', config.extra.base_path) %}
{% set item = item.replace('{{ product_name }}', config.extra.product_name).replace('{{product_name}}', config.extra.product_name) %}
<li>{{ item | safe }}</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit c1ef2f9

Please sign in to comment.