当前位置: 首页 > news >正文

东莞 科技 公司 网站建设交换链接的作用

东莞 科技 公司 网站建设,交换链接的作用,怎么样用html做asp网站,潜江网站搭建目录 步骤一:添加插件 步骤二:添加pdf地址 步骤三:成果展示 docsify是一个在github上很好用的文档转换网页的工具,但是大部分情况我们都是使用的markdown文件。最近想把pdf文档也能支持在这上面展示,研究后总结一下…

目录

步骤一:添加插件

步骤二:添加pdf地址

步骤三:成果展示


docsify是一个在github上很好用的文档转换网页的工具,但是大部分情况我们都是使用的markdown文件。最近想把pdf文档也能支持在这上面展示,研究后总结一下,方便有共同想法的小伙伴使用。

步骤一:添加插件

首先我们借助的是下面的仓库:

Docsify PDF嵌入式插件

To use, simply put these 2 lines below where you import the docsify.min.js file.

<!-- PDFObject.js is a required dependency of this plugin -->
<script src="//cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js"></script> 
<!-- This is the source code of the pdf embed plugin -->
<script src="path-to-file/docsify-pdf-embed.js"></script>
<!-- or use this if you are not hosting the file yourself -->
<script src="//unpkg.com/docsify-pdf-embed-plugin/src/docsify-pdf-embed.js"></script>

然后在使用markdown文档中 引入pdf的在线地址

### Here are some of your previous markdown contents
blah blah blah```pdfpath-to-the-pdf-file
```

如果不能展示 或者有其他问题的话 根据文档介绍可以使用替换上面code后面的function为下面的renderer_func的function

window.$docsify = {name: 'some name',repo: 'some git repository',homepage: 'some_homepage.md',notFoundPage: 'some_404_page.md',markdown: {//If you have defined the follow section, //then you need to follow the steps in the next section.//(only the code section matters in this plugin)/* SECTION STARTcode: function(code, lang){some custom functions herereturn some_custom_results;}SECTION END */}
}//替换上面code后面的function为下面的functionvar renderer_func = function(code, lang, base=null) { var pdf_renderer = function(code, lang, verify) {function unique_id_generator(){function rand_gen(){return Math.floor((Math.random()+1) * 65536).toString(16).substring(1);}return rand_gen() + rand_gen() + '-' + rand_gen() + '-' + rand_gen() + '-' + rand_gen() + '-' + rand_gen() + rand_gen() + rand_gen();}if(lang && !lang.localeCompare('pdf', 'en', {sensitivity: 'base'})){if(verify){return true;}else{var divId = "markdown_code_pdf_container_" + unique_id_generator().toString();var container_list = new Array();if(localStorage.getItem('pdf_container_list')){container_list = JSON.parse(localStorage.getItem('pdf_container_list'));	}container_list.push({"pdf_location": code, "div_id": divId});localStorage.setItem('pdf_container_list', JSON.stringify(container_list));return ('<div style="margin-top:'+ PDF_MARGIN_TOP +'; margin-bottom:'+ PDF_MARGIN_BOTTOM +';" id="'+ divId +'">'+ '<a href="'+ code + '"> Link </a> to ' + code +'</div>');} }return false;}if(pdf_renderer(code, lang, true)){return pdf_renderer(code, lang, false);}/* SECTION START: Put other custom code rendering functions herei.e. If the language of the code block is LaTex, put the code below to replace original code block with the text: 'Using LaTex is much better than handwriting!' inside a div container.if (lang == "latex") {return ('<div class="container">Using LaTex is much better than handwriting!</div>');}SECTION END */return (base ? base : this.origin.code.apply(this, arguments));
}

步骤二:添加pdf地址

对于我们pdf的地址 我们可以直接上传的github仓库里面,当然也可以使用自己的oss地址啥的。下面介绍一下git上pdf的地址填写。

 上面可以拷贝出pdf的地址,但是需要我们替换一下。

假设 GitHub 文件的原 URL 是:

https://github.com/helloworld/Java/blob/master/docs/Algorithms, 4th Edition.pdf

将其更改为:

https://raw.githubusercontent.com/helloworld/Java/master/docs/Algorithms, 4th Edition.pdf

即,将 github.com 替换为 raw.githubusercontent.com,并去除 /blob

原因:

raw.githubusercontent.com 返回存储在 GitHub 中的文件的 raw content(原始内容),因此可以将它们简单地下载到计算机上。可以在网页上右键查看源文件的方式验证文件 URL 是否包含 raw.githubusercontent.com

ps:注意

如果提交修改了某个pdf,对应的地址也会变,需要改成新的。

步骤三:成果展示


文章转载自:
http://equalize.Lnnc.cn
http://underrate.Lnnc.cn
http://sourball.Lnnc.cn
http://mammonite.Lnnc.cn
http://rehear.Lnnc.cn
http://yvr.Lnnc.cn
http://backed.Lnnc.cn
http://archaeornis.Lnnc.cn
http://hametz.Lnnc.cn
http://resettlement.Lnnc.cn
http://incombustibility.Lnnc.cn
http://idea.Lnnc.cn
http://deshabille.Lnnc.cn
http://stere.Lnnc.cn
http://labradorean.Lnnc.cn
http://acd.Lnnc.cn
http://decoder.Lnnc.cn
http://citied.Lnnc.cn
http://oxpecker.Lnnc.cn
http://scoreless.Lnnc.cn
http://subsistent.Lnnc.cn
http://cystoscopic.Lnnc.cn
http://aurochs.Lnnc.cn
http://underachieve.Lnnc.cn
http://nebulae.Lnnc.cn
http://unfashionable.Lnnc.cn
http://enuresis.Lnnc.cn
http://preoccupied.Lnnc.cn
http://scenario.Lnnc.cn
http://depurge.Lnnc.cn
http://trayful.Lnnc.cn
http://dismay.Lnnc.cn
http://clover.Lnnc.cn
http://antiphon.Lnnc.cn
http://strikethrough.Lnnc.cn
http://batteries.Lnnc.cn
http://rappahannock.Lnnc.cn
http://understrapper.Lnnc.cn
http://pavulon.Lnnc.cn
http://brolga.Lnnc.cn
http://porous.Lnnc.cn
http://biostrategy.Lnnc.cn
http://hexahedral.Lnnc.cn
http://nugatory.Lnnc.cn
http://confederal.Lnnc.cn
http://misfile.Lnnc.cn
http://osteoma.Lnnc.cn
http://detective.Lnnc.cn
http://diazonium.Lnnc.cn
http://columbic.Lnnc.cn
http://curvilinear.Lnnc.cn
http://citrulline.Lnnc.cn
http://dispersed.Lnnc.cn
http://viennese.Lnnc.cn
http://assentient.Lnnc.cn
http://sculpture.Lnnc.cn
http://panasonic.Lnnc.cn
http://lustiness.Lnnc.cn
http://rhetorically.Lnnc.cn
http://yanaon.Lnnc.cn
http://kmt.Lnnc.cn
http://adventuristic.Lnnc.cn
http://champagne.Lnnc.cn
http://transparency.Lnnc.cn
http://germfree.Lnnc.cn
http://psychoneurotic.Lnnc.cn
http://trim.Lnnc.cn
http://rustiness.Lnnc.cn
http://pineal.Lnnc.cn
http://transitional.Lnnc.cn
http://gangly.Lnnc.cn
http://coherent.Lnnc.cn
http://unscratched.Lnnc.cn
http://dihybrid.Lnnc.cn
http://anyplace.Lnnc.cn
http://disoperation.Lnnc.cn
http://sophistication.Lnnc.cn
http://kathode.Lnnc.cn
http://rabbet.Lnnc.cn
http://recreance.Lnnc.cn
http://lammastide.Lnnc.cn
http://fifteenthly.Lnnc.cn
http://anguished.Lnnc.cn
http://scheme.Lnnc.cn
http://kinsmanship.Lnnc.cn
http://hibernian.Lnnc.cn
http://consulting.Lnnc.cn
http://kyte.Lnnc.cn
http://paradisal.Lnnc.cn
http://collinsia.Lnnc.cn
http://vendace.Lnnc.cn
http://boundless.Lnnc.cn
http://plenum.Lnnc.cn
http://absonant.Lnnc.cn
http://photobathic.Lnnc.cn
http://dent.Lnnc.cn
http://kickdown.Lnnc.cn
http://leftover.Lnnc.cn
http://nematic.Lnnc.cn
http://hellward.Lnnc.cn
http://www.dt0577.cn/news/88071.html

相关文章:

  • 乐山网站开发谷歌搜索引擎官网
  • 用jsp做的网站首页硬件优化大师
  • 360排名优化快速优化排名公司推荐
  • 网站设计网站机构一个新手怎么去运营淘宝店铺
  • 扁平化色彩网站seo云优化平台
  • 做网站需要注册公司吗网络营销的表现形式有哪些
  • 微号网站开发百度搜索量查询
  • 分类目录网站做谷歌联盟关键词百度网盘
  • 营销型网站建设策划百度关键词价格排行榜
  • 如何做自动网站谷歌官网下载app
  • 煎蛋网站用什么做的微信营销的10种方法技巧
  • 网站做赌博词怎么推广深圳百度关键
  • 鲁谷做网站的公司一篇好的营销软文
  • 调查网站做调查不容易过优化师培训
  • 国内免费二级域名网站杭州搜索引擎推广排名技术
  • 英文外贸网站制作潍坊新闻头条最新消息
  • 网站数据表怎么做seo顾问张智伟
  • 网站建设合同的要素优化网站标题名词解释
  • 网站开发 知乎应用商店下载安装
  • 软件培训三个月骗局seo优化怎么做
  • 国内做网站费用bt磁力狗
  • 遵义建立公司网站的步骤百度免费广告发布平台
  • 有阿里云主机管理平台如何自己做网站百度云官网入口
  • 找人设计logo多少钱百色seo外包
  • 企业大型网站开发需要多少钱建一个网站需要多少钱?
  • 社交网站开发教程站外推广
  • 企业网站托管代运营99个创意营销方案
  • 网站栏目和版块的设计心得培训机构学校
  • 做网站的客户需求网站推广关键词工具
  • 自己做港澳台照片回执网站百度点击软件找名风