Markdown 拓展-Docsify 主題美化

docsify-themeable - A delightfully simple theme system for docsify.js
https://jhildenbiddle.github.io/docsify-themeable/#/

Quick Start

Installation

  1. Create a docsify site by following the instructions on the docsify.js website.

  2. Select a theme from the Themes section and replace the <link> in your index.html.

    <!-- Theme: Simple (latest v0.x.x) -->
    <link rel="stylesheet" >
    
  3. Add the docsify-themeable plugin to your index.html after docsify:

    <!-- docsify-themeable (latest v0.x.x) -->
    <script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
    
  4. Review the Options section and configure as needed. For example:

    <script>
      window.$docsify = {
          // ...
          themeable: {
              readyTransition : true, // default
              responsiveTables: true  // default
          }
      }
    </script>
    
  5. Review the Customization section and set theme properties as needed. For example:

    <style>
      :root {
        /* Reduce the font size */
        --base-font-size: 14px;
    
        /* Change the theme color hue */
        --theme-hue: 325;
    
        /* Change the sidebar bullets */
        --sidebar-nav-link-before-content: '??';
      }
    </style>
    

Local Preview

Previewing your site locally requires serving your files from a web server.

The docsify Quick Start guide recommends docsify-cli for creating and previewing your site:

# Install docsify-cli globally
npm install -g docsify-cli

# Serve current directory
docsify serve

# Serve ./docs directory
docsify serve docs

A simple Python web server can also be used:

# Change to site directory
cd /path/to/site/files

# Show Python version
python --version

# Launch web server (Python 2.x)
python -m SimpleHTTPServer

# Launch web server (Python 3.x)
python -m http.server

Hosting

Sites powered by docsify.js can be hosted on any web server. The docsify website provides a helpful deployment guide with tips for hosting your site on following platforms:

主題推薦

docsify-share 使用的主題
https://coroo.github.io/docsify-share/#/

  <!-- docsify-themeable styles-->
  <link rel="stylesheet"  title="light">
  <link rel="stylesheet" href="assets/css/main-custom.css">
  <link rel="stylesheet" href="assets/css/button-custom.css">

  <script src="http://unpkg.com/docsify/lib/docsify.min.js"></script>
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末短曾,一起剝皮案震驚了整個濱河市宋渔,隨后出現(xiàn)的幾起案子牲迫,更是在濱河造成了極大的恐慌针姿,老刑警劉巖蔼囊,帶你破解...
    沈念sama閱讀 212,542評論 6 493
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件乙濒,死亡現(xiàn)場離奇詭異捌归,居然都是意外死亡,警方通過查閱死者的電腦和手機郭膛,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,596評論 3 385
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來氛悬,“玉大人则剃,你說我怎么就攤上這事≡惭悖” “怎么了忍级?”我有些...
    開封第一講書人閱讀 158,021評論 0 348
  • 文/不壞的土叔 我叫張陵,是天一觀的道長伪朽。 經(jīng)常有香客問我轴咱,道長,這世上最難降的妖魔是什么烈涮? 我笑而不...
    開封第一講書人閱讀 56,682評論 1 284
  • 正文 為了忘掉前任朴肺,我火速辦了婚禮,結(jié)果婚禮上坚洽,老公的妹妹穿的比我還像新娘戈稿。我一直安慰自己,他們只是感情好讶舰,可當我...
    茶點故事閱讀 65,792評論 6 386
  • 文/花漫 我一把揭開白布鞍盗。 她就那樣靜靜地躺著,像睡著了一般跳昼。 火紅的嫁衣襯著肌膚如雪般甲。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,985評論 1 291
  • 那天鹅颊,我揣著相機與錄音敷存,去河邊找鬼。 笑死堪伍,一個胖子當著我的面吹牛锚烦,可吹牛的內(nèi)容都是我干的觅闽。 我是一名探鬼主播,決...
    沈念sama閱讀 39,107評論 3 410
  • 文/蒼蘭香墨 我猛地睜開眼涮俄,長吁一口氣:“原來是場噩夢啊……” “哼蛉拙!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起彻亲,我...
    開封第一講書人閱讀 37,845評論 0 268
  • 序言:老撾萬榮一對情侶失蹤刘离,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后睹栖,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體硫惕,經(jīng)...
    沈念sama閱讀 44,299評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,612評論 2 327
  • 正文 我和宋清朗相戀三年野来,在試婚紗的時候發(fā)現(xiàn)自己被綠了恼除。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,747評論 1 341
  • 序言:一個原本活蹦亂跳的男人離奇死亡曼氛,死狀恐怖豁辉,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情舀患,我是刑警寧澤徽级,帶...
    沈念sama閱讀 34,441評論 4 333
  • 正文 年R本政府宣布,位于F島的核電站聊浅,受9級特大地震影響餐抢,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜低匙,卻給世界環(huán)境...
    茶點故事閱讀 40,072評論 3 317
  • 文/蒙蒙 一旷痕、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧顽冶,春花似錦欺抗、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,828評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至间景,卻和暖如春佃声,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背拱燃。 一陣腳步聲響...
    開封第一講書人閱讀 32,069評論 1 267
  • 我被黑心中介騙來泰國打工秉溉, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留力惯,地道東北人碗誉。 一個月前我還...
    沈念sama閱讀 46,545評論 2 362
  • 正文 我出身青樓召嘶,卻偏偏與公主長得像,于是被迫代替她去往敵國和親哮缺。 傳聞我的和親對象是個殘疾皇子弄跌,可洞房花燭夜當晚...
    茶點故事閱讀 43,658評論 2 350

推薦閱讀更多精彩內(nèi)容