chore(build): rename ionic directory to src and update all references in the build process.

This commit is contained in:
Josh Thomas
2016-05-19 13:20:59 -05:00
parent 8470ae04ac
commit c8f760f080
595 changed files with 73 additions and 87 deletions

View File

@ -94,13 +94,13 @@ module.exports = function(currentVersion) {
docTypes: ['class', 'var', 'function', 'let'],
getOutputPath: function(doc) {
// strip ionic from path root
var docPath = doc.fileInfo.relativePath.replace(/^ionic\//, '');
var docPath = doc.fileInfo.relativePath.replace(/^src\//, '');
// remove filename since we have multiple docTypes per file
docPath = docPath.substring(0, docPath.lastIndexOf('/') + 1);
docPath += doc.name + '/index.md';
var path = config.v2DocsDir + '/' + (versionData.current.folder || '') +
'/api/' + docPath;
path = path.replace('/home/ubuntu/ionic/ionic', '')
path = path.replace('/home/ubuntu/ionic/src', '')
return path;
}
}];
@ -115,7 +115,7 @@ module.exports = function(currentVersion) {
readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../..'));
readTypeScriptModules.sourceFiles = [
'ionic/index.ts'
'src/index.ts'
];
})

View File

@ -55,7 +55,7 @@ module.exports = function(gulp, flags) {
});
}
return gulp.src('ionic/**/*.scss')
return gulp.src('src/**/*.scss')
.pipe(es.map(function(file, callback) {
var contents = file.contents.toString();
var variableLine, variableName, defaultValue, multiline;

View File

@ -19,7 +19,7 @@ module.exports = function jekyll(renderDocsProcessor) {
docs.forEach(function(doc, i) {
docs[i].URL = doc.outputPath.replace('docs/v2//','docs/v2/')
.replace('/index.md','')
.replace('//home/ubuntu/ionic/ionic', '')
.replace('//home/ubuntu/ionic/src', '')
.replace('//', '/');
if (docs[i].relativePath) {
docs[i].relativePath = doc.relativePath