gnucash-htdocs master: Update branch names of API docs and disable future for now

Frank H.Ellenberger fell at code.gnucash.org
Mon Aug 7 01:30:13 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash-htdocs/commit/ad0e9f85 (commit)
	from  https://github.com/Gnucash/gnucash-htdocs/commit/6abc036d (commit)



commit ad0e9f853918bfdd61b7ea60f3e16c4e46084102
Author: Frank H. Ellenberger <frank.h.ellenberger at gmail.com>
Date:   Mon Aug 7 07:29:22 2023 +0200

    Update branch names of API docs and disable future for now

diff --git a/docs.phtml b/docs.phtml
index de60426..d6f542a 100644
--- a/docs.phtml
+++ b/docs.phtml
@@ -442,13 +442,13 @@
     <table class="doctable">
     <tbody>
       <tr class="doctr">
-      <td><a href="https://code.gnucash.org/docs/MAINT">MAINT</a></td><td> |
+      <td><a href=\URL_API_STABLE>>STABLE</a></td><td> |
         <?php echo T_("current bugfix branch");?>
       </td></tr>
-      <tr class="doctr">
-      <td><a href="https://code.gnucash.org/docs/MASTER">MASTER</a></td><td> |
+      <?php /* <tr class="doctr">
+      <td><a href=\URL_API_FUTURE">FUTURE</a></td><td> |
         <?php echo T_("future feature branch");?>
-      </td></tr>
+      </td></tr> */?>
     </tbody>
     </table>
   </li>
diff --git a/externals/global_params.php b/externals/global_params.php
index eaf7a09..4fc3b7e 100644
--- a/externals/global_params.php
+++ b/externals/global_params.php
@@ -80,6 +80,11 @@
 
      // The URLs, we use:
      define("DEFAULT_URL", "https://www.gnucash.org/"); // The main webserver
+     define("SERVER_BUILD", "code.gnucash.org"); // alias The GIMPNet
+     define("URL_BUILD", "https://".\SERVER_BUILD."/");
+     define("URL_DOCS", \URL_BUILD."docs/");
+     define("URL_API_STABLE", \URL_DOCS."STABLE/");
+     define("URL_API_FUTURE", \URL_DOCS."FUTURE/");
      define("SERVER_IRC", "irc.gimp.net"); // alias The GIMPNet
      define("URL_IRC", "irc://".\SERVER_IRC."/gnucash");
      $URL_FLATHUB="https://flathub.org/apps/details/org.gnucash.GnuCash";
diff --git a/externals/menu.phtml b/externals/menu.phtml
index 5d8dc8d..cb5cafb 100644
--- a/externals/menu.phtml
+++ b/externals/menu.phtml
@@ -44,8 +44,8 @@
         <li><a href="https://wiki.gnucash.org/wiki/Contributing_to_GnuCash"><?=T_("How to help")?></a></li>
         <li><?=T_("Source Docs")?>
           <ul>
-            <li><a href="https://code.gnucash.org/docs/MAINT/"><?=T_("current bugfix branch")?></a></li>
-            <li><a href="https://code.gnucash.org/docs/MASTER/"><?=T_("future feature branch")?></a></li>
+            <li><a href=\URL_API_STABLE><?=T_("current bugfix branch")?></a></li>
+            <?php /* <li><a href=\URL_API_FUTURE><?=T_("future feature branch")?></a></li> */?>
           </ul>
         </li>
         <li><a href="https://github.com/Gnucash/"><?= T_("Browse Source Code")?></a></li>



Summary of changes:
 docs.phtml                  | 8 ++++----
 externals/global_params.php | 5 +++++
 externals/menu.phtml        | 4 ++--
 3 files changed, 11 insertions(+), 6 deletions(-)



More information about the gnucash-changes mailing list