Skip to content
Browse files

[monkeydoc] Replace monodoc by monkeydoc

  • Loading branch information...
1 parent b2fa5b3 commit 11a92a74e587d31c71f6f3cb19581143fade29fb @garuma garuma committed
Showing with 0 additions and 19,940 deletions.
  1. +0 −6 mcs/tools/monkeydoc/Assembly/AssemblyInfo.cs
  2. +0 −142 mcs/tools/monkeydoc/Makefile
  3. +0 −153 mcs/tools/monkeydoc/MonkeyDoc/providers/simple-provider.cs
  4. +0 −42 mcs/tools/monkeydoc/Mono.Documentation/ManifestResourceResolver.cs
  5. +0 −200 mcs/tools/monkeydoc/Mono.Documentation/XmlDocUtils.cs
  6. +0 −171 mcs/tools/monkeydoc/Mono.Utilities/colorizer.cs
  7. +0 −1 mcs/tools/monkeydoc/Resources/.gitattributes
  8. BIN mcs/tools/monkeydoc/Resources/Lminus.gif
  9. BIN mcs/tools/monkeydoc/Resources/Lplus.gif
  10. +0 −36 mcs/tools/monkeydoc/Resources/base.css
  11. +0 −98 mcs/tools/monkeydoc/Resources/ecmaspec-html-css.xsl
  12. +0 −96 mcs/tools/monkeydoc/Resources/ecmaspec-html.xsl
  13. +0 −69 mcs/tools/monkeydoc/Resources/ecmaspec.css
  14. +0 −12 mcs/tools/monkeydoc/Resources/helper.js
  15. +0 −69 mcs/tools/monkeydoc/Resources/home.html
  16. BIN mcs/tools/monkeydoc/Resources/images/bc_bg.png
  17. BIN mcs/tools/monkeydoc/Resources/images/bc_separator.png
  18. BIN mcs/tools/monkeydoc/Resources/images/error.png
  19. BIN mcs/tools/monkeydoc/Resources/images/hatch.png
  20. BIN mcs/tools/monkeydoc/Resources/images/headerbg.png
  21. BIN mcs/tools/monkeydoc/Resources/images/help.png
  22. BIN mcs/tools/monkeydoc/Resources/images/house.png
  23. BIN mcs/tools/monkeydoc/Resources/images/members.png
  24. BIN mcs/tools/monkeydoc/Resources/images/namespace.png
  25. BIN mcs/tools/monkeydoc/Resources/images/privclass.png
  26. BIN mcs/tools/monkeydoc/Resources/images/privdelegate.png
  27. BIN mcs/tools/monkeydoc/Resources/images/privenumeration.png
  28. BIN mcs/tools/monkeydoc/Resources/images/privevent.png
  29. BIN mcs/tools/monkeydoc/Resources/images/privextension.png
  30. BIN mcs/tools/monkeydoc/Resources/images/privfield.png
  31. BIN mcs/tools/monkeydoc/Resources/images/privinterface.png
  32. BIN mcs/tools/monkeydoc/Resources/images/privmethod.png
  33. BIN mcs/tools/monkeydoc/Resources/images/privproperty.png
  34. BIN mcs/tools/monkeydoc/Resources/images/privstructure.png
  35. BIN mcs/tools/monkeydoc/Resources/images/protclass.png
  36. BIN mcs/tools/monkeydoc/Resources/images/protdelegate.png
  37. BIN mcs/tools/monkeydoc/Resources/images/protenumeration.png
  38. BIN mcs/tools/monkeydoc/Resources/images/protevent.png
  39. BIN mcs/tools/monkeydoc/Resources/images/protextension.png
  40. BIN mcs/tools/monkeydoc/Resources/images/protfield.png
  41. BIN mcs/tools/monkeydoc/Resources/images/protinterface.png
  42. BIN mcs/tools/monkeydoc/Resources/images/protmethod.png
  43. BIN mcs/tools/monkeydoc/Resources/images/protproperty.png
  44. BIN mcs/tools/monkeydoc/Resources/images/protstructure.png
  45. BIN mcs/tools/monkeydoc/Resources/images/pubclass.png
  46. BIN mcs/tools/monkeydoc/Resources/images/pubdelegate.png
  47. BIN mcs/tools/monkeydoc/Resources/images/pubenumeration.png
  48. BIN mcs/tools/monkeydoc/Resources/images/pubevent.png
  49. BIN mcs/tools/monkeydoc/Resources/images/pubextension.png
  50. BIN mcs/tools/monkeydoc/Resources/images/pubfield.png
  51. BIN mcs/tools/monkeydoc/Resources/images/pubinterface.png
  52. BIN mcs/tools/monkeydoc/Resources/images/pubmethod.png
  53. BIN mcs/tools/monkeydoc/Resources/images/pubproperty.png
  54. BIN mcs/tools/monkeydoc/Resources/images/pubstructure.png
  55. BIN mcs/tools/monkeydoc/Resources/images/reference.png
  56. BIN mcs/tools/monkeydoc/Resources/images/treebg.png
  57. +0 −24 mcs/tools/monkeydoc/Resources/mdoc-html-format.xsl
  58. +0 −2,771 mcs/tools/monkeydoc/Resources/mdoc-html-utils.xsl
  59. +0 −131 mcs/tools/monkeydoc/Resources/mdoc-sections-css.xsl
  60. +0 −123 mcs/tools/monkeydoc/Resources/mdoc-sections.xsl
  61. +0 −47 mcs/tools/monkeydoc/Resources/mono-ecma-css.xsl
  62. +0 −540 mcs/tools/monkeydoc/Resources/mono-ecma-impl.xsl
  63. +0 −596 mcs/tools/monkeydoc/Resources/mono-ecma.css
  64. +0 −42 mcs/tools/monkeydoc/Resources/mono-ecma.xsl
  65. +0 −460 mcs/tools/monodoc/ChangeLog
  66. +0 −5 mcs/tools/monodoc/Lucene.Net/.gitattributes
  67. +0 −1 mcs/tools/monodoc/Lucene.Net/ABOUT.txt
  68. +0 −23 mcs/tools/monodoc/Lucene.Net/BUILD.txt
  69. +0 −3,961 mcs/tools/monodoc/Lucene.Net/CHANGES.txt
  70. +0 −419 mcs/tools/monodoc/Lucene.Net/HISTORY.txt
  71. +0 −419 mcs/tools/monodoc/Lucene.Net/Lucene.Net.dll.sources
  72. +0 −4 mcs/tools/monodoc/Lucene.Net/Lucene.Net/.gitattributes
  73. +0 −37 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/.gitattributes
  74. +0 −3,287 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/ASCIIFoldingFilter.cs
  75. +0 −181 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/Analyzer.cs
  76. +0 −97 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/BaseCharFilter.cs
  77. +0 −108 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/CachingTokenFilter.cs
  78. +0 −472 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/CharArraySet.cs
  79. +0 −89 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/CharFilter.cs
  80. +0 −83 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/CharReader.cs
  81. +0 −47 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/CharStream.cs
  82. +0 −157 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/CharTokenizer.cs
  83. +0 −57 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/CharacterCache.cs
  84. +0 −362 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/ISOLatin1AccentFilter.cs
  85. +0 −56 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/KeywordAnalyzer.cs
  86. +0 −120 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/KeywordTokenizer.cs
  87. +0 −66 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/LengthFilter.cs
  88. +0 −57 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/LetterTokenizer.cs
  89. +0 −55 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/LowerCaseFilter.cs
  90. +0 −59 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/LowerCaseTokenizer.cs
  91. +0 −165 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/MappingCharFilter.cs
  92. +0 −70 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/NormalizeCharMap.cs
  93. +0 −276 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/NumericTokenStream.cs
  94. +0 −636 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/Package.html
  95. +0 −146 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/PerFieldAnalyzerWrapper.cs
  96. +0 −64 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/PorterStemFilter.cs
  97. +0 −746 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/PorterStemmer.cs
  98. +0 −47 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/SimpleAnalyzer.cs
  99. +0 −123 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/SinkTokenizer.cs
  100. +0 −6 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/Standard/.gitattributes
  101. +0 −25 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/Standard/Package.html
  102. +0 −435 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/Standard/StandardAnalyzer.cs
  103. +0 −90 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/Standard/StandardFilter.cs
  104. +0 −351 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/Standard/StandardTokenizer.cs
  105. +0 −709 mcs/tools/monodoc/Lucene.Net/Lucene.Net/Analysis/Standard/StandardTokenizerImpl.cs
Sorry, we could not display the entire diff because too many files (666) changed.
View
6 mcs/tools/monkeydoc/Assembly/AssemblyInfo.cs
@@ -1,6 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-
-[assembly:AssemblyVersion("1.0.0.0")]
-[assembly:AssemblyDelaySign(false)]
-[assembly:AssemblyKeyFile("../../class/mono.snk")]
View
142 mcs/tools/monkeydoc/Makefile
@@ -1,142 +0,0 @@
-thisdir = tools/monkeydoc
-SUBDIRS =
-include ../../build/rules.make
-
-LIBRARY = monkeydoc.dll
-LIBRARY_PACKAGE = monkeydoc
-# Remove a bunch of "obsolete"-type warning for Lucene.NET
-# also activate legacy mode to compile old monodoc.dll api
-LOCAL_MCS_FLAGS = /nowarn:618,612,672,809 /define:LEGACY_MODE
-
-JAY_FLAGS = -ct
-
-IMAGES = \
- Resources/images/bc_bg.png \
- Resources/images/bc_separator.png \
- Resources/images/error.png \
- Resources/images/hatch.png \
- Resources/images/headerbg.png \
- Resources/images/help.png \
- Resources/images/house.png \
- Resources/images/members.png \
- Resources/images/namespace.png \
- Resources/images/privclass.png \
- Resources/images/privdelegate.png \
- Resources/images/privenumeration.png \
- Resources/images/privevent.png \
- Resources/images/privextension.png \
- Resources/images/privfield.png \
- Resources/images/privinterface.png \
- Resources/images/privmethod.png \
- Resources/images/privproperty.png \
- Resources/images/privstructure.png \
- Resources/images/protclass.png \
- Resources/images/protdelegate.png \
- Resources/images/protenumeration.png \
- Resources/images/protevent.png \
- Resources/images/protextension.png \
- Resources/images/protfield.png \
- Resources/images/protinterface.png \
- Resources/images/protmethod.png \
- Resources/images/protproperty.png \
- Resources/images/protstructure.png \
- Resources/images/pubclass.png \
- Resources/images/pubdelegate.png \
- Resources/images/pubenumeration.png \
- Resources/images/pubevent.png \
- Resources/images/pubextension.png \
- Resources/images/pubfield.png \
- Resources/images/pubinterface.png \
- Resources/images/pubmethod.png \
- Resources/images/pubproperty.png \
- Resources/images/pubstructure.png \
- Resources/images/reference.png \
- Resources/images/treebg.png
-
-IMAGE_RESOURCE_COMMAND = $(foreach file,$(IMAGES),/resource:$(file),$(notdir $(file)))
-
-RESOURCE_FILES = \
- ../../docs/monodoc.xml \
- Resources/base.css \
- Resources/ecmaspec-html-css.xsl \
- Resources/ecmaspec-html.xsl \
- Resources/ecmaspec.css \
- Resources/helper.js \
- Resources/home.html \
- Resources/Lminus.gif \
- Resources/Lplus.gif \
- Resources/mdoc-html-format.xsl \
- Resources/mdoc-html-utils.xsl \
- Resources/mdoc-sections-css.xsl \
- Resources/mdoc-sections.xsl \
- Resources/mono-ecma-css.xsl \
- Resources/mono-ecma-impl.xsl \
- Resources/mono-ecma.css \
- Resources/mono-ecma.xsl \
- Resources/toc-html.xsl \
- $(IMAGES)
-
-EXTRA_DISTFILES = \
- monkeydoc.dll.config.in \
- $(RESOURCE_FILES)
-
-LIB_MCS_FLAGS = \
- /unsafe \
- /codepage:utf8 \
- /nowarn:169,164,162,168,219,618,612 \
- /r:Commons.Xml.Relaxng \
- /resource:../../docs/monodoc.xml,monodoc.xml \
- /resource:Resources/base.css,base.css \
- /resource:Resources/ecmaspec-html-css.xsl,ecmaspec-html-css.xsl \
- /resource:Resources/ecmaspec-html.xsl,ecmaspec-html.xsl \
- /resource:Resources/ecmaspec.css,ecmaspec.css \
- /resource:Resources/helper.js,helper.js \
- /resource:Resources/home.html,home.html \
- /resource:Resources/Lminus.gif,Lminus.gif \
- /resource:Resources/Lplus.gif,Lplus.gif \
- /resource:Resources/mdoc-html-format.xsl,mdoc-html-format.xsl \
- /resource:Resources/mdoc-html-utils.xsl,mdoc-html-utils.xsl \
- /resource:Resources/mdoc-sections-css.xsl,mdoc-sections-css.xsl \
- /resource:Resources/mdoc-sections.xsl,mdoc-sections.xsl \
- /resource:Resources/mono-ecma-css.xsl,mono-ecma-css.xsl \
- /resource:Resources/mono-ecma-impl.xsl,mono-ecma-impl.xsl \
- /resource:Resources/mono-ecma.css,mono-ecma.css \
- /resource:Resources/mono-ecma.xsl,mono-ecma.xsl \
- /resource:Resources/toc-html.xsl,toc-html.xsl \
- $(IMAGE_RESOURCE_COMMAND) \
- /r:ICSharpCode.SharpZipLib \
- /r:$(corlib) \
- /r:System.dll \
- /r:System.Core.dll \
- /r:System.Xml.dll \
- /r:System.Xml.Linq.dll \
- /r:System.Configuration.dll
-
-TEST_MCS_FLAGS = /r:System.Core.dll /r:System.Xml.dll
-
-DOC_SOURCE_DIRS = \
- ../../docs \
- ../../../docs
-
-DOC_SOURCES = $(foreach dir,$(DOC_SOURCE_DIRS),$(wildcard $(dir)/*.source $(dir)/*.tree $(dir)/*.zip))
-
-include ../../build/library.make
-
-$(the_lib): Makefile $(RESOURCE_FILES)
-
-all-local: $(the_lib).config Monkeydoc.Ecma/EcmaUrlParser.cs
-
-test-local: setup-doc-sources
-
-$(the_lib).config: Makefile monkeydoc.dll.config.in
- sed 's,@monodoc_refdir@,$(mono_libdir)/monodoc,g' monkeydoc.dll.config.in > $@
-
-Monkeydoc.Ecma/EcmaUrlParser.cs: Monkeydoc.Ecma/EcmaUrlParser.jay $(topdir)/jay/skeleton.cs
- $(topdir)/jay/jay $(JAY_FLAGS) < $(topdir)/jay/skeleton.cs $< > jay-tmp.out && mv jay-tmp.out $@
-
-parser.exe: Monkeydoc.Ecma/EcmaUrlParser.cs Monkeydoc.Ecma/EcmaUrlTokenizer.cs Monkeydoc.Ecma/EcmaUrlParserDriver.cs Monkeydoc.Ecma/EcmaDesc.cs
- mcs /out:$@ /debug $^
-
-setup-doc-sources: $(DOC_SOURCES)
- mkdir -p ./Test/monodoc/sources/
- cp $(DOC_SOURCES) ./Test/monodoc/sources/
View
0 mcs/tools/monkeydoc/MonkeyDoc.Ecma/EcmaDesc.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc.Ecma/EcmaUrlParser.jay
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc.Ecma/EcmaUrlParserDriver.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc.Ecma/EcmaUrlTokenizer.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/HelpSource.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/HelpSource_Legacy.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/Node.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/Node_Legacy.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/Provider.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/RootTree.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/RootTree_Legacy.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/SearchableDocument.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/SearchableIndex.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/Tree.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/Tree_Legacy.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/TypeUtils.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/cache.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/caches/FileCache.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/caches/NullCache.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generator.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/HtmlGenerator.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/RawGenerator.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/html/Addin2Html.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/html/Ecma2Html.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/html/Ecmaspec2Html.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/html/Error2Html.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/html/Idem.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/html/Man2Html.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/html/MonoBook2Html.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/generators/html/Toc2Html.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/index.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/providers/EcmaDoc.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/providers/addins-provider.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/providers/ecma-provider.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/providers/ecmaspec-provider.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/providers/ecmauncompiled-provider.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/providers/error-provider.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/providers/man-provider.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
153 mcs/tools/monkeydoc/MonkeyDoc/providers/simple-provider.cs
@@ -1,153 +0,0 @@
-//
-// The simple provider is an example provider
-//
-// Author:
-// Miguel de Icaza (miguel@ximian.com)
-//
-// Use like this:
-// mono assembler.exe --simple DIRECTORY --out name
-//
-// Then create a .source file in your sources directory, and copy
-// name.tree and name.zip to the sources directory.
-//
-// To view the tree generated, use:
-// mono dump.exe name.tree
-//
-namespace Monodoc {
-using System;
-using System.IO;
-using System.Text;
-
-//
-// The simple provider generates the information source
-//
-public class SimpleProvider : Provider {
- string basedir;
-
- public SimpleProvider (string base_directory)
- {
- basedir = base_directory;
- if (!Directory.Exists (basedir))
- throw new FileNotFoundException (String.Format ("The directory `{0}' does not exist", basedir));
- }
-
- public override void PopulateTree (Tree tree)
- {
- Node top = tree.LookupNode ("Directory at: " + basedir, "simple:");
-
- foreach (string dir in Directory.GetDirectories (basedir)){
- string url = Path.GetFileName (dir);
- Node n = top.LookupNode ("Dir: " + url, url);
- PopulateDir (n, dir);
- }
- }
-
-#pragma warning disable 219
- void PopulateDir (Node me, string dir)
- {
- Console.WriteLine ("Adding: " + dir);
- foreach (string child_dir in Directory.GetDirectories (dir)){
- string url = Path.GetFileName (child_dir);
- Node n = me.LookupNode ("Dir: " + url, "simple-directory:" + url);
- PopulateDir (me, child_dir);
- }
-
- foreach (string file in Directory.GetFiles (dir)){
- Console.WriteLine (" File: " + file);
- string file_code = me.tree.HelpSource.PackFile (file);
-
- //
- // The url element encoded for the file is:
- // originalfilename#CODE
- //
- // The code is assigned to us after the file has been packaged
- // We use the original-filename later to render html or text files
- //
- Node n = me.LookupNode (Path.GetFileName (file), file + "#" + file_code);
-
- }
- }
-
- public override void CloseTree (HelpSource hs, Tree tree)
- {
- }
-}
-
-//
-// The HelpSource is used during the rendering phase.
-//
-
-public class SimpleHelpSource : HelpSource {
- Encoding enc;
-
- public SimpleHelpSource (string base_file, bool create) : base (base_file, create)
- {
- enc = new UTF8Encoding (false, false);
- }
-
- public override string GetText (string url, out Node match_node)
- {
- match_node = null;
-
- string c = GetCachedText (url);
- if (c != null)
- return c;
-
- if (url.StartsWith ("simple:") || url.StartsWith ("simple-directory:"))
- return GetTextFromUrl (url);
-
- return null;
- }
-
- string GetTextFromUrl (string url)
- {
- // Remove "simple:" prefix
- url = url.Substring (7);
-
- if (url.StartsWith ("simple-directory:"))
- return String.Format ("<html>This is a directory entry point: {0} </html>",
- url.Substring (17));
-
- // Otherwise the last element of the url is the file code we got.
- int pound = url.LastIndexOf ("#");
- string code;
- if (pound == -1)
- code = url;
- else
- code = url.Substring (pound+1);
-
-
- Stream s = GetHelpStream (code);
- if (s == null)
- return String.Format ("<html>No stream for this node: {0} </html>", url);
-
- //
- // Now, get the file type
- //
- int slash = url.LastIndexOf ("/");
- string fname = url.Substring (slash + 1, pound - slash - 1).ToLower ();
-
- if (fname.EndsWith (".html") || fname.EndsWith (".htm")){
- TextReader r = new StreamReader (s, enc);
- return r.ReadToEnd ();
- }
-
- if (fname.EndsWith (".png") || fname.EndsWith (".jpg") ||
- fname.EndsWith (".jpeg") || fname.EndsWith (".gif")){
- return "<html>Image file, have not implemented rendering this yet</html>";
- }
-
- // Convert text to HTML
- StringBuilder result = new StringBuilder ("<html>");
- TextReader reader = new StreamReader (s, enc);
- string line;
-
- while ((line = reader.ReadLine ()) != null){
- result.Append (line);
- result.Append ("<br>");
- }
- result.Append ("<html>");
- return result.ToString ();
- }
-}
-}
View
0 mcs/tools/monkeydoc/MonkeyDoc/providers/xhtml-provider.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/settings.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/storage.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/storage/NullStorage.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/storage/UncompiledDocStorage.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/MonkeyDoc/storage/ZipStorage.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
42 mcs/tools/monkeydoc/Mono.Documentation/ManifestResourceResolver.cs
@@ -1,42 +0,0 @@
-using System;
-using System.IO;
-using System.Reflection;
-using System.Xml;
-
-namespace Mono.Documentation {
- public class ManifestResourceResolver : XmlUrlResolver {
- private string[] dirs;
-
- public ManifestResourceResolver (params string[] dirs)
- {
- this.dirs = (string[]) dirs.Clone ();
- }
-
- public override Uri ResolveUri (Uri baseUri, string relativeUri)
- {
- if (Array.IndexOf (
- Assembly.GetExecutingAssembly ().GetManifestResourceNames (),
- relativeUri) >= 0)
- return new Uri ("x-resource:///" + relativeUri);
- foreach (var dir in dirs) {
- if (File.Exists (Path.Combine (dir, relativeUri)))
- return base.ResolveUri (new Uri ("file://" + new DirectoryInfo (dir).FullName + "/"),
- relativeUri);
- }
- return base.ResolveUri (baseUri, relativeUri);
- }
-
- public override object GetEntity (Uri absoluteUri, string role, Type ofObjectToReturn)
- {
- if (ofObjectToReturn == null)
- ofObjectToReturn = typeof(Stream);
- if (ofObjectToReturn != typeof(Stream))
- throw new XmlException ("This object type is not supported.");
- if (absoluteUri.Scheme != "x-resource")
- return base.GetEntity (absoluteUri, role, ofObjectToReturn);
- return Assembly.GetExecutingAssembly().GetManifestResourceStream (
- absoluteUri.Segments [1]);
- }
- }
-}
-
View
200 mcs/tools/monkeydoc/Mono.Documentation/XmlDocUtils.cs
@@ -1,200 +0,0 @@
-using System;
-using System.Collections;
-using System.IO;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Web;
-using System.Xml;
-
-namespace Mono.Documentation {
-
- public delegate XmlDocument DocLoader (string escapedTypeName);
-
- public static class XmlDocUtils
- {
- public static XmlNodeList GetMemberGenericParameters (XmlNode member)
- {
- return member.SelectNodes ("Docs/typeparam");
- }
-
- public static XmlNodeList GetTypeGenericParameters (XmlNode member)
- {
- return member.SelectNodes ("/Type/TypeParameters/TypeParameter");
- }
-
- public static string ToTypeName (string type, XmlNode member)
- {
- return ToTypeName (type, GetTypeGenericParameters (member),
- GetMemberGenericParameters (member));
- }
-
- public static string ToTypeName (string type, XmlNodeList typeGenParams, XmlNodeList memberGenParams)
- {
- type = type.Replace ("&", "@").Replace ("<", "{").Replace (">", "}");
- for (int i = 0; i < typeGenParams.Count; ++i) {
- string name = typeGenParams [i].InnerText;
- type = Regex.Replace (type, @"\b" + name + @"\b", "`" + i);
- }
- for (int i = 0; i < memberGenParams.Count; ++i) {
- string name = memberGenParams [i].Attributes ["name"].Value;
- type = Regex.Replace (type, @"\b" + name + @"\b", "``" + i);
- }
- return type;
- }
-
- public static string ToEscapedTypeName (string name)
- {
- return GetCountedName (name, "`");
- }
-
- private static string GetCountedName (string name, string escape)
- {
- int lt = name.IndexOf ("<");
- if (lt == -1)
- return name;
- StringBuilder type = new StringBuilder (name.Length);
- int start = 0;
- do {
- type.Append (name.Substring (start, lt - start));
- type.Append (escape);
- type.Append (GetGenericCount (name, lt, out start));
- } while ((lt = name.IndexOf ('<', start)) >= 0);
- if (start < name.Length)
- type.Append (name.Substring (start));
- return type.ToString ().Replace ("+", ".");
- }
-
- private static int GetGenericCount (string name, int start, out int end)
- {
- int n = 1;
- bool r = true;
- int i = start;
- int depth = 1;
- for ( ++i; r && i < name.Length; ++i) {
- switch (name [i]) {
- case ',': if (depth == 1) ++n; break;
- case '<': ++depth; break;
- case '>': --depth; if (depth == 0) r = false; break;
- }
- }
- end = i;
- return n;
- }
-
- public static string ToEscapedMemberName (string member)
- {
- // Explicitly implemented interface members contain '.'s in the member
- // name, e.g. System.Collections.Generic.IEnumerable<A>.GetEnumerator.
- // CSC does a s/\./#/g for these.
- member = member.Replace (".", "#");
- if (member [member.Length-1] == '>') {
- int i = member.LastIndexOf ("<");
- int ignore;
- return member.Substring (0, i).Replace ("<", "{").Replace (">", "}") +
- "``" + GetGenericCount (member, i, out ignore);
- }
- return member.Replace ("<", "{").Replace (">", "}");
- }
-
- public static void AddExtensionMethods (XmlDocument typexml, ArrayList/*<XmlNode>*/ extensions, DocLoader loader)
- {
- // if no members (enum, delegate) don't add extensions
- XmlNode m = typexml.SelectSingleNode ("/Type/Members");
- if (m == null)
- return;
-
- // static classes can't be targets:
- if (typexml.SelectSingleNode (
- "/Type/TypeSignature[@Language='C#']/@Value")
- .Value.IndexOf (" static ") >= 0)
- return;
-
- foreach (string s in GetSupportedTypes (typexml, loader)) {
- foreach (XmlNode extension in extensions) {
- bool add = false;
- foreach (XmlNode target in extension.SelectNodes ("Targets/Target")) {
- if (target.Attributes ["Type"].Value == s) {
- add = true;
- break;
- }
- }
- if (!add) {
- continue;
- }
- foreach (XmlNode c in extension.SelectNodes ("Member")) {
- XmlNode cm = typexml.ImportNode (c, true);
- m.AppendChild (cm);
- }
- }
- }
- }
-
- private static IEnumerable GetSupportedTypes (XmlDocument type, DocLoader loader)
- {
- yield return "System.Object";
- yield return GetEscapedPath (type, "Type/@FullName");
-
- Hashtable h = new Hashtable ();
- GetInterfaces (h, type, loader);
-
- string s = GetEscapedPath (type, "Type/Base/BaseTypeName");
- if (s != null) {
- yield return s;
- XmlDocument d;
- string p = s;
- while (s != null && (d = loader (s)) != null) {
- GetInterfaces (h, d, loader);
- s = GetEscapedPath (d, "Type/Base/BaseTypeName");
- if (p == s)
- break;
- yield return s;
- }
- }
-
- foreach (object o in h.Keys)
- yield return o.ToString ();
- }
-
- private static string GetEscapedPath (XmlDocument d, string path)
- {
- XmlNode n = d.SelectSingleNode (path);
- if (n == null)
- return null;
- return "T:" + ToEscapedTypeName (n.InnerText);
- }
-
- private static void GetInterfaces (Hashtable ifaces, XmlDocument doc, DocLoader loader)
- {
- foreach (XmlNode n in doc.SelectNodes ("Type/Interfaces/Interface/InterfaceName")) {
- string t = ToEscapedTypeName (n.InnerText);
- string tk = "T:" + t;
- if (!ifaces.ContainsKey (tk)) {
- ifaces.Add (tk, null);
- try {
- XmlDocument d = loader (t);
- if (d != null)
- GetInterfaces (ifaces, d, loader);
- }
- catch (FileNotFoundException e) {
- // ignore; interface documentation couldn't be found.
- }
- }
- }
- }
-
- // Turns e.g. sources/netdocs into sources/cache/netdocs
- public static string GetCacheDirectory (string assembledBase)
- {
- return Path.Combine (
- Path.Combine (Path.GetDirectoryName (assembledBase), "cache"),
- Path.GetFileName (assembledBase));
- }
-
- public static string GetCachedFileName (string cacheDir, string url)
- {
- return Path.Combine (cacheDir,
- Uri.EscapeUriString (url).Replace ('/', '+').Replace ("*", "%2a"));
- }
- }
-}
-
View
0 mcs/tools/monkeydoc/Mono.Utilities/LRUCache.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
0 mcs/tools/monkeydoc/Mono.Utilities/MemoryLRU.cs
Sorry, we could not display the changes to this file because there were too many other changes to display.
View
171 mcs/tools/monkeydoc/Mono.Utilities/colorizer.cs
@@ -1,171 +0,0 @@
-using System;
-using System.Text.RegularExpressions;
-using System.Collections;
-
-namespace Mono.Utilities {
- public class Colorizer {
- //
- // Syntax coloring
- //
-
- static string keywords_cs =
- "(\\babstract\\b|\\bevent\\b|\\bnew\\b|\\bstruct\\b|\\bas\\b|\\bexplicit\\b|\\bnull\\b|\\bswitch\\b|\\bbase\\b|\\bextern\\b|"
- +
- "\\bobject\\b|\\bthis\\b|\\bbool\\b|\\bfalse\\b|\\boperator\\b|\\bthrow\\b|\\bbreak\\b|\\bfinally\\b|\\bout\\b|\\btrue\\b|"
- +
- "\\bbyte\\b|\\bfixed\\b|\\boverride\\b|\\btry\\b|\\bcase\\b|\\bfloat\\b|\\bparams\\b|\\btypeof\\b|\\bcatch\\b|\\bfor\\b|"
- +
- "\\bprivate\\b|\\buint\\b|\\bchar\\b|\\bforeach\\b|\\bprotected\\b|\\bulong\\b|\\bchecked\\b|\\bgoto\\b|\\bpublic\\b|"
- +
- "\\bunchecked\\b|\\bclass\\b|\\bif\\b|\\breadonly\\b|\\bunsafe\\b|\\bconst\\b|\\bimplicit\\b|\\bref\\b|\\bushort\\b|"
- +
- "\\bcontinue\\b|\\bin\\b|\\breturn\\b|\\busing\\b|\\bdecimal\\b|\\bint\\b|\\bsbyte\\b|\\bvirtual\\b|\\bdefault\\b|"
- +
- "\\binterface\\b|\\bsealed\\b|\\bvolatile\\b|\\bdelegate\\b|\\binternal\\b|\\bshort\\b|\\bvoid\\b|\\bdo\\b|\\bis\\b|"
- +
- "\\bsizeof\\b|\\bwhile\\b|\\bdouble\\b|\\block\\b|\\bstackalloc\\b|\\belse\\b|\\blong\\b|\\bstatic\\b|\\benum\\b|"
- + "\\bnamespace\\b|\\bstring\\b)";
-
-#if false
-// currently not in use
- static string keywords_vb =
- "(\\bAddHandler\\b|\\bAddressOf\\b|\\bAlias\\b|\\bAnd\\b|\\bAndAlso\\b|\\bAnsi\\b|\\bAs\\b|\\bAssembly\\b|"
- +
- "\\bAuto\\b|\\bBoolean\\b|\\bByRef\\b|\\bByte\\b|\\bByVal\\b|\\bCall\\b|\\bCase\\b|\\bCatch\\b|"
- +
- "\\bCBool\\b|\\bCByte\\b|\\bCChar\\b|\\bCDate\\b|\\bCDec\\b|\\bCDbl\\b|\\bChar\\b|\\bCInt\\b|"
- +
- "\\bClass\\b|\\bCLng\\b|\\bCObj\\b|\\bConst\\b|\\bCShort\\b|\\bCSng\\b|\\bCStr\\b|\\bCType\\b|"
- +
- "\\bDate\\b|\\bDecimal\\b|\\bDeclare\\b|\\bDefault\\b|\\bDelegate\\b|\\bDim\\b|\\bDirectCast\\b|\\bDo\\b|"
- +
- "\\bDouble\\b|\\bEach\\b|\\bElse\\b|\\bElseIf\\b|\\bEnd\\b|\\bEnum\\b|\\bErase\\b|\\bError\\b|"
- +
- "\\bEvent\\b|\\bExit\\b|\\bFalse\\b|\\bFinally\\b|\\bFor\\b|\\bFriend\\b|\\bFunction\\b|\\bGet\\b|"
- +
- "\\bGetType\\b|\\bGoSub\\b|\\bGoTo\\b|\\bHandles\\b|\\bIf\\b|\\bImplements\\b|\\bImports\\b|\\bIn\\b|"
- +
- "\\bInherits\\b|\\bInteger\\b|\\bInterface\\b|\\bIs\\b|\\bLet\\b|\\bLib\\b|\\bLike\\b|\\bLong\\b|"
- +
- "\\bLoop\\b|\\bMe\\b|\\bMod\\b|\\bModule\\b|\\bMustInherit\\b|\\bMustOverride\\b|\\bMyBase\\b|\\bMyClass\\b|"
- +
- "\\bNamespace\\b|\\bNew\\b|\\bNext\\b|\\bNot\\b|\\bNothing\\b|\\bNotInheritable\\b|\\bNotOverridable\\b|\\bObject\\b|"
- +
- "\\bOn\\b|\\bOption\\b|\\bOptional\\b|\\bOr\\b|\\bOrElse\\b|\\bOverloads\\b|\\bOverridable\\b|\\bOverrides\\b|"
- +
- "\\bParamArray\\b|\\bPreserve\\b|\\bPrivate\\b|\\bProperty\\b|\\bProtected\\b|\\bPublic\\b|\\bRaiseEvent\\b|\\bReadOnly\\b|"
- +
- "\\bReDim\\b|\\bREM\\b|\\bRemoveHandler\\b|\\bResume\\b|\\bReturn\\b|\\bSelect\\b|\\bSet\\b|\\bShadows\\b|"
- +
- "\\bShared\\b|\\bShort\\b|\\bSingle\\b|\\bStatic\\b|\\bStep\\b|\\bStop\\b|\\bString\\b|\\bStructure\\b|"
- +
- "\\bSub\\b|\\bSyncLock\\b|\\bThen\\b|\\bThrow\\b|\\bTo\\b|\\bTrue\\b|\\bTry\\b|\\bTypeOf\\b|"
- +
- "\\bUnicode\\b|\\bUntil\\b|\\bVariant\\b|\\bWhen\\b|\\bWhile\\b|\\bWith\\b|\\bWithEvents\\b|\\bWriteOnly\\b|\\bXor\\b)";
-#endif
-
- public static string Colorize(string text, string lang)
- {
- lang = lang.Trim().ToLower();
- switch (lang) {
- case "xml":
- return ColorizeXml(text);
- case "cs": case "c#": case "csharp":
- return ColorizeCs(text);
- case "vb":
- return ColorizeVb(text);
- }
- return Escape (text);
- }
-
- static string ColorizeXml(string text)
- {
- // Order is highly important.
-
- // s/ /&nbsp;/g must be first, as later substitutions add required spaces
- text = text.Replace(" ", "&nbsp;");
-
- // Find & mark XML elements
- Regex re = new Regex("<\\s*(\\/?)\\s*([\\s\\S]*?)\\s*(\\/?)\\s*>");
- text = re.Replace(text, "{blue:&lt;$1}{maroon:$2}{blue:$3&gt;}");
-
- // Colorize attribute strings; must be done before colorizing marked XML
- // elements so that we don't clobber the colorized XML tags.
- re = new Regex ("([\"'])(.*?)\\1");
- text = re.Replace (text,
- "$1<font color=\"purple\">$2</font>$1");
-
- // Colorize marked XML elements
- re = new Regex("\\{(\\w*):([\\s\\S]*?)\\}");
- //text = re.Replace(text, "<span style='color:$1'>$2</span>");
- text = re.Replace(text, "<font color=\"$1\">$2</font>");
-
- // Standard Structure
- text = text.Replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
- re = new Regex("\r\n|\r|\n");
- text = re.Replace(text, "<br/>");
-
- return text;
- }
-
- static string ColorizeCs(string text)
- {
- text = text.Replace(" ", "&nbsp;");
-
- text = text.Replace("<", "&lt;");
- text = text.Replace(">", "&gt;");
-
- Regex re = new Regex("\"((((?!\").)|\\\")*?)\"");
-
- text =
- re.Replace(text,
- "<font color=\"purple\">\"$1\"</font>");
- //"<span style='color:purple'>\"$1\"</span>");
-
- re = new
- Regex
- ("//(((.(?!\"</font>))|\"(((?!\").)*)\"</font>)*)(\r|\n|\r\n)");
- //("//(((.(?!\"</span>))|\"(((?!\").)*)\"</span>)*)(\r|\n|\r\n)");
- text =
- re.Replace(text,
- "<font color=\"green\">//$1</font><br/>");
- // "<span style='color:green'>//$1</span><br/>");
-
- re = new Regex(keywords_cs);
- text = re.Replace(text, "<font color=\"blue\">$1</font>");
- //text = re.Replace(text, "<span style='color:blue'>$1</span>");
-
- text = text.Replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
- text = text.Replace("\n", "<br/>");
-
- return text;
- }
-
- static string ColorizeVb(string text) {
- text = text.Replace(" ", "&nbsp;");
-
- /* Regex re = new Regex ("\"((((?!\").)|\\\")*?)\"");
- text = re.Replace (text,"<span style='color:purple'>\"$1\"</span>");
-
- re = new Regex ("'(((.(?!\"\\<\\/span\\>))|\"(((?!\").)*)\"\\<\\/span\\>)*)(\r|\n|\r\n)");
- text = re.Replace (text,"<span style='color:green'>//$1</span><br/>");
-
- re = new Regex (keywords_vb);
- text = re.Replace (text,"<span style='color:blue'>$1</span>");
- */
- text = text.Replace("\t", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;");
- text = text.Replace("\n", "<br/>");
- return text;
- }
-
- static string Escape(string text)
- {
- text = text.Replace("&", "&amp;");
- text = text.Replace(" ", "&nbsp;");
- text = text.Replace("<", "&lt;");
- text = text.Replace(">", "&gt;");
- text = text.Replace("\n", "<br/>");
- return text;
- }
- }
-}
View
1 mcs/tools/monkeydoc/Resources/.gitattributes
@@ -1 +0,0 @@
-/helper.js -crlf
View
BIN mcs/tools/monkeydoc/Resources/Lminus.gif
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/Lplus.gif
Deleted file not rendered
View
36 mcs/tools/monkeydoc/Resources/base.css
@@ -1,36 +0,0 @@
-/*
-* base.css: CSS applied to all the docs
-*
-* Author: Mario Sopena
-*/
-
-body, table {
- margin: 0px;
-}
-
-body, table, pre, p {
- font-family: @@FONT_FAMILY@@, sans-serif;
- /* font-size: @@FONT_SIZE@@pt; */
- font-size: 10pt;
-}
-
-div.header {
- background-color: #FAFBFD;
- font-size: 1.7em;
- font-weight: bold;
- padding: 8px 0 0 10px;
- font-family: 'Segoe UI',Verdana,Arial;
-}
-
-div.title {
- font-size: 130%;
- font-weight: bolder;
- margin-top: 0.3em;
- margin-left: 0.2em;
- margin-bottom: 0.1em;
-}
-
-.subtitle {
- font-style: italic;
-}
-
View
98 mcs/tools/monkeydoc/Resources/ecmaspec-html-css.xsl
@@ -1,98 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"
- xmlns:monodoc="monodoc:///extensions"
- exclude-result-prefixes="monodoc"
- >
-<xsl:output omit-xml-declaration="yes" />
-
-<xsl:template match="/clause">
- <div class="header" id="ecmaspec">
- <div class="subtitle">ECMA-334 C# Language Specification</div>
- <div class="title"><xsl:value-of select="@number"/>: <xsl:value-of select="@title"/>
- <xsl:if test="@informative"> (informative) </xsl:if></div>
- </div>
- <xsl:apply-templates />
-</xsl:template>
-
-<xsl:template match="paragraph">
- <p>
- <xsl:apply-templates />
- </p>
-</xsl:template>
-
-<xsl:template match="keyword">
- <span class="keyword"> <xsl:apply-templates/></span> <xsl:text> </xsl:text>
-</xsl:template>
-
-<xsl:template match="hyperlink">
- <a href="ecmaspec:{.}">
- <xsl:value-of select="." />
- </a>
-</xsl:template>
-
-<xsl:template match="list">
- <ul>
- <xsl:for-each select="list_item|list">
- <li><xsl:apply-templates /></li>
- </xsl:for-each>
- </ul>
-</xsl:template>
-
-<xsl:template match="code_example">
- <div class="code_example">
- <div class="code_ex_title">Code example</div>
- <span class="code">
- <xsl:value-of select="monodoc:Colorize(string(descendant-or-self::text()), string('csharp'))" disable-output-escaping="yes" />
- </span>
- </div>
-</xsl:template>
-
-<xsl:template match="symbol">
- <span class="symbol">
- <xsl:apply-templates />
- </span>
-</xsl:template>
-
-<xsl:template match="grammar_production">
- <dl class="nt_{name/non_terminal/.}">
- <dt><xsl:value-of select="name/non_terminal/." /></dt>
-
- <xsl:for-each select="rhs">
- <dd>
- <xsl:apply-templates select="node()" />
- </dd>
- </xsl:for-each>
- </dl>
-</xsl:template>
-
-<xsl:template match="non_terminal">
- <span class="non_terminal"><xsl:text> </xsl:text><xsl:value-of select="." /></span>
-</xsl:template>
-
-<xsl:template match="terminal">
- <span class="terminal"><xsl:text> </xsl:text><xsl:value-of select="." /></span>
-</xsl:template>
-
-<xsl:template match="opt">
- <xsl:text> (</xsl:text><span class="opt">optional</span><xsl:text>) </xsl:text>
-</xsl:template>
-
-<xsl:template match="note|example">
- <div class="note">
- <xsl:apply-templates />
- </div>
-</xsl:template>
-
-<xsl:template match="table_line">
- <xsl:apply-templates /><br />
-</xsl:template>
-
-<xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
-</xsl:template>
-
-</xsl:stylesheet>
View
96 mcs/tools/monkeydoc/Resources/ecmaspec-html.xsl
@@ -1,96 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-<xsl:output omit-xml-declaration="yes" />
-
-<xsl:template match="/clause">
- <table width="100%" cellpadding="5">
- <tr bgcolor="#b0c4de"><td>
- <i>ECMA-334 C# Language Specification</i>
-
- <h3>
- <xsl:value-of select="@number"/>: <xsl:value-of select="@title"/>
-
- <xsl:if test="@informative">
- (informative)
- </xsl:if>
- </h3>
- </td></tr>
- </table>
-
- <xsl:apply-templates />
-</xsl:template>
-
-<xsl:template match="paragraph">
- <p>
- <xsl:apply-templates />
- </p>
-</xsl:template>
-
-<xsl:template match="keyword">
- <i> <xsl:apply-templates/></i> <xsl:text> </xsl:text>
-</xsl:template>
-
-<xsl:template match="hyperlink">
- <a href="ecmaspec:{.}">
- <xsl:value-of select="." />
- </a>
-</xsl:template>
-
-<xsl:template match="list">
- <ul>
- <xsl:for-each select="list_item|list">
- <li><xsl:apply-templates /></li>
- </xsl:for-each>
- </ul>
-</xsl:template>
-
-<xsl:template match="code_example">
- <table bgcolor="#f5f5dd" border="1" cellpadding="5">
- <tr>
- <td>
- <pre>
- <xsl:apply-templates />
- </pre>
- </td>
- </tr>
- </table>
-</xsl:template>
-
-<xsl:template match="symbol">
- <code>
- <xsl:apply-templates />
- </code>
-</xsl:template>
-
-<xsl:template match="grammar_production">
- <dl id="nt_{name/non_terminal/.}">
- <dt><xsl:value-of select="name/non_terminal/." /></dt>
-
- <xsl:for-each select="rhs">
- <dd>
- <xsl:apply-templates select="node()" />
- </dd>
- </xsl:for-each>
- </dl>
-</xsl:template>
-
-<xsl:template match="non_terminal">
-
- <code><xsl:text> </xsl:text><xsl:value-of select="." /></code>
-</xsl:template>
-
-<xsl:template match="terminal">
- <code><xsl:text> </xsl:text><xsl:value-of select="." /></code>
-</xsl:template>
-
-<xsl:template match="opt">
- <sub>opt</sub>
-</xsl:template>
-
-<xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
-</xsl:template>
-
-</xsl:stylesheet>
View
69 mcs/tools/monkeydoc/Resources/ecmaspec.css
@@ -1,69 +0,0 @@
-/*
-* ecmaspec.css: CSS applied to ECMA C# specs
-*
-* Author: Mario Sopena
-*/
-
-#ecmaspec {
- background: #a4dda4; /*#83b183;*/
- border: 2px solid #556655;
-}
-
-p {
- text-align: justify;
- margin-top: .5em;
- margin-bottom: .5em;
-}
-
-span.keyword {
- color: #a6563a;
-}
-
-a:link {
- text-decoration: none;
-}
-
-a:hover {
- text-decoration: underline;
-}
-
-div.code_example {
- background: #f5f5dd;
- border: 1px solid #cdcd82;
- border: 1px solid black;
- padding-left: 1em;
- padding-bottom: 1em;
- margin-top: 1em;
- font-family: fixed;
- white-space: pre;
- margin-bottom: 1em;
-}
-div.code_ex_title {
- position: relative;
- top: -1em;
- left: 30%;
- background: #cdcd82;
- border: 1px solid black;
- color: black;
- text-transform: uppercase;
- width: 40%;
- padding: 0.3em;
- text-align: center;
-}
-
-span.symbol {
- font-weight: bolder;
-}
-
-
-span.optional {
- font-style: italic;
-}
-
-div.note {
- background: #cdcd82;
- border: 1px solid black;
- padding: 1em;
- margin-top: 1em;
- margin-bottom: 1em;
-}
View
12 mcs/tools/monkeydoc/Resources/helper.js
@@ -1,12 +0,0 @@
-function toggle_display (block) {
- var w = document.getElementById (block);
- var t = document.getElementById (block + ":toggle");
- if (w.style.display == "none") {
- w.style.display = "block";
- t.getElementsByTagName("img")[0].setAttribute ("src", "xtree/images/clean/Lminus.gif"); // <img src="xtree/images/clean/Lminus.gif">
- } else {
- w.style.display = "none";
- t.getElementsByTagName("img")[0].setAttribute ("src", "xtree/images/clean/Lplus.gif"); // <img src="xtree/images/clean/Lplus.gif">
- }
-}
-
View
69 mcs/tools/monkeydoc/Resources/home.html
@@ -1,69 +0,0 @@
-<head>
-<style type="text/css">
-/* GENERAL */
-
-body, table {
- font-family: @@FONT_FAMILY@@, sans-serif;
- font-size: @@FONT_SIZE@@%;
-}
-
-/* ECMA BLOCK */
-#docs {
- margin-bottom: 1em;
-}
-
-/* CONTRIBUTIONS */
-#contrib {
- margin-top: 2em;
- width: 98%;
- margin-left: 1%;
- color: black;
- background: #fff3f3;
- border: 1px solid #ffc9c9;
- @@EDITING_ENABLED@@
- }
-#contribTitle {
- text-align: left;
- font-weight: bold;
- padding: .4em;
- font-size: 110%;
- @@CONTRIB_DISP@@
-}
-#contrib #content {
- padding: .4em;
-}
-#some-contrib {
- @@CONTRIB_DISP@@
-}
-#no-contrib {
- @@NO_CONTRIB_DISP@@
-}
-#contrib p {
- text-indent: 1em;
- text-align: justify;
- }
-</style>
-<link type="text/css" rel="stylesheet" href="mono-ecma.css"/>
-</head>
-
-<div class="Content">
- <p>The following documentation collections are available:
-
- <div id="docs">
- <ul>
- @@API_DOCS@@
- </ul>
- </div>
-
- <div id="contrib">
- <div id="contribTitle">Contributions</div>
- <div id="content">
- <div id="some-contrib">
- @@CONTRIBS@@
- </div>
- <div id="no-contrib">
- <p><b>You have not made any contributions yet.</b></p>
- <p>The Documentation of the libraries is not complete and your contributions would be greatly appreciated. The procedure is easy, browse to the part of the documentation you want to contribute to and click on the <font color="blue">[Edit]</font> link to start writing documentation.</p>
- <p>When you are happy with your changes, use the Contributing--&gt; Upload Contribution--&gt; menu to send your contributions to our server.</p></div> </div>
- </div>
-</div>
View
BIN mcs/tools/monkeydoc/Resources/images/bc_bg.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/bc_separator.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/error.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/hatch.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/headerbg.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/help.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/house.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/members.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/namespace.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privclass.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privdelegate.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privenumeration.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privevent.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privextension.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privfield.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privinterface.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privmethod.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privproperty.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/privstructure.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/protclass.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/protdelegate.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/protenumeration.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/protevent.png
Deleted file not rendered
View
BIN mcs/tools/monkeydoc/Resources/images/protextension.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/protfield.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/protinterface.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/protmethod.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/protproperty.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/protstructure.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubclass.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubdelegate.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubenumeration.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubevent.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubextension.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubfield.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubinterface.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubmethod.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubproperty.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/pubstructure.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/reference.png
Diff not rendered.
View
BIN mcs/tools/monkeydoc/Resources/images/treebg.png
Diff not rendered.
View
24 mcs/tools/monkeydoc/Resources/mdoc-html-format.xsl
@@ -1,24 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- mdoc-html-format.xsl: HTML pass-through formatting support
-
- Author: Jonathan Pryor (jpryor@novell.com)
-
--->
-
-<xsl:stylesheet
- version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- >
-
- <!-- pass-through any other elements unchanged - they may be HTML -->
- <xsl:template match="//format[@type='text/html']//*">
- <xsl:copy>
- <xsl:copy-of select="@*" />
- <xsl:apply-templates select="*|node()" />
- </xsl:copy>
- </xsl:template>
-
-</xsl:stylesheet>
-
View
2,771 mcs/tools/monkeydoc/Resources/mdoc-html-utils.xsl
0 additions, 2,771 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
131 mcs/tools/monkeydoc/Resources/mdoc-sections-css.xsl
@@ -1,131 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- mdoc-sections-css.xsl: Common CSS implementation of mdoc-html-utils.xsl
- required functions.
-
-
- Including XSLT files need to provide the following functions:
-
- - CreateExpandedToggle()
-
- Author: Jonathan Pryor <jpryor@novell.com>
--->
-
-<xsl:stylesheet
- version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:monodoc="monodoc:///extensions"
- exclude-result-prefixes="monodoc"
- >
-
- <xsl:template name="CreateH2Section">
- <xsl:param name="name" />
- <xsl:param name="id" select="''" />
- <xsl:param name="child-id" select="generate-id (.)" />
- <xsl:param name="content" />
-
- <h2 class="Section">
- <xsl:if test="$id != ''">
- <xsl:attribute name="id">
- <xsl:value-of select="$id" />
- </xsl:attribute>
- </xsl:if>
- <xsl:value-of select="$name" />
- </h2>
- <div class="SectionBox" id="{$child-id}">
- <xsl:copy-of select="$content" />
- </div>
- </xsl:template>
-
- <xsl:template name="CreateH3Section">
- <xsl:param name="name" />
- <xsl:param name="id" select="''" />
- <xsl:param name="class" select="''" />
- <xsl:param name="child-id" select="generate-id (.)" />
- <xsl:param name="content" />
-
- <h3>
- <xsl:if test="$class != ''">
- <xsl:attribute name="class">
- <xsl:value-of select="$class" />
- </xsl:attribute>
- </xsl:if>
- <xsl:if test="$id != ''">
- <xsl:attribute name="id">
- <xsl:value-of select="$id" />
- </xsl:attribute>
- </xsl:if>
- <xsl:value-of select="$name" />
- </h3>
- <blockquote id="{$child-id}">
- <xsl:copy-of select="$content" />
- </blockquote>
- </xsl:template>
-
- <xsl:template name="CreateH4Section">
- <xsl:param name="name" />
- <xsl:param name="id" select="''" />
- <xsl:param name="child-id" select="generate-id (.)" />
- <xsl:param name="content" />
-
- <h4 class="Subsection">
- <xsl:if test="$id != ''">
- <xsl:attribute name="id">
- <xsl:value-of select="$id" />
- </xsl:attribute>
- </xsl:if>
- <xsl:value-of select="$name" />
- </h4>
- <blockquote class="SubsectionBox" id="{$child-id}">
- <xsl:copy-of select="$content" />
- </blockquote>
- </xsl:template>
-
- <xsl:template name="CreateEnumerationTable">
- <xsl:param name="content" />
- <table class="Enumeration">
- <tr><th>Member Name</th><th>Description</th></tr>
- <xsl:copy-of select="$content" />
- </table>
- </xsl:template>
-
- <xsl:template name="CreateHeader">
- <xsl:param name="content" />
- <xsl:copy-of select="$content" />
- </xsl:template>
-
- <xsl:template name="CreateListTable">
- <xsl:param name="header" />
- <xsl:param name="content" />
- <table class="Documentation">
- <tr><xsl:copy-of select="$header" /></tr>
- <xsl:copy-of select="$content" />
- </table>
- </xsl:template>
-
- <xsl:template name="CreateMembersTable">
- <xsl:param name="content" />
- <table class="TypeMembers">
- <xsl:copy-of select="$content" />
- </table>
- </xsl:template>
-
- <xsl:template name="CreateSignature">
- <xsl:param name="content" />
- <h2>Syntax</h2>
- <div class="Signature">
- <xsl:copy-of select="$content" />
- </div>
- </xsl:template>
-
- <xsl:template name="CreateTypeDocumentationTable">
- <xsl:param name="content" />
- <table class="TypeDocumentation">
- <tr><th>Type</th><th>Reason</th></tr>
- <xsl:copy-of select="$content" />
- </table>
- </xsl:template>
-
-</xsl:stylesheet>
-
View
123 mcs/tools/monkeydoc/Resources/mdoc-sections.xsl
@@ -1,123 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- mdoc-sections.xsl: Common non-CSS implementation of mdoc-html-utils.xsl
- required functions.
-
- Author: Jonathan Pryor <jpryor@novell.com>
-
--->
-
-<xsl:stylesheet
- version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:monodoc="monodoc:///extensions"
- exclude-result-prefixes="monodoc"
- >
- <xsl:template name="CreateH2Section">
- <xsl:param name="name" />
- <xsl:param name="id" select="''" />
- <xsl:param name="child-id" select="generate-id (.)" />
- <xsl:param name="content" />
-
- <h2 class="Section">
- <xsl:value-of select="$name" />
- </h2>
- <blockquote id="{$child-id}">
- <xsl:copy-of select="$content" />
- </blockquote>
- </xsl:template>
-
- <xsl:template name="CreateH3Section">
- <xsl:param name="name" />
- <xsl:param name="id" select="''" />
- <xsl:param name="class" select="''" />
- <xsl:param name="child-id" select="generate-id (.)" />
- <xsl:param name="content" />
-
- <h3>
- <xsl:value-of select="$name" />
- </h3>
- <blockquote id="{$child-id}">
- <xsl:copy-of select="$content" />
- </blockquote>
- </xsl:template>
-
- <xsl:template name="CreateH4Section">
- <xsl:param name="name" />
- <xsl:param name="id" select="''" />
- <xsl:param name="child-id" select="generate-id (.)" />
- <xsl:param name="content" />
-
- <h4 class="Subsection">
- <xsl:value-of select="$name" />
- </h4>
- <blockquote class="SubsectionBox" id="{$child-id}">
- <xsl:copy-of select="$content" />
- </blockquote>
- </xsl:template>
-
- <xsl:template name="CreateEnumerationTable">
- <xsl:param name="content" />
- <table class="EnumerationsTable" border="1" cellpadding="10" width="100%">
- <tr bgcolor="#f2f2f2">
- <th>Member Name</th>
- <th>Description</th>
- </tr>
- <xsl:copy-of select="$content" />
- </table>
- </xsl:template>
-
- <xsl:template name="CreateHeader">
- <xsl:param name="content" />
- <table class="HeaderTable" width="100%" cellpadding="5">
- <tr bgcolor="#b0c4de">
- <td>
- <xsl:copy-of select="$content" />
- </td>
- </tr>
- </table>
- </xsl:template>
-
- <xsl:template name="CreateListTable">
- <xsl:param name="header" />
- <xsl:param name="content" />
- <table border="1" cellpadding="3" width="100%">
- <tr bgcolor="#f2f2f2" valign="top">
- <xsl:copy-of select="$header" />
- </tr>
- <xsl:copy-of select="$content" />
- </table>
- </xsl:template>
-
- <xsl:template name="CreateMembersTable">
- <xsl:param name="content" />
- <table border="1" cellpadding="6" width="100%">
- <xsl:copy-of select="$content" />
- </table>
- </xsl:template>
-
- <xsl:template name="CreateSignature">
- <xsl:param name="content" />
- <table class="SignatureTable" bgcolor="#c0c0c0" cellspacing="0" width="100%">
- <tr><td>
- <table class="InnerSignatureTable" cellpadding="10" cellspacing="0" width="100%">
- <tr bgcolor="#f2f2f2">
- <td>
- <xsl:copy-of select="$content" />
- </td></tr>
- </table>
- </td></tr>
- </table>
- <br />
- </xsl:template>
-
- <xsl:template name="CreateTypeDocumentationTable">
- <xsl:param name="content" />
- <table class="TypePermissionsTable" border="1" cellpadding="6" width="100%">
- <tr bgcolor="#f2f2f2"><th>Type</th><th>Reason</th></tr>
- <xsl:copy-of select="$content" />
- </table>
- </xsl:template>
-
-</xsl:stylesheet>
View
47 mcs/tools/monkeydoc/Resources/mono-ecma-css.xsl
@@ -1,47 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- mono-ecma-css.xsl: ECMA-style docs to HTML+CSS stylesheet trasformation
- based on mono-ecma.xsl by Joshua Tauberer
-
- Author: Joshua Tauberer (tauberer@for.net)
- Author: Mario Sopena Novales (mario.sopena@gmail.com)
-
- TODO:
- split this into multiple files
--->
-
-<xsl:stylesheet
- version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:monodoc="monodoc:///extensions"
- exclude-result-prefixes="monodoc"
- >
- <xsl:include href="mdoc-sections-css.xsl" />
- <xsl:include href="mono-ecma-impl.xsl" />
-
- <xsl:output omit-xml-declaration="yes" />
-
- <xsl:template name="CreateExpandedToggle">
- <img src="xtree/images/clean/Lminus.gif" border="0" align="top"/>
- </xsl:template>
-
- <xsl:template name="CreateCodeBlock">
- <xsl:param name="language" />
- <xsl:param name="content" />
-
- <div class="CodeExample">
- <p><b><xsl:value-of select="$language"/> Example</b></p>
- <div>
- <pre>
- <!--
- <xsl:value-of select="monodoc:Colorize($content, string($language))"
- disable-output-escaping="yes" />
- -->
- <xsl:value-of select="$content" />
- </pre>
- </div>
- </div>
- </xsl:template>
-
-</xsl:stylesheet>
View
540 mcs/tools/monkeydoc/Resources/mono-ecma-impl.xsl
@@ -1,540 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
- mono-ecma-impl.xsl: ECMA-style docs to HTML stylesheet trasformation
-
- Author: Joshua Tauberer (tauberer@for.net)
- Author: Jonathan Pryor (jpryor@novell.com)
-
- This file requires that including files define the following callable
- templates:
- - CreateCodeBlock (language, content)
- - CreateEnumerationTable (content)
- - CreateHeader (content)
- - CreateListTable (header, content)
- - CreateMembersTable (content)
- - CreateSignature (content)
- - CreateTypeDocumentationTable (content)
-
--->
-
-<xsl:stylesheet
- version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:monodoc="monodoc:///extensions"
- exclude-result-prefixes="monodoc"
- >
- <xsl:include href="mdoc-html-utils.xsl" />
-
- <!-- TEMPLATE PARAMETERS -->
-
- <xsl:param name="show"/>
- <xsl:param name="membertype"/>
- <xsl:param name="namespace"/>
-
- <!-- THE MAIN RENDERING TEMPLATE -->
-
- <xsl:template match="Type|elements">
- <!-- The namespace that the current type belongs to. -->
- <xsl:variable name="TypeNamespace" select="substring(@FullName, 1, string-length(@FullName) - string-length(@Name) - 1)"/>
-
- <!-- HEADER -->
-
- <xsl:variable name="typename" select="translate (@FullName, '+', '.')" />
- <xsl:variable name="typelink">
- <xsl:call-template name="GetEscapedTypeName">
- <xsl:with-param name="typename" select="@FullName" />
- </xsl:call-template>
- </xsl:variable>
- <xsl:variable name="basename">
- <xsl:if test="Base/BaseTypeName">
- <xsl:value-of select="translate (Base/BaseTypeName, '+', '.')" />
- </xsl:if>
- </xsl:variable>
- <xsl:variable name="baselink">
- <xsl:if test="Base/BaseTypeName">
- <xsl:call-template name="GetEscapedTypeName">
- <xsl:with-param name="typename" select="Base/BaseTypeName" />
- </xsl:call-template>
- </xsl:if>
- </xsl:variable>
-
- <xsl:call-template name="CreateHeader">
- <xsl:with-param name="content">
- <ul class="breadcrumb">
- <xsl:choose>
- <xsl:when test="$show='masteroverview'">
- <li class="namespace">
- <xsl:text>Namespaces in this Collection</xsl:text>
- </li>
- </xsl:when>
- <xsl:when test="$show='typeoverview'">
- <li class="namespace">
- <a>
- <xsl:attribute name="href">N:<xsl:value-of select="$TypeNamespace"/></xsl:attribute>
- <xsl:value-of select="$TypeNamespace"/></a>
- </li>
- <li class="pubclass">
- <xsl:value-of select="@Name"/>
- </li>
- </xsl:when>
- <xsl:when test="$show='members'">
- <li class="namespace">
- <a>
- <xsl:attribute name="href">N:<xsl:value-of select="$TypeNamespace"/></xsl:attribute>
- <xsl:value-of select="$TypeNamespace"/>
- </a>
- </li>
- <li class="pubclass">
- <a>
- <xsl:attribute name="href">
- <xsl:text>T:</xsl:text>
- <xsl:value-of select="$typelink" />
- </xsl:attribute>
- <xsl:value-of select="@Name"/>
- </a>
- </li>
- <li class="members">
- Members
- </li>
- </xsl:when>
- <xsl:when test="$show='member' or $show='overloads'">
- <li class="namespace">
- <a>
- <xsl:attribute name="href">N:<xsl:value-of select="$TypeNamespace"/></xsl:attribute>
- <xsl:value-of select="$TypeNamespace"/></a>
- </li>
- <li class="pubclass">
- <a>
- <xsl:attribute name="href">
- <xsl:text>T:</xsl:text>
- <xsl:value-of select="$typelink" />
- </xsl:attribute>
- <xsl:value-of select="@Name"/>
- </a>
- </li>
- <li class="pubproperty">
- <xsl:choose>
- <xsl:when test="$membertype='Operator'">
- <xsl:value-of select="$typename"/>
- <xsl:value-of select="' '"/> <!-- hard space -->
- <xsl:value-of select="substring-after(Members/Member[MemberType='Method'][position()=$index+1]/@MemberName, 'op_')"/>
- </xsl:when>
- <xsl:when test="$membertype='Constructor'">
- <xsl:value-of select="$typename"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="Members/Member[MemberType=$membertype][position()=$index+1]/@MemberName"/>
- </xsl:otherwise>
- </xsl:choose>
- </li>
- </xsl:when>
- <xsl:when test="$show='namespace'">
- <li class="namespace">
- <xsl:value-of select="$namespace"/>
- </li>
- </xsl:when>
- </xsl:choose>
- </ul>
- <div class="named-header">
- <xsl:choose>
- <xsl:when test="$show='masteroverview'">
- <xsl:text>Master Overview</xsl:text>
- </xsl:when>
- <xsl:when test="$show='typeoverview'">
- <xsl:value-of select="$typename"/>
- <xsl:value-of select="' '"/>
- <xsl:call-template name="gettypetype"/>
- </xsl:when>
- <xsl:when test="$show='members' and $membertype='All'">
- <xsl:value-of select="$typename"/>
- <xsl:text> Members</xsl:text>
- </xsl:when>
- <xsl:when test="$show='members'">
- <xsl:value-of select="$typename"/>
- <xsl:text>: </xsl:text>
- <xsl:value-of select="$membertype"/>
- <xsl:text> Members</xsl:text>
- </xsl:when>
- <xsl:when test="$show='member'">
- <xsl:choose>
- <xsl:when test="$membertype='Operator'">
- <xsl:value-of select="$typename"/>
- <xsl:value-of select="' '"/> <!-- hard space -->
- <xsl:value-of select="substring-after(Members/Member[MemberType='Method'][position()=$index+1]/@MemberName, 'op_')"/>
- </xsl:when>
- <xsl:when test="$membertype='Constructor'">
- <xsl:value-of select="$typename"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$typename"/>.<xsl:value-of select="Members/Member[MemberType=$membertype][position()=$index+1]/@MemberName"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:value-of select="' '"/>
- <xsl:value-of select="$membertype"/>
- </xsl:when>
-
- <xsl:when test="$show='namespace'">
- <xsl:value-of select="$namespace"/>
- <xsl:text> Namespace</xsl:text>
- </xsl:when>
-
- <xsl:when test="$show='overloads'">
- <xsl:value-of select="$typename"/>.<xsl:value-of select="$index"/> Overloads
- </xsl:when>
-
- </xsl:choose>
- </div>
- </xsl:with-param>
- </xsl:call-template>
-
- <!-- SELECT WHAT TYPE OF VIEW:
- typeoverview
- members
- member
- -->
- <div class="Content">
- <xsl:choose>
- <xsl:when test="$show='masteroverview'">
-
- <xsl:for-each select="namespace">
- <xsl:sort select="@ns"/>
-
- <!-- Don't display the namespace if it is a sub-namespace of another one.
- But don't consider namespaces without periods, e.g. 'System', to be
- parent namespaces because then most everything will get grouped under it. -->
- <xsl:variable name="ns" select="@ns"/>
- <xsl:if test="count(parent::*/namespace[not(substring-before(@ns, '.')='') and starts-with($ns, concat(@ns, '.'))])=0">
-
- <p>
- <b><a href="N:{@ns}"><xsl:value-of select="@ns"/></a></b>
- </p>
- <blockquote>
- <div>
- <