chore(docs): moving docs from /docs/v2 to /docs

This commit is contained in:
perry
2017-03-29 11:00:52 -05:00
parent 54acc74fdb
commit 41e34fc4ce
72 changed files with 127 additions and 127 deletions

View File

@ -19,7 +19,7 @@ module.exports = function indexPage(renderDocsProcessor) {
id: 'index-page',
currentVersion: currentVersion,
template: 'api_index.template.html',
outputPath: 'content/docs/v2/' + versionPath + '/api/index.md'
outputPath: 'content/docs/' + versionPath + '/api/index.md'
});
}
}

View File

@ -17,7 +17,7 @@ module.exports = function jekyll(renderDocsProcessor) {
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
});
docs.forEach(function(doc, i) {
docs[i].URL = doc.outputPath.replace('docs/v2//', 'docs/v2/')
docs[i].URL = doc.outputPath.replace('docs//', 'docs/')
.replace('/index.md', '')
.replace('//home/ubuntu/ionic/src', '')
.replace('//', '/')
@ -35,20 +35,20 @@ module.exports = function jekyll(renderDocsProcessor) {
docType: 'api-menu',
id: 'api-menu',
template: 'api_menu.template.html',
outputPath: 'content/_includes/v2_fluid/api_menu.html'
outputPath: 'content/_includes/fluid/api_menu.html'
});
docs.push({
docType: 'api-menu-flat-version',
id: 'api-menu-flat-version',
template: 'api_menu_flat_version.template.html',
outputPath: 'content/_includes/v2_fluid/api_menu_flat_' + currentVersion +
outputPath: 'content/_includes/fluid/api_menu_flat_' + currentVersion +
'.html'
});
docs.push({
docType: 'api-version-select',
id: 'api-version-select',
template: 'api_version_select.template.html',
outputPath: 'content/_includes/v2_fluid/api_version_select.html'
outputPath: 'content/_includes/fluid/api_version_select.html'
});
// returning docs will replace docs object in the next process

View File

@ -12,7 +12,7 @@ module.exports = function latestVersion(renderDocsProcessor) {
$process: function(docs) {
var versionData = renderDocsProcessor.extraData.version;
var docsBase = 'dist/ionic-site/content/docs/v2/';
var docsBase = 'dist/ionic-site/content/docs/';
var versionDir = path.resolve(docsBase, versionData.latest.name);
var latestDir = path.resolve(docsBase, 'api');

View File

@ -1,5 +1,5 @@
---
layout: "v2_fluid/docs_base"
layout: "fluid/docs_base"
version: "<$ version.current.name $>"
versionHref: "<$ version.current.href $>"
path: ""

View File

@ -5,10 +5,10 @@
<@ else @>
{% elsif page.versionHref == "<$ ver.href $>" %}
<@ endif @>
{% include v2_fluid/api_menu_flat_<$ ver.name $>.html %}
{% include fluid/api_menu_flat_<$ ver.name $>.html %}
<@ endif @>
<@ endfor @>
<# make the last case always be to show latest version #>
{% else %}
{% include v2_fluid/api_menu_flat_<$ version.latest.name $>.html %}
{% include fluid/api_menu_flat_<$ version.latest.name $>.html %}
{% endif %}

View File

@ -1,5 +1,5 @@
---
layout: "v2_fluid/docs_base"
layout: "fluid/docs_base"
version: "<$ version.current.name $>"
versionHref: "<$ version.current.href $>"
path: "<$ doc.path $>"