Merge "Renamed _menu in hint.js to _menuCollection, as it is actually a collection of menus dependent on "action" parameter."
diff --git a/Changes b/Changes
index a391ef3..0175b4f 100755
--- a/Changes
+++ b/Changes
@@ -27,6 +27,7 @@
- Fix navigation behaviour for folded subdirectories.
- Introduce legacy redirects for tutorial links.
- Improve QueryParam response.
+ - Fold all top-level navigation items.
0.42 2021-06-18
- Added GitHub based CI for perl.
diff --git a/dev/scss/sidebar/sidebar.scss b/dev/scss/sidebar/sidebar.scss
index 496f701..01979b4 100644
--- a/dev/scss/sidebar/sidebar.scss
+++ b/dev/scss/sidebar/sidebar.scss
@@ -80,10 +80,10 @@
}
&.folded {
- &.active ul {
+ &.active > ul {
display: block;
}
- ul {
+ > ul {
display: none;
&.active {
display: block !important;
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index 00852a6..52b6e15 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -8,7 +8,7 @@
use List::Util 'none';
# Minor version - may be patched from package.json
-our $VERSION = '0.42';
+our $VERSION = '0.43';
# Supported version of Backend API
our $API_VERSION = '1.0';
diff --git a/templates/doc/navigation.json b/templates/doc/navigation.json
index 690a3a8..d4f04e3 100644
--- a/templates/doc/navigation.json
+++ b/templates/doc/navigation.json
@@ -2,6 +2,7 @@
{
"title": "Query Languages",
"id": "ql",
+ "class": "folded",
"items": [
{
"title": "Cosmas II",
@@ -96,11 +97,13 @@
},
{
"title": "FAQ",
- "id": "faq"
+ "id": "faq",
+ "class": "folded"
},
{
"title": "API",
- "id": "api"
+ "id": "api",
+ "class": "folded"
},
{
"title": "Development",