compiler refactoring; use typesafe path handing; docgen: render symbols between modules
This commit is contained in:
parent
b5730ec01f
commit
86556ebfdb
45 changed files with 816 additions and 504 deletions
|
|
@ -41,10 +41,10 @@ proc getPackageName*(conf: ConfigRef; path: string): string =
|
|||
dec parents
|
||||
if parents <= 0: break
|
||||
|
||||
proc withPackageName*(conf: ConfigRef; path: string): string =
|
||||
let x = getPackageName(conf, path)
|
||||
proc withPackageName*(conf: ConfigRef; path: AbsoluteFile): AbsoluteFile =
|
||||
let x = getPackageName(conf, path.string)
|
||||
if x.len == 0:
|
||||
result = path
|
||||
else:
|
||||
let (p, file, ext) = path.splitFile
|
||||
result = (p / (x & '_' & file)) & ext
|
||||
result = p / RelativeFile((x & '_' & file) & ext)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue