Skip to content

Commit 5a9b1d2

Browse files
fix(docs): update Open Graph and Twitter meta tags for improved sharing (#1075)
Co-authored-by: Alan de Freitas <alandefreitas@gmail.com>
1 parent 13e9230 commit 5a9b1d2

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
448 KB
Loading

docs/website/index.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
<meta name="description" content="Mr.Docs is a full-fidelity C++ documentation generator that reads your code and comments to produce precise, publish-ready reference docs.">
1414
<link rel="canonical" href="https://www.mrdocs.com">
1515
<meta name="robots" content="index, follow">
16+
<meta property="og:type" content="website">
17+
<meta property="og:url" content="https://www.mrdocs.com">
1618
<meta property="og:title" content="Mr.Docs">
1719
<meta property="og:description" content="Mr.Docs is a full-fidelity C++ documentation generator that reads your code and comments to produce precise, publish-ready reference docs.">
18-
<meta property="og:url" content="https://www.mrdocs.com">
20+
<meta property="og:image" content="https://www.mrdocs.com/assets/social/mrdocs-social.jpg">
1921
<meta property="og:site_name" content="Mr.Docs">
20-
<meta property="og:type" content="website">
2122
<meta name="twitter:card" content="summary_large_image">
22-
<meta property="twitter:domain" content="https://www.mrdocs.com">
23+
<meta name="twitter:site" content="@cppalliance">
24+
<meta name="twitter:creator" content="@cppalliance">
2325
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css">
2426
<link rel="stylesheet" href="styles.css">
2527
</head>
@@ -364,9 +366,8 @@ <h3>Parameters</h3>
364366

365367
Linear in n.
366368

367-
@return Whether or not n is prime.
369+
@return Whether `n` is prime.
368370
@param n The number to test
369-
370371
*/</span>
371372
<span class="hljs-function"><span class="hljs-type">bool</span>
372373
<span class="hljs-title">is_prime</span><span class="hljs-params">(<span class="hljs-type">unsigned</span> <span class="hljs-type">long</span> <span class="hljs-type">long</span> n)</span> <span class="hljs-keyword">noexcept</span></span>;</code></pre>
@@ -403,7 +404,7 @@ <h3>Complexity</h3>
403404
</div>
404405
<div>
405406
<h3>Return Value</h3>
406-
<span>Whether or not n is prime.</span>
407+
<span>Whether <code>n</code> is prime.</span>
407408
</div>
408409
<div>
409410
<h3>Parameters</h3>

docs/website/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
User-agent: *
22
Allow: /
3+
4+
User-agent: Twitterbot
5+
Disallow:

0 commit comments

Comments
 (0)