nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitpm: use the inifiles exposed by the nit catalog
[nit.git]
/
src
/
nitcatalog.nit
diff --git
a/src/nitcatalog.nit
b/src/nitcatalog.nit
index
c116234
..
244be79
100644
(file)
--- a/
src/nitcatalog.nit
+++ b/
src/nitcatalog.nit
@@
-187,7
+187,7
@@
redef class Catalog
do
# Register `self` to the global NitdocDecorator
# FIXME this is ugly. But no better idea at the moment.
do
# Register `self` to the global NitdocDecorator
# FIXME this is ugly. But no better idea at the moment.
- modelbuilder.model.nitdoc_md_processor.emitter.decorator.as(NitdocDecorator).catalog = self
+ modelbuilder.model.nitdoc_md_processor.decorator.as(NitdocDecorator).catalog = self
end
# The output directory where to generate pages
end
# The output directory where to generate pages
@@
-721,6
+721,9
@@
for p in mpackages do
var f = "p/{p.name}.html"
catalog.package_page(p)
catalog.generate_page(p).write_to_file(out/f)
var f = "p/{p.name}.html"
catalog.package_page(p)
catalog.generate_page(p).write_to_file(out/f)
+ # copy ini
+ var ini = p.ini
+ if ini != null then ini.write_to_file(out/"p/{p.name}.ini")
end
# INDEX
end
# INDEX