Mark Sibly 9 년 전
부모
커밋
0d18163bc3
2개의 변경된 파일5개의 추가작업 그리고 14개의 파일을 삭제
  1. 4 13
      src/mx2new/htmldocsmaker.monkey2
  2. 1 1
      src/mx2new/mx2cc.monkey2

+ 4 - 13
src/mx2new/htmldocsmaker.monkey2

@@ -24,6 +24,7 @@ Class JsonBuffer
 		Endif
 	
 		If _sep json=","+json
+
 		_buf.Push( _indent+json )
 	
 		If json.EndsWith( "{" ) Or json.EndsWith( "[" ) 
@@ -43,6 +44,9 @@ Class JsonBuffer
 	Method Flush:String()
 		Local json:=_buf.Join( "~n" )
 		_buf.Clear()
+		_blks.Clear()
+		_indent=""
+		_sep=False
 		Return json
 	End
 	
@@ -94,17 +98,6 @@ Class HtmlDocsMaker Extends DocsMaker
 
 		Local page:=""
 		
-		#rem
-		Local md:=stringio.LoadString( _module.baseDir+"/docs/module.md" )
-		If md
-			_scope=Null
-			page="module"
-			Emit( md )
-			Local html:=Flush()
-			SavePage( html,page )
-		Endif
-		#end
-		
 		BeginNode( _module.name,page )
 		
 		For Local nmspace:=Eachin nmspaces.Values
@@ -255,8 +248,6 @@ Class HtmlDocsMaker Extends DocsMaker
 			Local page:=DeclPath( vvar.vdecl,vvar.scope )
 			SavePage( docs,page )
 			
-			Print "save page:"+page
-			
 			EmitLeaf( vvar.vdecl,page )
 			
 		Next

+ 1 - 1
src/mx2new/mx2cc.monkey2

@@ -19,7 +19,7 @@ Global StartDir:String
 
 'Const TestArgs:="mx2cc makemods"
 
-Const TestArgs:="mx2cc makedocs std"
+Const TestArgs:="mx2cc makedocs monkey std mojo"
 
 'Const TestArgs:="mx2cc makeapp src/mx2new/test.monkey2"