Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Installation instructions consolidation (#12388)
Browse files Browse the repository at this point in the history
* initial edits for c++ instructions

* consolidation and reorg of install docs

* simplify python section

* fix url rewrite to allow for testing

* further simplify install

* fix render issues

* adjust formatting

* adjust formatting

* fix python/gpu/master

* install footers

* update footers

* add mac dev setup link for osx

* adjust formatting for footer

* separate validation page

* add toc

* adjust formatting

* break out julia and perl

* fix pypi link

* fix formatting

* fix formatting

* fix formatting

* add build from source link

* updating from PR feedback

* add c++ and clojure to ubuntu guide; clarify c++ setup

* added pip chart to install; updates from PR feedback

* correct reference to c infer api
  • Loading branch information
aaronmarkham authored and indhub committed Sep 5, 2018
1 parent de9a2e8 commit d7111d3
Show file tree
Hide file tree
Showing 9 changed files with 1,093 additions and 2,461 deletions.
20 changes: 10 additions & 10 deletions docs/_static/js/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $(document).ready(function () {
function label(lbl) {
return lbl.replace(/[ .]/g, '-').toLowerCase();
}

function urlSearchParams(searchString) {
let urlDict = new Map();
let searchParams = searchString.substring(1).split("&");
Expand Down Expand Up @@ -45,11 +45,11 @@ $(document).ready(function () {
showContent();
if (window.location.href.indexOf("/install/index.html") >= 0) {
if (versionSelect.indexOf(defaultVersion) >= 0) {
history.pushState(null, null, '/install/index.html?platform=' + platformSelect + '&language=' + languageSelect + '&processor=' + processorSelect);
history.pushState(null, null, 'index.html?platform=' + platformSelect + '&language=' + languageSelect + '&processor=' + processorSelect);
} else {
history.pushState(null, null, '/install/index.html?version=' + versionSelect + '&platform=' + platformSelect + '&language=' + languageSelect + '&processor=' + processorSelect);
history.pushState(null, null, 'index.html?version=' + versionSelect + '&platform=' + platformSelect + '&language=' + languageSelect + '&processor=' + processorSelect);
}
}
}
}

function showContent() {
Expand All @@ -73,22 +73,22 @@ $(document).ready(function () {
$('.current-version').html( $(this).text() + ' <span class="caret"></span></button>' );
if ($(this).text().indexOf(defaultVersion) < 0) {
if (window.location.search.indexOf("version") < 0) {
history.pushState(null, null, '/install/index.html' + window.location.search.concat( '&version=' + $(this).text() ));
history.pushState(null, null, 'index.html' + window.location.search.concat( '&version=' + $(this).text() ));
} else {
history.pushState(null, null, '/install/index.html' + window.location.search.replace( urlParams.get('version'), $(this).text() ));
history.pushState(null, null, 'index.html' + window.location.search.replace( urlParams.get('version'), $(this).text() ));
}
} else if (window.location.search.indexOf("version") >= 0) {
history.pushState(null, null, '/install/index.html' + window.location.search.replace( 'version', 'prev' ));
history.pushState(null, null, 'index.html' + window.location.search.replace( 'version', 'prev' ));
}
}
else if ($(this).hasClass("platforms")) {
history.pushState(null, null, '/install/index.html' + window.location.search.replace( urlParams.get('platform'), $(this).text() ));
history.pushState(null, null, 'index.html' + window.location.search.replace( urlParams.get('platform'), $(this).text() ));
}
else if ($(this).hasClass("languages")) {
history.pushState(null, null, '/install/index.html' + window.location.search.replace( urlParams.get('language'), $(this).text() ));
history.pushState(null, null, 'index.html' + window.location.search.replace( urlParams.get('language'), $(this).text() ));
}
else if ($(this).hasClass("processors")) {
history.pushState(null, null, '/install/index.html' + window.location.search.replace( urlParams.get('processor'), $(this).text() ));
history.pushState(null, null, 'index.html' + window.location.search.replace( urlParams.get('processor'), $(this).text() ));
}
showContent();
//window.location.search = window.location.search.replace( urlParams.get('version'), $(this).text() );
Expand Down
Loading

0 comments on commit d7111d3

Please sign in to comment.