github.com/swiftstack/ProxyFS@v0.0.0-20210203235616-4017c267d62f/docs/source/theme/swiftopensource/script_footer.html (about)

     1  <!-- jQuery -->
     2  <script type="text/javascript" src="{{pathto('_static/js/jquery-3.2.1.min.js', 1)}}"></script>
     3  
     4  <!-- Bootstrap JavaScript -->
     5  <script type="text/javascript" src="{{pathto('_static/js/bootstrap.min.js', 1)}}"></script>
     6  
     7  <!-- The rest of the JS -->
     8  <script type="text/javascript" src="{{pathto('_static/js/navigation.js', 1)}}"></script>
     9  
    10  <!-- Docs JS -->
    11  <script type="text/javascript" src="{{pathto('_static/js/docs.js', 1)}}"></script>
    12  
    13  <!-- Popovers -->
    14  <script type="text/javascript" src="{{pathto('_static/js/webui-popover.js', 1)}}"></script>
    15  
    16  <!-- standard sphinx include libraries, which allow search highlighting -->
    17  <script type="text/javascript" src="{{pathto('_static/underscore.js', 1)}}"></script>
    18  <script type="text/javascript" src="{{pathto('_static/doctools.js', 1)}}"></script>
    19  <script type="text/javascript" src="{{pathto('_static/searchtools.js', 1)}}"></script>
    20  
    21  <script type="text/javascript">
    22        var DOCUMENTATION_OPTIONS = {
    23          URL_ROOT:    './',
    24          VERSION:     '{{ version }}',
    25          COLLAPSE_INDEX: false,
    26          FILE_SUFFIX: '.html',
    27          SOURCELINK_SUFFIX: '.txt',
    28          HAS_SOURCE:  true
    29        };
    30  </script>
    31  
    32  
    33  <!-- Javascript for page -->
    34  <script language="JavaScript">
    35  /* build a description of this page including SHA, source location on git repo,
    36     build time and the project's launchpad bug tag. Set the HREF of the bug
    37     buttons */
    38  
    39      var lineFeed = "%0A";
    40      var gitURL = "Source: Can't derive source file URL";
    41  
    42      /* there have been cases where "pagename" wasn't set; better check for it */
    43      {%- if giturl and pagename %}
    44          /* The URL of the source file on Git is based on the giturl variable
    45             in conf.py, which must be manually initialized to the source file
    46             URL in Git.
    47             "pagename" is a standard sphinx parameter containing the name of
    48             the source file, without extension.                             */
    49  
    50          var sourceFile = "{{ pagename }}" + ".rst";
    51          gitURL = "Source: {{ giturl }}" + "/" + sourceFile;
    52      {%- endif %}
    53  
    54      /* gitsha, project and bug_tag rely on variables in conf.py */
    55      var gitSha = "SHA: {{ gitsha }}";
    56      {%- if bug_project %}
    57          var bugProject = "{{ bug_project }}";
    58      {%- endif %}
    59      {%- if bug_title %}
    60          var bugTitle = "{{ bug_title }}";
    61      {%- else %}
    62          var bugTitle = "{{ title }} in {{ project }}";
    63      {%- endif %}
    64      var fieldTags = "{{ bug_tag }}";
    65      {%- if use_storyboard %}
    66          var useStoryboard = "{{ use_storyboard }}";
    67      {%- else %}
    68          var useStoryboard = "";
    69      {%- endif %}
    70  
    71  
    72      /* "last_updated" is the build date and time. It relies on the
    73         conf.py variable "html_last_updated_fmt", which should include
    74         year/month/day as well as hours and minutes                   */
    75      var buildstring = "Release: {{ release }} on {{ last_updated }}";
    76  
    77      var fieldComment = encodeURI(buildstring) +
    78                         lineFeed + encodeURI(gitSha) +
    79                         lineFeed + encodeURI(gitURL) ;
    80  
    81      logABug(bugTitle, bugProject, fieldComment, fieldTags);
    82  </script>