UNPKG

ydoc

Version:

基于 Markdown 的静态站点生成工具

34 lines 5.92 kB
<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="UTF-8"/><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/><meta name="apple-mobile-web-app-capable" content="yes"/><meta name="apple-mobile-web-app-status-bar-style" content="black"/><link rel="apple-touch-icon" sizes="180x180" href="../ydoc/images/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="../ydoc/images/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="../ydoc/images/favicon-16x16.png"/><link rel="manifest" href="../ydoc/images/manifest.json"/><link rel="mask-icon" href="../ydoc/images/safari-pinned-tab.svg" color="#5bbad5"/><meta name="theme-color" content="#ffffff"/><meta http-equiv="Cache-Control" content="no-transform"/><meta http-equiv="Cache-Control" content="no-siteapp"/><title>主题</title><link rel="stylesheet" href="../ydoc/styles/style.css"/><meta name="author" content="ymfe"/><meta name="keywords"/><meta name="description" content="ydoc description demo"/><meta id="releativePath" content=".."/><link rel="stylesheet" href="../ydoc/ydoc-plugin-search/search.css"/><link rel="stylesheet" href="../ydoc/ydoc-plugin-edit-page/editPage.css"/><link rel="stylesheet" href="../custom.css"/></head><body><div class="g-doc"><div class="m-main" id="js-panel"><header class="m-header" id="js-header"><div class="m-header-title js-logo"><a href="../index.html" target="_self"><img class="logo" width="36" src="../ydoc/images/dog@1x.png" srcSet="../ydoc/images/dog@2x.png 2x"/><h6 class="name">YDoc</h6></a></div><div><div class="m-search"> <div class="icon">&#xf0fd;</div> <input type="text" class="input js-input" placeholder="搜索" /> <div class="m-search-result js-search-result"></div> </div></div><nav class="m-header-nav js-nav"><ul class="m-header-items"><li class="item "><a class="href" href="../documents/index.html">文档</a></li><li class="item "><a class="href" href="../plugin/index.html">插件</a></li><li class="item active"><a class="href" href="">主题</a></li><li class="item "><a class="href" href="../examples/index.html">示例 Demo</a></li><li class="item "><span class="href">规范</span><ul class="m-header-subtitle"><li class="item"><a href="../standard/style-guide.html" class="link">设计规范</a></li><li class="item"><a href="../standard/index.html" class="link">文档规范</a></li></ul></li></ul></nav><div id="js-nav-btn" class="m-header-btn ui-font-ydoc"></div></header><div class="m-content" id="js-content"> <div class="m-content-container m-pluginbox"><div class="m-pluginbox-item"><a href="https://www.npmjs.com/package/ydoc-theme-demo" target="_blank" class="href"><img class="img" src="https://ws1.sinaimg.cn/large/006cGJIjly1fwkjg518vqj30850533yn.jpg" srcSet="https://ws1.sinaimg.cn/large/006cGJIjly1fwkjg51sucj30ga0a6my0.jpg 2x"/></a><h3 class="title"><a href="https://www.npmjs.com/package/ydoc-theme-demo" target="_blank" class="href">demo</a></h3><p class="desc">默认主题,以 ‘无形’ 代替 ‘有形’,去除冗余的设计元素</p></div><div class="m-pluginbox-item"><a href="https://www.npmjs.com/package/ydoc-theme-dark" target="_blank" class="href"><img class="img" src="https://ws1.sinaimg.cn/large/006cGJIjly1fwkjk4jquyj308505374f.jpg" srcSet="https://ws1.sinaimg.cn/large/006cGJIjly1fwkjk4k7jgj30ga0a674y.jpg 2x"/></a><h3 class="title"><a href="https://www.npmjs.com/package/ydoc-theme-dark" target="_blank" class="href">dark</a></h3><p class="desc">暗色主题,基于 PM2 文档 的样式改编</p></div></div></div></div></div><div></div><script> var $content = document.getElementById('js-content'); var $summaryItems = Array.prototype.slice.call(document.querySelectorAll('#js-menu .href')); var $menu = document.getElementById('js-menu'); if (sessionStorage.prevPathname) { sessionStorage.setItem('prevPrevPathname', sessionStorage.prevPathname); sessionStorage.setItem('prevPrevMenuScrollTop', sessionStorage.prevMenuScrollTop); sessionStorage.setItem('prevPrevContentScrollTop', sessionStorage.prevContentScrollTop); } if (sessionStorage.locationPathname) { sessionStorage.setItem('prevPathname', sessionStorage.locationPathname); sessionStorage.setItem('prevMenuScrollTop', sessionStorage.menuScrollTop); sessionStorage.setItem('prevContentScrollTop', sessionStorage.contentScrollTop); } if ($menu && sessionStorage.menuScrollTop) { $menu.scrollTop = sessionStorage.menuScrollTop; } // 刷新页面但不切换 pathname 的时候,内容区恢复到记忆的高度 if ($content && sessionStorage.contentScrollTop && window.location.pathname == sessionStorage.locationPathname) { $content.scrollTop = sessionStorage.contentScrollTop; } else if (sessionStorage.prevPrevPathname && sessionStorage.prevPrevPathname === window.location.pathname) { if ($menu && sessionStorage.prevPrevMenuScrollTop) { $menu.scrollTop = sessionStorage.prevPrevMenuScrollTop; } if ($content && sessionStorage.prevPrevContentScrollTop) { $content.scrollTop = sessionStorage.prevPrevContentScrollTop; } } sessionStorage.setItem('locationPathname', window.location.pathname); </script><script src="../ydoc/scripts/plugins/dollar.min.js"></script><script src="../ydoc/scripts/plugins/responsive-nav.min.js"></script><script src="../ydoc/scripts/plugins/slideout.min.js"></script><script src="../ydoc/scripts/app.js"></script><script src="../ydoc/ydoc-plugin-search/core.js"></script><script src="../ydoc/ydoc-plugin-search/search.js"></script><script src="../ydoc/ydoc-plugin-edit-page/edit.script.js"></script><script src="../search_json.js"></script><script src="../edit_json.js"></script></body></html>