新增读取文档帮助

This commit is contained in:
hogan
2019-01-28 17:30:59 +08:00
parent 054f85de36
commit 0d427e0b8a
139 changed files with 4384 additions and 1146 deletions

View File

@ -4,68 +4,53 @@
}
@if (ViewBag.DocumentInfo == null)
{
<span style="font-size:20px; color:red;">
编号: @ViewBag.DocumentID
</span>
<span>测试没有</span>
<span>文章不存在,请选择其它文章查看!</span>
}
else
{
<h1 class="site-h1">@*开始使用 - 入门指南*@@documentinfo.DocTitle</h1>
<h1 class="site-h1">@documentinfo.DocTitle</h1>
<div id="details_content" style="display:none;">
@*<markdown>@documentinfo.DocContent</markdown>*@
<blockquote>
@documentinfo.DocAbstract
</blockquote>
@documentinfo.DocContent
@*<blockquote class="layui-elem-quote">
lFreeSql 是轻量化、可扩展和跨平台版的 .NETStandard 数据访问技术实现。<br />
FreeSql 可用作对象关系映射程序 (O/RM),以便于开发人员能够使用 .NETStandard 对象来处理数据库,不必经常编写大部分数据访问代码。<br />
FreeSql 支持 MySql/SqlServer/PostgreSQL 数据库技术实现。<br />
FreeSql 打造 .NETCore 最方便的 ORMdbfirst codefirst混合使用codefirst模式下的开发阶段建好实体不用执行任何操作就能创建表和修改字段dbfirst模式下提供api+模板自定义生成代码作者提供了3种模板。<br />
FreeSql 目前仍处在测试阶段您可以持续关注或者参与给出宝贵意见QQ群4336577
</blockquote>
<fieldset class="layui-elem-field layui-field-title site-title">
<legend><a name="compatibility">兼容性和面向场景</a></legend>
</fieldset>
<div class="site-text">
<p>1. 官网首页下载</p>
<blockquote class="layui-elem-quote layui-quote-nm">
您可以通过 <a href="#">Github</a> 下载到FreeSql的最新版
</blockquote>
<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">code<a href="#" target="_blank">FreeSql</a></h3><ol class="layui-code-ol"><li> ├─css //css目录</li><li> │ │─modules //模块css目录一般如果模块相对较大我们会单独提取比如下面三个</li><li> │ │ ├─laydate</li><li> │ │ ├─layer</li><li> │ │ └─layim</li><li> │ └─layui.css //核心样式文件</li><li> ├─font //字体图标目录</li><li> ├─images //图片资源目录目前只有layim和编辑器用到的GIF表情</li><li> │─lay //模块核心目录</li><li> │ └─modules //各模块组件</li><li> │─layui.js //基础核心库</li><li> └─layui.all.js //包含layui.js和所有模块的合并文件</li><li> </li></ol></pre>
<p>2. Git 仓库下载</p>
<blockquote class="layui-elem-quote layui-quote-nm">
你也可以通过 <a href="https://github.com/2881099/FreeSql/" target="_blank">GitHub</a> 或 <a href="https://gitee.com/sentsin/layui" target="_blank">码云</a> 得到 FreeSql 的完整开发包,以便于你进行二次开发,或者 Fork FreeSql 为我们贡献方案
<br><br>
<iframe src="//ghbtns.com/github-btn.html?user=2881099&amp;repo=FreeSql&amp;type=watch&amp;count=true&amp;size=large" allowtransparency="true" frameborder="0" scrolling="0" width="156px" height="30px"></iframe>
<iframe src="//ghbtns.com/github-btn.html?user=2881099&amp;repo=FreeSql&amp;type=fork&amp;count=true&amp;size=large" allowtransparency="true" frameborder="0" scrolling="0" width="156px" height="30px"></iframe>
</blockquote>
<p>3. npm 安装</p>
<pre class="layui-code layui-box layui-code-view layui-code-notepad" lay-skin="notepad"><h3 class="layui-code-h3">code<a href="#" target="_blank">FreeSql</a></h3><ol class="layui-code-ol"><li> </li><li>Install-Package FreeSql </li><li> </li></ol></pre>
<p>一般用于 WebPack 管理</p>
</div>
<fieldset class="layui-elem-field layui-field-title site-title">
<legend><a name="quickstart">快速上手</a></legend>
</fieldset>
<div class="site-text">
<p>1. 官网首页下载</p>
<blockquote class="layui-elem-quote layui-quote-nm">
你可以在我们的 <a href="http://www.layui.com/">官网首页</a> 下载到 layui 的最新版,它经过了自动化构建,更适合用于生产环境。目录结构如下:
</blockquote>
<pre class="layui-code layui-box layui-code-view"><h3 class="layui-code-h3">code<a href="#" target="_blank">FreeSql</a></h3><ol class="layui-code-ol"><li> ├─css //css目录</li><li> │ │─modules //模块css目录一般如果模块相对较大我们会单独提取比如下面三个</li><li> │ │ ├─laydate</li><li> │ │ ├─layer</li><li> │ │ └─layim</li><li> │ └─layui.css //核心样式文件</li><li> ├─font //字体图标目录</li><li> ├─images //图片资源目录目前只有layim和编辑器用到的GIF表情</li><li> │─lay //模块核心目录</li><li> │ └─modules //各模块组件</li><li> │─layui.js //基础核心库</li><li> └─layui.all.js //包含layui.js和所有模块的合并文件</li><li> </li></ol></pre>
</div>*@
</div>
<script>
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: true,
pedantic: false,
sanitize: false,
smartLists: true,
smartypants: false,
});
document.getElementById('details_content').innerHTML =
marked($("#details_content").html());
if ('@documentinfo.OriginType' == '1') {
var options = {
elm: "details_content", url: "@documentinfo.OriginUrl", paramters: "", loadIndex: 1,
successCallBack: function () {
debugger
document.getElementById('details_content').innerHTML =
marked($("#details_content").html());
}
};
freejs.loadHtml(options);
}
else {
if ('@documentinfo.EditorMode' == '0') {
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: true,
pedantic: false,
sanitize: false,
smartLists: true,
smartypants: false,
});
marked.setOptions({
highlight: function (code) {
return hljs.highlightAuto(code).value;
}
});
document.getElementById('details_content').innerHTML =
marked($("#details_content").html());
}
else {
//直接里面的内容就是HTML
}
}
$("#details_content").show();
</script>
}