This is an automated email from the ASF dual-hosted git repository.
shanedell pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil-site.git
The following commit(s) were added to refs/heads/main by this push:
new c5fdc5a Display links for html and docx pages for VS Code Extension
documentation, if they exist.
c5fdc5a is described below
commit c5fdc5afa2603bc9b59b5b3a89edf36b5832eb9f
Author: Shane Dell <[email protected]>
AuthorDate: Tue Dec 20 13:26:14 2022 -0500
Display links for html and docx pages for VS Code Extension documentation,
if they exist.
---
site/_layouts/vscode.html | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/site/_layouts/vscode.html b/site/_layouts/vscode.html
index 462162f..1426fad 100644
--- a/site/_layouts/vscode.html
+++ b/site/_layouts/vscode.html
@@ -12,6 +12,17 @@ permalink: /vscode/release-notes-:title
{% endunless %}
<div class="row">
+ {% capture docx_path
%}/docs/vscode/{{page.title}}/Apache-Daffodil-Extension-for-Visual-Studio-Code-{{page.title}}.docx{%
endcapture %}
+ {% capture html_path
%}/docs/vscode/{{page.title}}/Apache-Daffodil-Extension-for-Visual-Studio-Code-{{page.title}}.html{%
endcapture %}
+
+ {% assign exists = site.static_files | where: "path", docx_path %}
+ {% if exists.size != 0 %}
+ <div class="col-md-3 text-right" style="float: right; z-index: 3;">
+ <h3>Documentation</h3>
+ <a href="{{ html_path }}">HTML</a> | <a href="{{ docx_path }}">DOCX</a>
+ </div>
+ {% endif %}
+
<div class="col-md-12">
<h3>Get Release</h3>
<ul class="nav nav-tabs">