Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2021-11-16 00:30:01 +0300
committerGar <gar+gh@danger.computer>2021-11-16 00:40:07 +0300
commit9868e7eb451c3e13c99af19314300415e1317ab5 (patch)
tree8363d21312dbf1131bcbc09defb2702a7e43fce8 /docs
parent201df1760eb1054777eeea0c118fdb33e95e7ef6 (diff)
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 <!DOCTYPE html> and a <meta charset="utf-8"> to be good HTML citizens. PR-URL: https://github.com/npm/cli/pull/4046 Credit: @ethomson Close: #4046 Reviewed-by: @wraithgar
Diffstat (limited to 'docs')
-rw-r--r--docs/dockhand.js2
-rw-r--r--docs/template.html2
2 files changed, 3 insertions, 1 deletions
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 @@
+<!DOCTYPE html>
<html>
<head>
+<meta charset="utf-8">
<title>{{ title }}</title>
<style>
body {