[SYSTEMML-1209] Add configurable API Docs menu to docs header Add configurable API Docs menu to docs header to link to generated API docs from versioned documentation.
Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/39998833 Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/39998833 Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/39998833 Branch: refs/heads/branch-0.12 Commit: 399988336c591c2e7e052ebc9b7d7278bd5e192b Parents: ef23a99 Author: Deron Eriksson <[email protected]> Authored: Tue Feb 7 12:19:45 2017 -0800 Committer: Deron Eriksson <[email protected]> Committed: Tue Feb 7 18:08:33 2017 -0800 ---------------------------------------------------------------------- docs/_config.yml | 3 +++ docs/_layouts/global.html | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/39998833/docs/_config.yml ---------------------------------------------------------------------- diff --git a/docs/_config.yml b/docs/_config.yml index 6b07993..4cbba47 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -20,3 +20,6 @@ analytics_google_universal_tracking_id : UA-71553733-1 # if FEEDBACK_LINKS is true, render feedback links FEEDBACK_LINKS: true + +# if API_DOCS_MENU is true, render API docs menu +API_DOCS_MENU: false http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/39998833/docs/_layouts/global.html ---------------------------------------------------------------------- diff --git a/docs/_layouts/global.html b/docs/_layouts/global.html index 6c87e0c..8e03017 100644 --- a/docs/_layouts/global.html +++ b/docs/_layouts/global.html @@ -73,8 +73,16 @@ <li><a href="release-process.html">Release Process</a></li> </ul> </li> + {% if site.API_DOCS_MENU == true %} <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown">Issue Tracking<b class="caret"></b></a> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">API Docs<b class="caret"></b></a> + <ul class="dropdown-menu" role="menu"> + <li><a href="./api/java/index.html">Javadoc</a></li> + </ul> + </li> + {% endif %} + <li class="dropdown"> + <a href="#" class="dropdown-toggle" data-toggle="dropdown">Issues<b class="caret"></b></a> <ul class="dropdown-menu" role="menu"> <li><b>JIRA:</b></li> <li><a href="https://issues.apache.org/jira/browse/SYSTEMML">SystemML JIRA</a></li>
