Skip to content

Commit

Permalink
[ci skip] Autodoc commit for 25d88056f8ebf6e7da5cb29d76327ee35c448672.
Browse files Browse the repository at this point in the history
  • Loading branch information
oscwiag committed Dec 4, 2023
1 parent 07b2a38 commit 9da7c54
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 2 deletions.
2 changes: 2 additions & 0 deletions develop/_sources/customizations.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ This will result in a CSS tag added to all dashboard pages with the path: ``/pub
.. _help_menu_guide:

.. include:: customizations/overriding-partials.inc

Add URLs to Help Menu
---------------------

Expand Down
31 changes: 30 additions & 1 deletion develop/customizations.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
<li class="toctree-l3"><a class="reference internal" href="#custom-css-files">Custom CSS files</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#overriding-pages">Overriding Pages</a></li>
<li class="toctree-l2"><a class="reference internal" href="#add-urls-to-help-menu">Add URLs to Help Menu</a></li>
<li class="toctree-l2"><a class="reference internal" href="#add-shortcuts-to-files-menu">Add Shortcuts to Files Menu</a></li>
<li class="toctree-l2"><a class="reference internal" href="#configuration-profiles">Configuration Profiles</a><ul>
Expand Down Expand Up @@ -438,8 +439,36 @@ <h3>Custom CSS files<a class="headerlink" href="#custom-css-files" title="Permal
</div>
</div>
</div>
<div class="section" id="overriding-pages">
<span id="overriding-partials"></span><span id="help-menu-guide"></span><h2>Overriding Pages<a class="headerlink" href="#overriding-pages" title="Permalink to this headline"></a></h2>
<p>Open OnDemand is built with Ruby on Rails which uses <code class="docutils literal notranslate"><span class="pre">partials</span></code>
to build the web pages that are ultimately served to the clients.</p>
<p>All partials are held within <a class="reference external" href="https://github.com/OSC/ondemand/tree/master/apps/dashboard/app/views">dashboard’s views folder</a>. These
are the default <code class="docutils literal notranslate"><span class="pre">partials</span></code> that get distributed when you install
the package.</p>
<p>Open OnDemand provides a facility to override any of these partial
pages by supplying new files in <code class="docutils literal notranslate"><span class="pre">/etc/ood/config/apps/dashboard/views</span></code>.</p>
<p>Let’s look at an example where a center can provide a different,
specialized, footer for the bottom of the page. Overriding the
<code class="docutils literal notranslate"><span class="pre">partial</span></code> that has been distributed.</p>
<p>First, you would need to find the original <code class="docutils literal notranslate"><span class="pre">partial</span></code> that is being
distributed.</p>
<p>We can find this file’s location at <code class="docutils literal notranslate"><span class="pre">layouts/_footer.html.erb</span></code>
(relative to the <a class="reference external" href="https://github.com/OSC/ondemand/tree/master/apps/dashboard/app/views">dashboard’s views folder</a>).</p>
<p>To override it, we simply provide a new file of the same name
and path in the <code class="docutils literal notranslate"><span class="pre">/etc/ood/config/apps/dashboard/views</span></code> folder.</p>
<p>So, the full file path would be <code class="docutils literal notranslate"><span class="pre">/etc/ood/config/apps/dashboard/views/layouts/_footer.html.erb</span></code>.
By providing a simple html file like the one below, placed in the location in the
previous sentence, your center has now provided a different footer than the one
distributed by the Open OnDemand package.</p>
<div class="highlight-html notranslate"><div class="highlight"><pre><span></span><span class="p">&lt;</span><span class="nt">div</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;text-center h-5 my-3&quot;</span> <span class="p">&gt;</span>
My center&#39;s custom footer.
<span class="p">&lt;</span><span class="nt">div</span><span class="p">&gt;</span>
</pre></div>
</div>
</div>
<div class="section" id="add-urls-to-help-menu">
<span id="help-menu-guide"></span><h2>Add URLs to Help Menu<a class="headerlink" href="#add-urls-to-help-menu" title="Permalink to this headline"></a></h2>
<h2>Add URLs to Help Menu<a class="headerlink" href="#add-urls-to-help-menu" title="Permalink to this headline"></a></h2>
<p>These URLs can be specified, which will appear in the Help menu and on other locations of the Dashboard. We recommend setting this in <code class="docutils literal notranslate"><span class="pre">/etc/ood/config/apps/dashboard/env</span></code>.</p>
<table class="docutils align-default" id="id27">
<caption><span class="caption-number">Table 4 </span><span class="caption-text">Dashboard URLs</span><a class="headerlink" href="#id27" title="Permalink to this table"></a></caption>
Expand Down
1 change: 1 addition & 0 deletions develop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ <h2>Special Thanks<a class="headerlink" href="#special-thanks" title="Permalink
<li class="toctree-l2"><a class="reference internal" href="customizations.html#announcements">Announcements</a></li>
<li class="toctree-l2"><a class="reference internal" href="customizations.html#message-of-the-day-motd">Message of the Day (MOTD)</a></li>
<li class="toctree-l2"><a class="reference internal" href="customizations.html#branding">Branding</a></li>
<li class="toctree-l2"><a class="reference internal" href="customizations.html#overriding-pages">Overriding Pages</a></li>
<li class="toctree-l2"><a class="reference internal" href="customizations.html#add-urls-to-help-menu">Add URLs to Help Menu</a></li>
<li class="toctree-l2"><a class="reference internal" href="customizations.html#add-shortcuts-to-files-menu">Add Shortcuts to Files Menu</a></li>
<li class="toctree-l2"><a class="reference internal" href="customizations.html#configuration-profiles">Configuration Profiles</a></li>
Expand Down
Binary file modified develop/objects.inv
Binary file not shown.
2 changes: 1 addition & 1 deletion develop/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 9da7c54

Please sign in to comment.