Skip to content

Commit

Permalink
Added configuration to enable BioPortal documentation (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
galviset authored Sep 29, 2024
1 parent 7385a0e commit cacf42a
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
9 changes: 9 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ defaults:
atom: "ontology"
atoms: "ontologies"
display_ontoportal_icons: true
-
scope:
path: "docs/users-guide-docs/documentation/bioportal"
type: "pages"
values:
portal: "BioPortal"
atom: "ontology"
atoms: "ontologies"
display_ontoportal_icons: true
-
scope:
path: "docs/users-guide-docs/documentation/agroportal"
Expand Down
2 changes: 1 addition & 1 deletion _includes/documentation_nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>

<div class="ontoportal-tabs" id="ontoportal_tabs">
{% assign portals = 'OntoPortal,EcoPortal,EarthPortal' | split: ',' %}
{% assign portals = 'OntoPortal,BioPortal,EcoPortal,EarthPortal' | split: ',' %}
{% for portal in portals %}
{% capture portal_class %}{{ portal }}{% endcapture %}
{% if page.portal == portal %}
Expand Down
10 changes: 10 additions & 0 deletions _sass/documentation_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
color: $ontoportal-color;
border-bottom: 1px solid #e7e7e7;
}
.ontoportal-tabs > .BioPortal{
color: $bioportal-color;
border-bottom: 1px solid #e7e7e7;
}
.ontoportal-tabs > .AgroPortal{
color: $agroportal-color;
border-bottom: 1px solid #e7e7e7;
Expand All @@ -35,6 +39,9 @@
.ontoportal-tabs > .OntoPortal svg path{
fill: $ontoportal-color;
}
.ontoportal-tabs > .BioPortal svg path{
fill: $bioportal-color;
}
.ontoportal-tabs > .AgroPortal svg path{
fill: $agroportal-color;
}
Expand All @@ -54,6 +61,9 @@
.ontoportal-tabs > .active.OntoPortal{
border-bottom: 2px solid $ontoportal-color;
}
.ontoportal-tabs > .active.BioPortal{
border-bottom: 2px solid $bioportal-color;
}
.ontoportal-tabs > .active.AgroPortal{
border-bottom: 2px solid $agroportal-color;
}
Expand Down
1 change: 1 addition & 0 deletions _sass/support/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ $media-queries: (

//portals colors
$ontoportal-color: #37AEA0;
$bioportal-color: #234979;
$agroportal-color: #3CB371;
$ecoportal-color: #0F4E8A;
$earthportal-color: #09218B;
8 changes: 8 additions & 0 deletions docs/users-guide-docs/documentation/bioportal/about.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
layout: default
title: About
permalink: user_guide/BioPortal
parent: Users guide
nav_order: 1
---

0 comments on commit cacf42a

Please sign in to comment.