-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Got help from unidata team to get this working
Required an updated sphinx 0.2.5b1 .whl file
- Loading branch information
1 parent
52fc6f4
commit ddd346f
Showing
4 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
$(document).ready(function() { | ||
var proj_end = document.baseURI.indexOf("versions") + 9; | ||
var end = document.baseURI.indexOf("/", proj_end); | ||
var cur_ver = document.baseURI.substring(proj_end, end); | ||
var name = cur_ver.startsWith('cesm') ? cur_ver.substring(0) : cur_ver; | ||
var mylist = $("#version-list"); | ||
mylist.empty(); | ||
mylist.append($("<option>", {value: "../" + cur_ver, text: name})); | ||
$.getJSON(version_json_loc, function(obj) { | ||
$.each(obj.versions, function() { | ||
if (this != cur_ver) { | ||
name = this.startsWith('cesm') ? this.substring(0) : this; | ||
mylist.append($("<option>", {value: DOCUMENTATION_OPTIONS.URL_ROOT + '../' + this, text: name})); | ||
} | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends "!footer.html" %} | ||
{% block extrafooter %} | ||
{{ super() }} | ||
<script>var version_json_loc = "{{ pathto('../versions.json', 1) }}";</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% extends "!layout.html" %} | ||
|
||
{% set script_files = script_files + ["_static/pop_ver.js"] %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters