From 1a08efd402635b9a6c722f7efd75bc1c4841f6a5 Mon Sep 17 00:00:00 2001 From: harttle Date: Thu, 25 Jun 2020 13:15:02 +0800 Subject: [PATCH] docs: better style for API doc --- bin/build-apidoc.sh | 2 +- docs/_config.yml | 2 -- docs/themes/navy/source/css/_partial/page.styl | 8 +++++++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/build-apidoc.sh b/bin/build-apidoc.sh index f4ef609ba..5763fa0b9 100755 --- a/bin/build-apidoc.sh +++ b/bin/build-apidoc.sh @@ -23,4 +23,4 @@ for file in $(find docs/source/api -name "*.md"); do fi done -cp -r docs/source/api docs/source/zh-cn/api \ No newline at end of file +cp -r docs/source/api docs/source/zh-cn/api diff --git a/docs/_config.yml b/docs/_config.yml index 12c57eed5..d95e3f642 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -8,8 +8,6 @@ timezone: UTC url: https://liquidjs.com root: / permalink: news/:year/:month/:day/:title/ -archive_dir: news -code_dir: downloads/code relative_link: true new_post_name: :year-:month-:day-:title.md # File name of new posts post_asset_folder: true diff --git a/docs/themes/navy/source/css/_partial/page.styl b/docs/themes/navy/source/css/_partial/page.styl index 001decb14..d234192a7 100644 --- a/docs/themes/navy/source/css/_partial/page.styl +++ b/docs/themes/navy/source/css/_partial/page.styl @@ -116,12 +116,18 @@ note-warn = hsl(0, 100%, 50%) font-size: 2em h2 font-size: 1.5em + border-bottom: 1px solid color-border + padding-bottom: 10px + margin-bottom: 15px h3 font-size: 1.3em h1, h2, h3, h4, h5, h6 line-height: 1em font-weight: bold margin: 1em 0 + hr + border-bottom: none; + border-top: 1px dashed color-border; a color: color-link text-decoration: none @@ -206,7 +212,7 @@ note-warn = hsl(0, 100%, 50%) background: #eee .article-footer - margin: 30px 0 0 + margin: 60px 0 0 border-top: 1px solid color-border text-align: center color: color-gray