This is an automated email from the ASF dual-hosted git repository.

dlmarion pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 939f318a1 Modify config to include _docs-4 in generated site (#458)
939f318a1 is described below

commit 939f318a1f831bc9260f6a0b8859c8b8fb718bb7
Author: Dave Marion <dlmar...@apache.org>
AuthorDate: Tue Apr 22 16:50:43 2025 -0400

    Modify config to include _docs-4 in generated site (#458)
    
    These changes will include the _docs-4 directory in the
    generated site at `docs/4.x`. All pages will have a warning
    at the top to tell the reader that these are draft docs
    for an upcoming 4.0 release. These pages are not listed
    in the `Documentation` drop down menu.
---
 _config.yml                           | 17 ++++++++++
 _docs-4/getting-started/quickstart.md |  2 +-
 _layouts/docs-4.html                  | 58 +++++++++++++++++++++++++++++++++++
 3 files changed, 76 insertions(+), 1 deletion(-)

diff --git a/_config.yml b/_config.yml
index 7aa94713c..f228f4d96 100644
--- a/_config.yml
+++ b/_config.yml
@@ -27,6 +27,9 @@ collections:
   docs-2:
     output: true
     permalink: "/docs/2.x/:path"
+  docs-4:
+    output: true
+    permalink: "/docs/4.x/:path"
 
 defaults:
   -
@@ -78,5 +81,19 @@ defaults:
       javadoc_base: "https://www.javadoc.io/static/org.apache.accumulo";
       skiph1fortitle: "true"
       gh_branch: "main"
+  -
+    scope:
+      path: ""
+      type: "docs-4"
+    values:
+      layout: "docs-4"
+      title_prefix: "Accumulo Documentation - "
+      version: "4.x"
+      latest_release: "4.0.0-SNAPSHOT"
+      javadoc_version: "4.0.0-SNAPSHOT"
+      docs_baseurl: "/docs/4.x"
+      javadoc_base: "https://www.javadoc.io/static/org.apache.accumulo";
+      skiph1fortitle: "true"
+      gh_branch: "main"
 
 plugins: [jekyll-redirect-from]
diff --git a/_docs-4/getting-started/quickstart.md 
b/_docs-4/getting-started/quickstart.md
index fb8b24150..ba4bce100 100644
--- a/_docs-4/getting-started/quickstart.md
+++ b/_docs-4/getting-started/quickstart.md
@@ -4,7 +4,7 @@ category: getting-started
 order: 1
 skip_doc_h1: true
 ---
-# User Manual (2.x and 3.x)
+# User Manual (4.x)
 
 Starting with Accumulo 2.0, the user manual now lives on the website as a 
series
 of web pages. Previously, it was one large pdf document that was only generated
diff --git a/_layouts/docs-4.html b/_layouts/docs-4.html
new file mode 100644
index 000000000..2b1439995
--- /dev/null
+++ b/_layouts/docs-4.html
@@ -0,0 +1,58 @@
+---
+layout: default
+skiph1fortitle: true
+---
+
+<div class="alert alert-danger" style="margin-bottom: 0px;" role="alert">
+  This is a <strong>draft</strong> user guide for a future release of Accumulo 
4.0.0!<br>
+</div>
+
+<div class="row">
+  <div class="col-md-3">
+    <div class="accordion sticky-top" id="myAccordion" style="top: 100px;">
+      {% assign mydocs = site.docs-4 | group_by: 'category' %}
+      {% assign categories = 
"getting-started,development,security,configuration,administration,troubleshooting"
 | split: "," %}
+      {% for pcat in categories %}
+        {% for dcat in mydocs %}
+          {% if pcat == dcat.name %}
+            <div class="accordion-item">
+              <div class="accordion-header fs-5 fw-bold" id="heading{{ pcat 
}}">
+                <button class="accordion-button {% if pcat != page.category 
%}collapsed{% endif %}" type="button" data-bs-toggle="collapse" 
data-bs-target="#collapse{{ pcat }}" aria-expanded="{% if pcat == page.category 
%}true{% else %}false{% endif %}" aria-controls="collapse{{ pcat }}">
+                  {{ pcat | capitalize | replace: "-", " " }}
+                </button>
+              </div>
+              <div id="collapse{{pcat}}" class="accordion-collapse collapse{% 
if pcat == page.category %} show{% endif %}" aria-labelledby="heading{{ pcat 
}}" data-bs-parent="#myAccordion">
+                <div class="accordion-body">
+                  {% assign items = dcat.items | sort: 'order' %}
+                  {% for item in items %}
+                    <div class="row{% if page.title == item.title %} 
selected{% endif %}"><a href="{{ item.url }}">{{ item.title }}</a></div>
+                  {% endfor %}
+                </div>
+              </div>
+            </div>
+          {% endif %}
+        {% endfor %}
+      {% endfor %}
+    </div>
+  </div>
+  <div class="col-md-9">
+    {% if page.category %}
+    <p>Accumulo {{ page.version }} Documentation &gt;&gt; {{ page.category | 
capitalize | replace: "-", " " }} &gt;&gt; {{ page.title }}</p>
+    {% endif %}
+    {% unless page.skip_doc_h1 %}
+    <div class="row mt-4">
+      <div class="col-md-12 d-flex justify-content-between">
+        <h1>{{ page.title }}</h1>
+        <a href="https://github.com/apache/accumulo-website/edit/main/{{ 
page.path }}" role="button"><span class="fa-solid fa-pen-to-square"></span> 
<small>Edit this page</small></a>
+      </div>
+    </div>
+    {% endunless %}
+    {{ content }}
+    <div class="row mt-4">
+      <div class="col-md-12 d-flex justify-content-between">
+        <strong>Find documentation for all releases in the <a href="{{ 
site.baseurl }}/docs-archive">archive</strong>
+        <a href="https://github.com/apache/accumulo-website/edit/main/{{ 
page.path }}" role="button"><span class="fa-solid fa-pen-to-square"></span> 
<small>Edit this page</small></a>
+      </div>
+    </div>
+  </div>
+</div>

Reply via email to