Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[webdoc] make some changes to how plugins are wired
Browse files Browse the repository at this point in the history
  • Loading branch information
vyedin committed Mar 5, 2013
1 parent f3e6288 commit 2f420da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 0 additions & 4 deletions webdoc/Global.asax
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public static RootTree help_tree;
[ThreadStatic]
static SearchableIndex search_index;
public static string ua = null;
static string Plugins = null;
void Application_Start ()
{
Expand All @@ -27,9 +26,6 @@ void Application_Start ()
//Google analytics if we want em
ua = WebConfigurationManager.AppSettings["GoogleAnalytics"];
//grab the Plugins def value from web.config
Plugins = WebConfigurationManager.AppSettings["Plugins"];
SettingsHandler.Settings.EnableEditing = false;
}
Expand Down
13 changes: 12 additions & 1 deletion webdoc/index.aspx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,18 @@ void Page_Load (object sender, EventArgs e)
</div>
<% = Plugin.GetPluginContent (Plugin.PluginContent.Footer) %>
<!--include external javascript-->
<% = Global.CreateTreeBootFragment () %>
<% = Plugin.GetPluginContent (Plugin.PluginContent.Javascript) %>
<script type="text/javascript">
var tree = new PTree ();
tree.strSrcBase = 'monodoc.ashx?tree=';
tree.strActionBase = '?link=';
tree.strImagesBase = 'plugins/sidebar-plugin/dependencies/xtree/images/msdn2/';
tree.strImageExt = '.gif';
tree.onClickCallback = function (url) { change_page (url); };
var content = document.getElementById ('contentList');
var root = tree.CreateItem (null, 'Documentation List', 'root:', '', true);
content.appendChild (root);
<% = Global.CreateTreeBootFragment () %>
</script>
</body>
</html>

0 comments on commit 2f420da

Please sign in to comment.