From 9868e7eb451c3e13c99af19314300415e1317ab5 Mon Sep 17 00:00:00 2001 From: Edward Thomson Date: Mon, 15 Nov 2021 16:30:01 -0500 Subject: docs: turn off smart quotes, update doctype and charset * When rendering HTML documentation, don't use smart quotes because they're icky and hard to copy/paste. * Add a and a to be good HTML citizens. PR-URL: https://github.com/npm/cli/pull/4046 Credit: @ethomson Close: #4046 Reviewed-by: @wraithgar --- docs/dockhand.js | 2 +- docs/template.html | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/dockhand.js b/docs/dockhand.js index e2b9111ed..77d3d63c0 100644 --- a/docs/dockhand.js +++ b/docs/dockhand.js @@ -152,7 +152,7 @@ async function renderFile (childPath) { // Render the markdown into an HTML snippet using a GFM renderer. const content = cmark.renderHtmlSync(md, { - smart: true, + smart: false, githubPreLang: true, strikethroughDoubleTilde: true, unsafe: false, diff --git a/docs/template.html b/docs/template.html index fea1eb949..be3bafd61 100644 --- a/docs/template.html +++ b/docs/template.html @@ -1,5 +1,7 @@ + + {{ title }}