From bb61879d9d13fbc913c2db55c4f37f542dd7f206 Mon Sep 17 00:00:00 2001 From: Amio Date: Mon, 6 Aug 2018 11:44:32 +0800 Subject: [PATCH] docs: update doc pages style --- libs/docs/uptime-robot.md | 6 +++--- libs/serve-docs.js | 13 ++++++------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/libs/docs/uptime-robot.md b/libs/docs/uptime-robot.md index 586c272..8014041 100644 --- a/libs/docs/uptime-robot.md +++ b/libs/docs/uptime-robot.md @@ -11,10 +11,10 @@ ## Creating the API key -To use an `/uptime-robot` badge, you have to create or find an API key specific to your monitor -

+To use an `/uptime-robot` badge, you have to create or find an API key specific to your monitor. + From your UptimeRobot dashboard, go to -[My Settings](https://uptimerobot.com/dashboard.php#mySettings) > API Settings > Monitor-Specific API Keys +[My Settings](https://uptimerobot.com/dashboard.php#mySettings) > API Settings > Monitor-Specific API Keys. ## Examples diff --git a/libs/serve-docs.js b/libs/serve-docs.js index 422f08e..a0db51a 100644 --- a/libs/serve-docs.js +++ b/libs/serve-docs.js @@ -6,15 +6,14 @@ const serve404 = require('./serve-404.js') const serveMarkedOptions = { preset: 'merri', inlineCSS: ` - body { max-width: 800px; padding: 0 2em 1em 2em } - h1 { font-size: } - h1 + p { letter-spacing: 0.1px } - h1 + p img { margin-top: 1em; height: 20px } + body { max-width: 800px; padding: 0 2rem 5rem 2rem } + h1 + p { letter-spacing: 0.1px; margin-top: 2em } + img { height: 20px } em { font-size: 0.8em; color: #666 } li { padding: 0.4em 0 } - li code { padding: 0.4em 0.6em; display: pre } - p { margin: 0 } - p a { vertical-align: top; margin-left: 0.4em; font: 14px/20px monospace } + code { padding: 0.4em 0.6em; display: pre } + p { margin: 0; line-height: 2em } + p img + a { vertical-align: top; margin-left: 0.4em; font: 14px/20px monospace } `, beforeHeadEnd: ``, trackingGA: 'UA-4646421-14'