From cacf42adfdef9dae6ae03a2903662625834f5d13 Mon Sep 17 00:00:00 2001 From: Guillaume Alviset <44084050+galviset@users.noreply.github.com> Date: Sun, 29 Sep 2024 02:17:49 +0200 Subject: [PATCH] Added configuration to enable BioPortal documentation (#75) --- _config.yml | 9 +++++++++ _includes/documentation_nav.html | 2 +- _sass/documentation_nav.scss | 10 ++++++++++ _sass/support/_variables.scss | 1 + docs/users-guide-docs/documentation/bioportal/about.md | 8 ++++++++ 5 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 docs/users-guide-docs/documentation/bioportal/about.md diff --git a/_config.yml b/_config.yml index a967ba9..3909b79 100644 --- a/_config.yml +++ b/_config.yml @@ -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" diff --git a/_includes/documentation_nav.html b/_includes/documentation_nav.html index 80587c5..231ec7c 100644 --- a/_includes/documentation_nav.html +++ b/_includes/documentation_nav.html @@ -4,7 +4,7 @@
- {% 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 %} diff --git a/_sass/documentation_nav.scss b/_sass/documentation_nav.scss index 1dc77bf..1b52832 100644 --- a/_sass/documentation_nav.scss +++ b/_sass/documentation_nav.scss @@ -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; @@ -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; } @@ -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; } diff --git a/_sass/support/_variables.scss b/_sass/support/_variables.scss index 9828280..62007e9 100644 --- a/_sass/support/_variables.scss +++ b/_sass/support/_variables.scss @@ -131,6 +131,7 @@ $media-queries: ( //portals colors $ontoportal-color: #37AEA0; +$bioportal-color: #234979; $agroportal-color: #3CB371; $ecoportal-color: #0F4E8A; $earthportal-color: #09218B; diff --git a/docs/users-guide-docs/documentation/bioportal/about.md b/docs/users-guide-docs/documentation/bioportal/about.md new file mode 100644 index 0000000..9a5d330 --- /dev/null +++ b/docs/users-guide-docs/documentation/bioportal/about.md @@ -0,0 +1,8 @@ +--- +layout: default +title: About +permalink: user_guide/BioPortal +parent: Users guide +nav_order: 1 +--- +