Some of the URLs on the mynewt site are absolute.  This can cause confusion
when working on a local dev instance of the site.  Clicking on a link can
inadvertently take you to http://mynewt.incubator.apache.org/.

Below is a patch to remove the absolute URLs.

Thanks,
-Todd

diff --git a/custom-theme/footer.html b/custom-theme/footer.html
index 1b63c8f..04c7cf5 100644
--- a/custom-theme/footer.html
+++ b/custom-theme/footer.html
@@ -9,10 +9,10 @@
     <div class="copyright-logos">
         <div class="row">
             <div class="col-xs-6 text-right">
-                <img src="{{ site_url }}/img/apache-feather.png"
alt="Apache" title="Apache">
+                <img src="/img/apache-feather.png" alt="Apache"
title="Apache">
             </div>
             <div class="col-xs-6 text-left">
-                <img src="{{ site_url }}/img/apache-logo.png" alt="Apache
Incubator" title="Apache Incubator">
+                <img src="/img/apache-logo.png" alt="Apache Incubator"
title="Apache Incubator">
             </div>
         </div>
     </div>
@@ -23,4 +23,4 @@
             </small>
         </div>
     </div>
-</footer>
\ No newline at end of file
+</footer>
diff --git a/custom-theme/landing.html b/custom-theme/landing.html
index c08c307..c47d3d9 100644
--- a/custom-theme/landing.html
+++ b/custom-theme/landing.html
@@ -8,7 +8,7 @@
                         <h3>{{ config.extra.events['event 1'].title }}</h3>
                         <p>{{ config.extra.events['event 1'].location
}}</p>
                         <p>{{ config.extra.events['event 1'].date }}</p>
-                        <a href="{{ site_url }}/events/">Click here for
more details</a>
+                        <a href="/events/">Click here for more details</a>
                     </div>
                 </div>
             </div>
@@ -35,14 +35,14 @@
                     <div class="column col-md-6 goal text-center">
                         <div class="goal-image">
                             <span class="helper"></span>
-                            <img src="{{ site_url }}/img/folder.png">
+                            <img src="/img/folder.png">
                         </div>
                         <p>Produce a foundational RTOS and embedded
middleware utilities such as boot loaders, file systems, and time-series
data support</p>
                     </div>
                     <div class="column col-md-6 goal text-center">
                         <div class="goal-image">
                             <span class="helper"></span>
-                            <img src="{{ site_url }}/img/watch.png">
+                            <img src="/img/watch.png">
                         </div>
                         <p>Build solid networking stack support for
secure, efficient communications with constrained devices</p>
                     </div>
@@ -51,14 +51,14 @@
                     <div class="column col-md-6 goal text-center">
                         <div class="goal-image">
                             <span class="helper"></span>
-                            <img src="{{ site_url }}/img/01.png">
+                            <img src="/img/01.png">
                         </div>
                         <p>Provide simple image and configuration
management and deep instrumentation for ongoing diagnostics, whether at the
workbench or after mass deployment</p>
                     </div>
                     <div class="column col-md-6 goal text-center">
                         <div class="goal-image">
                             <span class="helper"></span>
-                            <img src="{{ site_url }}/img/performance.png">
+                            <img src="/img/performance.png">
                         </div>
                         <p>Ensure modularity and easy composability to
build an optimized image aligned with the developer’s application
requirements and hardware selection</p>
                     </div>
diff --git a/custom-theme/main-banner.html b/custom-theme/main-banner.html
index 6814e28..62f4cb5 100644
--- a/custom-theme/main-banner.html
+++ b/custom-theme/main-banner.html
@@ -1,8 +1,8 @@
 <div class="row"
     <div class="column col-md-12">
         <div class="main-banner">
-            <img src="{{ site_url }}/img/logo.svg">
+            <img src="/img/logo.svg">
             <h3 class="hidden-xs">modular OS for constrained, embedded
environments</h3>
         </div>
     </div>
-</div>
\ No newline at end of file
+</div>
diff --git a/custom-theme/nav.html b/custom-theme/nav.html
index 3441d4e..0d68725 100644
--- a/custom-theme/nav.html
+++ b/custom-theme/nav.html
@@ -1,6 +1,6 @@
 <div class="navbar navbar-default navbar-fixed-top" role="navigation">
     <div class="logo-container">
-        <img src="{{ site_url }}/img/logo.svg">
+        <img src="/img/logo.svg">
     </div>
     <div class="container-fluid">
         <!-- Collapsed navigation -->
@@ -20,19 +20,19 @@
             <!-- Main navigation -->
             <ul class="nav navbar-nav navbar-right">
                 <li>
-                    <a href="{{ site_url }}/">Home</a>
+                    <a href="/">Home</a>
                 </li>
                 <li>
-                    <a href="{{ site_url }}/documentation/">Docs</a>
+                    <a href="/documentation/">Docs</a>
                 </li>
                 <li>
-                    <a href="{{ site_url }}/download/">Download</a>
+                    <a href="/download/">Download</a>
                 </li>
                 <li>
-                    <a href="{{ site_url }}/community/">Community</a>
+                    <a href="/community/">Community</a>
                 </li>
                 <li>
-                    <a href="{{ site_url }}/events/">Events</a>
+                    <a href="/events/">Events</a>
                 </li>
             </ul>

diff --git a/custom-theme/toc.html b/custom-theme/toc.html
index ad45305..6f688c3 100644
--- a/custom-theme/toc.html
+++ b/custom-theme/toc.html
@@ -1,6 +1,6 @@
 <div class="bs-sidebar hidden-print" role="complementary">
     <div class="sidebar-top">
-        <img class="hidden-xs hidden-sm logo-small" src="{{ site_url
}}/img/logo.svg" alt="MyNewt" title="MyNewt">
+        <img class="hidden-xs hidden-sm logo-small" src="/img/logo.svg"
alt="MyNewt" title="MyNewt">
         <div class="small" role="search">
             <form id ="rtd-search-form" class="wy-form" action="{{
base_url }}/search.html" method="get">
                 <div class="form-group">

Reply via email to