+2010-01-11 Jonathan Pryor <jpryor@novell.com>
+
+ * Mono.Documentation/monodocs2slashdoc.cs: Fix NamespaceSummaries.xml
+ generation to look at the ns-NAMESPACE.xml files, not just
+ NAMESPACE.xml files.
+
2009-12-03 Jonathan Pryor <jpryor@novell.com>
* Resources/stylesheet.xsl: Add support for generating namespace links
}
private static void AddNamespaceSummary(XmlDocument nsSummaries, string basepath, string currentNs) {
- string filename = Path.Combine(basepath, currentNs + ".xml");
- if (File.Exists(filename)) {
- XmlDocument nsSummary = new XmlDocument();
- nsSummary.Load(filename);
- XmlElement ns = nsSummaries.CreateElement("namespace");
- nsSummaries.DocumentElement.AppendChild(ns);
- ns.SetAttribute("name", currentNs);
- ns.InnerText = nsSummary.SelectSingleNode("/Namespace/Docs/summary").InnerText;
+ foreach (var filename in new [] {
+ Path.Combine(basepath, currentNs + ".xml"),
+ Path.Combine(basepath, "ns-" + currentNs + ".xml")}) {
+ if (File.Exists(filename)) {
+ XmlDocument nsSummary = new XmlDocument();
+ nsSummary.Load(filename);
+ XmlElement ns = nsSummaries.CreateElement("namespace");
+ nsSummaries.DocumentElement.AppendChild(ns);
+ ns.SetAttribute("name", currentNs);
+ ns.InnerText = nsSummary.SelectSingleNode("/Namespace/Docs/summary").InnerText;
+ }
}
}