@@ -48,26 +48,7 @@ function findNgDocInDir(directory, docNotify) {
48
48
fs . readFile ( directory + '/' + file , docNotify . waitFor ( function ( err , content ) {
49
49
if ( err ) return this . error ( err ) ;
50
50
var section = '@section ' + directory . split ( '/' ) . pop ( ) + '\n' ;
51
-
52
- //TEMPORARY FIX to strip stuff from the docs until gdocs api is fixed
53
- var text = content . toString ( ) ;
54
-
55
- text = text . replace ( '\ufeff' , '' ) ;
56
- text = text . replace ( / \r \n / mg, '\n' ) ;
57
- text = text . replace ( / ^ / mg, ' ' ) ; //for some reason gdocs drop first space for indented lines
58
-
59
- // strip out all text annotation comments
60
- text = text . replace ( / ^ \[ a \] [ \S \s ] * / m, '' ) ;
61
-
62
- // strip out all text annotations
63
- text = text . replace ( / \[ \w { 1 , 3 } \] / mg, '' ) ;
64
-
65
- // fix smart-quotes
66
- text = text . replace ( / [ “ ” ] / g, '"' ) ;
67
- text = text . replace ( / [ ‘ ’ ] / g, "'" ) ;
68
- //TEMPORARY FIX END
69
-
70
- docNotify ( section + text , directory + '/' + file , 1 ) ;
51
+ docNotify ( section + content . toString ( ) , directory + '/' + file , 1 ) ;
71
52
} ) ) ;
72
53
} else if ( stats . isDirectory ( ) ) {
73
54
findNgDocInDir ( directory + '/' + file , docNotify . waitFor ( docNotify ) ) ;
0 commit comments