Skip to content

Commit

Permalink
[fix] documents
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Dec 26, 2017
1 parent 197ac9f commit 4609afb
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docs/0.1/demos/usage/column_types/BranchGraphColumn.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
function getVersions(callback) {
var xhr = new XMLHttpRequest();
function onError() {
callback(['0.1.0', '0.0.1']);
callback(['0.1', '0.0.1']);
}
xhr.onload = function () {
var versions = JSON.parse(xhr.responseText);
Expand Down Expand Up @@ -152,7 +152,7 @@

//
getVersions(function (versions) {
var myVersion = '0.1.0';
var myVersion = '0.1';
function getVerLocation(v) {
return location.href.replace(myVersion, v).replace('.devdoc', v);
}
Expand Down
4 changes: 2 additions & 2 deletions docs/0.1/demos/usage/column_width.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
function getVersions(callback) {
var xhr = new XMLHttpRequest();
function onError() {
callback(['0.1.0', '0.0.1']);
callback(['0.1', '0.0.1']);
}
xhr.onload = function () {
var versions = JSON.parse(xhr.responseText);
Expand Down Expand Up @@ -152,7 +152,7 @@

//
getVersions(function (versions) {
var myVersion = '0.1.0';
var myVersion = '0.1';
function getVerLocation(v) {
return location.href.replace(myVersion, v).replace('.devdoc', v);
}
Expand Down
4 changes: 2 additions & 2 deletions docs/0.1/ja/demos/usage/column_types/BranchGraphColumn.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
function getVersions(callback) {
var xhr = new XMLHttpRequest();
function onError() {
callback(['0.1.0', '0.0.1']);
callback(['0.1', '0.0.1']);
}
xhr.onload = function () {
var versions = JSON.parse(xhr.responseText);
Expand Down Expand Up @@ -152,7 +152,7 @@

//
getVersions(function (versions) {
var myVersion = '0.1.0';
var myVersion = '0.1';
function getVerLocation(v) {
return location.href.replace(myVersion, v).replace('.devdoc', v);
}
Expand Down
4 changes: 2 additions & 2 deletions docs/0.1/ja/demos/usage/column_width.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
function getVersions(callback) {
var xhr = new XMLHttpRequest();
function onError() {
callback(['0.1.0', '0.0.1']);
callback(['0.1', '0.0.1']);
}
xhr.onload = function () {
var versions = JSON.parse(xhr.responseText);
Expand Down Expand Up @@ -152,7 +152,7 @@

//
getVersions(function (versions) {
var myVersion = '0.1.0';
var myVersion = '0.1';
function getVerLocation(v) {
return location.href.replace(myVersion, v).replace('.devdoc', v);
}
Expand Down
2 changes: 1 addition & 1 deletion docs/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Metalsmith(__dirname).
version: cheetah.version,
libVersion: isDevVersion(cheetah.version) ? latestVersion : cheetah.version,
latestVersion,
docVersion: getDocumentVersion(cheetah.version),
docLinkVersion: getDocumentVersion(cheetah.version),
}).
source('./src').
destination(`./${getDocumentVersion(cheetah.version)}`).
Expand Down
4 changes: 2 additions & 2 deletions docs/hbs/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
function getVersions(callback) {
const xhr = new XMLHttpRequest();
function onError() {
callback([`{{docVersion}}${''}`, '0.0.1']);
callback([`{{docLinkVersion}}${''}`, '0.0.1']);
}
xhr.onload = () => {
const versions = JSON.parse(xhr.responseText);
Expand Down Expand Up @@ -65,7 +65,7 @@

//
getVersions((versions) => {
const myVersion = `{{docVersion}}${''}`;
const myVersion = `{{docLinkVersion}}${''}`;
function getVerLocation(v) {
return location.href.replace(myVersion, v).replace('.devdoc', v);
}
Expand Down

0 comments on commit 4609afb

Please sign in to comment.