lucperkins closed pull request #2825: Fix URL issues associated with Hugo 
upgrade
URL: https://github.com/apache/incubator-heron/pull/2825
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/website/content/docs/operators/deployment/index.md 
b/website/content/docs/operators/deployment/_index.md
similarity index 100%
rename from website/content/docs/operators/deployment/index.md
rename to website/content/docs/operators/deployment/_index.md
diff --git a/website/content/docs/operators/deployment/uploaders/index.md 
b/website/content/docs/operators/deployment/uploaders/_index.md
similarity index 100%
rename from website/content/docs/operators/deployment/uploaders/index.md
rename to website/content/docs/operators/deployment/uploaders/_index.md
diff --git a/website/content/docs/operators/observability/index.md 
b/website/content/docs/operators/observability/_index.md
similarity index 100%
rename from website/content/docs/operators/observability/index.md
rename to website/content/docs/operators/observability/_index.md
diff --git a/website/layouts/docs/list.ace b/website/layouts/docs/list.ace
new file mode 100644
index 0000000000..64d3206707
--- /dev/null
+++ b/website/layouts/docs/list.ace
@@ -0,0 +1,33 @@
+{{- $jsFilename := cond (eq (getenv "ENV") "development") (index 
.Site.Data.assetHashes "app.js") "app.js" }}
+= doctype html
+html lang={{.Site.LanguageCode}}
+  head
+    {{partial "meta.html" .}}
+    {{partial "docs/page-meta.html" .}}
+    title {{.Site.Title}} Documentation - {{.Title}}
+    {{partial "css.includes.html" .}}
+    = javascript
+      var shiftWindow = function() { scrollBy(0, -100) };
+      window.addEventListener("hashchange", shiftWindow);
+      function load() { if (window.location.hash) shiftWindow(); }
+  body.body
+    main.main
+      {{partial "navbar.html" .}}
+      .hn-main
+        .container
+          .row
+            aside.hn-sidebar.hidden-xs.hidden-sm.col-md-4.col-lg-2
+              {{partial "sidenav.html" .}}
+            
section.hn-docs-main.col-xs-12.col-sm-12.col-md-8.col-lg-10.col-md-offset-4.col-lg-offset-2
+              {{partial "docs/main.html" .}}
+    script src=https://code.jquery.com/jquery-2.2.1.min.js
+    script src=/js/bootstrap.js
+    script src=/js/jquery.scrollTo.js
+    script src=/js/{{ $jsFilename }}
+    = javascript
+      $('pre code').each(function() {
+        console.log(this);
+        this.innerHTML = this.innerHTML.replace(/\$\s/g, function(matched) {
+          return `<span class=\"clp\">${matched}</span>`;
+        });
+      });


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to