Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/webdoc
diff options
context:
space:
mode:
authorNina Vyedin <nina.vyedin@gmail.com>2013-03-05 03:32:51 +0400
committerNina Vyedin <nina.vyedin@gmail.com>2013-03-05 07:56:30 +0400
commit2c3ad5c88af8e511070a531cca00369f66183e32 (patch)
treef74eea45f47941926f8a0336ed3a5759e3d7a09e /webdoc
parentc7fa4616ea7c89c2f53c9ebfca43e203c38c6425 (diff)
[webdoc] working towards webdoc xummary presentation
Diffstat (limited to 'webdoc')
-rw-r--r--webdoc/api.master3
-rw-r--r--webdoc/common.css11
-rw-r--r--webdoc/common.js46
-rw-r--r--webdoc/index.aspx1
-rw-r--r--webdoc/monodoc.ashx38
-rw-r--r--webdoc/monodoc.css1
-rw-r--r--webdoc/plugins.def9
7 files changed, 85 insertions, 24 deletions
diff --git a/webdoc/api.master b/webdoc/api.master
index a09fa42e..10ea2d1d 100644
--- a/webdoc/api.master
+++ b/webdoc/api.master
@@ -17,11 +17,12 @@
<link type="text/css" rel="stylesheet" href="common.css"/>
<% = Plugin.GetPluginContent (Plugin.PluginContent.Css) %>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+ <script type="text/javascript" src="common.js"></script>
</head>
<body>
+<% = Plugin.GetPluginContent (Plugin.PluginContent.Header) %>
<form id="application_content" runat="server">
- <% = Plugin.GetPluginContent (Plugin.PluginContent.Header) %>
<asp:contentplaceholder id="Main" runat="server" />
<!--uncomment if you want to use the contrib plugin
diff --git a/webdoc/common.css b/webdoc/common.css
index 0feaef4a..34478fb5 100644
--- a/webdoc/common.css
+++ b/webdoc/common.css
@@ -2,10 +2,12 @@
/*bare-bones css for most layouts*/
body {
padding: 0;
+ height: 100%;
}
html {
padding: 0;
margin: 0 auto;
+ height: 100%;
}
.code {
font-family: "Courier New", Courier;
@@ -27,4 +29,11 @@ iframe {
font: inherit;
vertical-align: baseline;
}
-
+#content_frame {
+ width: 100%;
+ height: 100%;
+}
+#main_part {
+ width: 100%;
+ height: 100%;
+}
diff --git a/webdoc/common.js b/webdoc/common.js
new file mode 100644
index 00000000..f7acf251
--- /dev/null
+++ b/webdoc/common.js
@@ -0,0 +1,46 @@
+$(function () {
+//a hack for sizing our iframe correctly
+ var getHeight = function () {
+ <!--
+ var viewportwidth;
+ var viewportheight;
+ // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
+ if (typeof window.innerWidth != 'undefined')
+ {
+ viewportwidth = window.innerWidth,
+ viewportheight = window.innerHeight
+ }
+ // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
+ else if (typeof document.documentElement != 'undefined'
+ && typeof document.documentElement.clientWidth !=
+ 'undefined' && document.documentElement.clientWidth != 0)
+ {
+ viewportwidth = document.documentElement.clientWidth,
+ viewportheight = document.documentElement.clientHeight
+ }
+ // older versions of IE
+ else
+ {
+ viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
+ viewportheight = document.getElementsByTagName('body')[0].clientHeight
+ }
+ return viewportheight;
+ //-->
+ }
+
+ var main_part = $('#main_part');
+ var content_frame = main_part.find('#content_frame');
+ var resize_mainpart = function () {
+ main_part.height (getHeight() - 75);
+ main_part.children('#side').css ('height', '100%');
+ content_frame.css ('height', '97.5%');
+ }
+
+ var resizeTimer;
+ $(window).resize(function() {
+ clearTimeout(resizeTimer);
+ resizeTimer = setTimeout(resize_mainpart, 100);
+ });
+
+ resize_mainpart ();
+});
diff --git a/webdoc/index.aspx b/webdoc/index.aspx
index fb0e422d..249eaf68 100644
--- a/webdoc/index.aspx
+++ b/webdoc/index.aspx
@@ -27,6 +27,7 @@ string nQueryString=monodocUrl+"?";
</script>
<div id="main_part">
+ <!--TODO: wrap this as an option for the sidebar plugin...-->
<div id="side">
<a class="doc-sidebar-toggle shrink" href="#"></a>
<a class="doc-sidebar-toggle expand" href="#"></a>
diff --git a/webdoc/monodoc.ashx b/webdoc/monodoc.ashx
index 236785d1..83c68e6c 100644
--- a/webdoc/monodoc.ashx
+++ b/webdoc/monodoc.ashx
@@ -322,29 +322,31 @@ namespace Mono.Website.Handlers
ctx.Response.Write (@"
<html>
<head>
- <link type='text/css' rel='stylesheet' href='common.css' media='all' title='Default style' />
- <meta name='TreePath' value='");
- ctx.Response.Write (tree_path);
- ctx.Response.Write (@"' />
-<style type='text/css'>
- body, h1, h2, h3, h4, h5, h6, .named-header {
- font-family: 'Myriad Pro', 'myriad pro', Helvetica, Verdana, Arial !important;
- }
- p, li, span, table, pre, .Content {
- font-family: Helvetica, Verdana, Arial !important;
- }
- .named-header { padding: 8px 0 20px 10px !important; font-weight: 600 !important; font-size: 2.3em !important; margin: 0.3em 0 0.6em 0 !important; margin-top: 0 !important; font-size: 2.3em !important; }
- h2 { padding-top: 1em !important; margin-top: 0 !important; font-weight: 600 !important; font-size: 1.8em !important; color: #333 !important; }
- p { margin: 0 0 1.3em !important; color: #555753 !important; line-height: 1.8 !important; }
- body, table, pre { line-height: 1.8 !important; color: #55753 !important; }
- .breadcrumb { font-size: 12px !important; }
-</style>
-<script src='//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
+ <link type='text/css' rel='stylesheet' href='monodoc.css' media='all' title='Default style' />
+ <meta name='TreePath' value='");
+ ctx.Response.Write (tree_path);
+ ctx.Response.Write (@"' />
+ <style type='text/css'>
+ body, h1, h2, h3, h4, h5, h6, .named-header {
+ font-family: 'Myriad Pro', 'myriad pro', Helvetica, Verdana, Arial !important;
+ }
+ p, li, span, table, pre, .Content {
+ font-family: Helvetica, Verdana, Arial !important;
+ }
+ .named-header { padding: 8px 0 20px 10px !important; font-weight: 600 !important; font-size: 2.3em !important; margin: 0.3em 0 0.6em 0 !important; margin-top: 0 !important; font-size: 2.3em !important; }
+ h2 { padding-top: 1em !important; margin-top: 0 !important; font-weight: 600 !important; font-size: 1.8em !important; color: #333 !important; }
+ p { margin: 0 0 1.3em !important; color: #555753 !important; line-height: 1.8 !important; }
+ body, table, pre { line-height: 1.8 !important; color: #55753 !important; }
+ .breadcrumb { font-size: 12px !important; }
+ </style>
+
+ <script src='//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script>
<script type='text/javascript'>
function printFrame() {
window.print();
return false;
+
}
//pass the function object to parent
parent.printFrame = printFrame;
diff --git a/webdoc/monodoc.css b/webdoc/monodoc.css
new file mode 100644
index 00000000..af1c2c7f
--- /dev/null
+++ b/webdoc/monodoc.css
@@ -0,0 +1 @@
+/*This file is referenced in monodoc
diff --git a/webdoc/plugins.def b/webdoc/plugins.def
index 6879cf3c..ed267783 100644
--- a/webdoc/plugins.def
+++ b/webdoc/plugins.def
@@ -1,8 +1,9 @@
-#####SKIN####
-skins/xamarin-external
+#####SKIN (pick ONE)#####
+#skins/xamarin-external
+skins/mono-external
######PLUGINS######
-# plugins/search-plugin/fastsearch
-plugins/search-plugin/fullsearch
+#plugins/search-plugin/fastsearch
+#plugins/search-plugin/fullsearch
plugins/sidebar-plugin
# plugins/contributior-plugin