V1.26 Getting the Docs examples back

BlitzMax Forums/BlitzMax Programming/V1.26 Getting the Docs examples back

1.BlitzMax\src\makedocs\fredborgstyle.bmx
(Backup first)

find
If t.example

comment out some code, or simply replace as following
			If t.example 
				Local p$=t.example
			
				'If FileType( p )<>FILETYPE_FILE
				'	Local f$=StripDir( p )
				'	'p=StripDir( ExtractDir( p ) )+"/"+f
				'	Print "....DIR="+p
				'EndIf
				'If FileType( p )=FILETYPE_FILE
					Local link$="<a href=~q"+p+"~q>Example</a>"
					Local code$=LoadText( absDocDir+"/"+p ).Trim()
					code="~n{{~n"+code+"~n}}~n"
					Emit "<tr><td class=docleft width=1%>"+link+"</td><td class=docright>"+code+"</td></tr>"
				'EndIf
			EndIf


2.Compile "BlitzMax\src\makedocs\makedocs.bmx", get executable, copy to "BlitzMax\bin" and replace the old one.

3.Delete "BlitzMax\docs\html" directory

4.Restart BlitzMax IDE, when prompted, select Rebuild Documents.