Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions en/developer-docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ site_name: "Choreo Documentation | AI-Native Internal Developer Platform"
site_description: Choreo Explore Choreo documentation to build, deploy, and manage cloud-native apps effortlessly. Whether you're a platform engineer or app developer, Choreo simplifies infrastructure automation and streamlines delivery with an AI-native internal developer platform.
site_author: WSO2
site_url: https://wso2.com/choreo/docs
site_dir: site/developer
site_dir: site/development

# Repository
repo_name: wso2/docs-choreo-dev
Expand Down Expand Up @@ -463,8 +463,8 @@ extra:
provider: mike
# Perspective dropdown configurations
show_perspective_dropdown: true
developer_docs_path: /choreo/docs/developer/
pe_docs_path: /choreo/docs/platform-engineer/
developer_docs_path: /choreo/docs/development/
pe_docs_path: /choreo/docs/platform-operations/
#site_version: 1.0.0
#base_path: http://localhost:8000

6 changes: 3 additions & 3 deletions en/pe-docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ site_name: "Choreo Documentation | AI-Native Internal Developer Platform"
site_description: Choreo Explore Choreo documentation to build, deploy, and manage cloud-native apps effortlessly. Whether you're a platform engineer or app developer, Choreo simplifies infrastructure automation and streamlines delivery with an AI-native internal developer platform.
site_author: WSO2
site_url: https://wso2.com/choreo/docs
site_dir: site/platform-engineer
site_dir: site/platform-operations

# Repository
repo_name: wso2/docs-choreo-dev
Expand Down Expand Up @@ -251,8 +251,8 @@ extra:
provider: mike
# Perspective dropdown configurations
show_perspective_dropdown: true
developer_docs_path: /choreo/docs/developer/
pe_docs_path: /choreo/docs/platform-engineer/
developer_docs_path: /choreo/docs/development/
pe_docs_path: /choreo/docs/platform-operations/
#site_version: 1.0.0
#base_path: http://localhost:8000

16 changes: 8 additions & 8 deletions en/theme/material/partials/perspective-selector.html
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
{% if config.extra.show_perspective_dropdown %}
<div class="md-dropdown">
<!-- Get docs path from config -->
{% set pe_path = config.pe_docs_path | d('/choreo/docs/platform-engineer') %}
{% set pe_path = config.pe_docs_path | d('/choreo/docs/platform-operations') %}
<!-- Inline script to set the button text based only on current URL path -->
<script>
(function() {
try {
var currentPath = window.location.pathname;
var selectedRole = "Developer"; // Default role
var selectedRole = "Development"; // Default role

// Use the PE path from config
var pePath = "{{ pe_path }}";

// If we're on the platform engineer path, select that role
// If we're on the platform operations path, select that role
if (currentPath.includes(pePath)) {
selectedRole = "Platform Engineer";
selectedRole = "Platform Operations";
}
// Set the button text based on the current URL path
document.write('<button class="md-dropdown__button">' + selectedRole + '</button>');
} catch (e) {
document.write('<button class="md-dropdown__button">Developer</button>');
document.write('<button class="md-dropdown__button">Development</button>');
}
})();
</script>
<noscript>
<button class="md-dropdown__button">Developer</button>
<button class="md-dropdown__button">Development</button>
</noscript>
<div class="md-dropdown__menu">
<a href="{{ config.extra.developer_docs_path | d('/choreo/docs/developer') }}" class="md-dropdown__item">Developer</a>
<a href="{{ config.extra.pe_docs_path | d('/choreo/docs/platform-engineer') }}" class="md-dropdown__item">Platform Engineer</a>
<a href="{{ config.extra.developer_docs_path | d('/choreo/docs/development') }}" class="md-dropdown__item">Development</a>
<a href="{{ config.extra.pe_docs_path | d('/choreo/docs/platform-operations') }}" class="md-dropdown__item">Platform Operations</a>
</div>
</div>
{% endif %}
Expand Down