Skip to content

Commit

Permalink
Merge pull request #58 from Holzchopf/makedocs-fix-1
Browse files Browse the repository at this point in the history
Fixed: Language keywords now get written to index.txt
  • Loading branch information
MikeHart66 committed Dec 30, 2018
2 parents 6601efe + 377e1bd commit 2457fc7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/makedocs/makedocs.cxs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ Const PATH_HTML_BASE:String = "docs/html"
Const PATH_HTML_DATA:String = PATH_HTML_BASE + "/data"
Const PATH_HTML_EXAMPLES:String = PATH_HTML_BASE + "/examples"
Const PATH_DOC_BASE:String = "docs/cerberusdoc"
Const PATH_DOC_KEYWORDS:String = "Programming/Keywords/"

' "doc" name (as displayed in navigation) for...
Const LOCATION_3RDPARTY:String = "3rd Party Docs"
Expand Down Expand Up @@ -931,7 +932,7 @@ Class Makedocs Implements ILinkResolver, IPrettifier
ClearErrInfo()
curdecl = rootmodules
' make stack of ALL decls
Local alldecls := rootmodules.GetChilds( 0, True )
Local alldecls := rootdecl.GetChilds( 0, True )
Local txt:String
' make index.txt
' index.txt format:
Expand Down Expand Up @@ -963,6 +964,12 @@ Class Makedocs Implements ILinkResolver, IPrettifier
Local str := "Index.html#" + d.ident
idx.Set( d.ident, str )
End
' language keywords
' (assume they're documented under: Programming/Keywords)
Case DECL_DOC
If d.GetTextOfChild( DECL_UIDENT_SCOPE ) = PATH_DOC_KEYWORDS Then
idx.Add( d.ident, BuildDocLink( d ) )
End
End
Next
'... then transform map to string
Expand Down

0 comments on commit 2457fc7

Please sign in to comment.