Skip to content

Commit 78e643e

Browse files
authored
docs(ENG-286): Add favicon, social preview, and DASMAC link (#44)
Replica of DASMAC-com/dropset-beta#53
1 parent aa996f0 commit 78e643e

File tree

6 files changed

+45
-1
lines changed

6 files changed

+45
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- markdownlint-disable MD036 -->
44

5-
*Courtesy of Distributed Atomic State Machine Algorithms Corporation (DASMAC)*
5+
*Courtesy of Distributed Atomic State Machine Algorithms Corporation ([DASMAC])*
66

77
<!-- markdownlint-enable MD036 -->
88

@@ -38,6 +38,7 @@ The Solana Opcode Guide is built with [VitePress] and can be viewed at
3838
pre-commit run --config cfg/pre-commit/quick-lint.yml --all-files
3939
```
4040

41+
[dasmac]: https://dasmac.com
4142
[localhost:5173]: http://localhost:5173
4243
[opcodes.dasmac.com]: https://opcodes.dasmac.com
4344
[vitepress]: https://vitepress.dev/

docs/.vitepress/config.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,23 @@ export default {
33
description:
44
"Courtesy of Distributed Atomic State Machine Algorithms Corporation (DASMAC)",
55
head: [
6+
[
7+
"link",
8+
{
9+
rel: "icon",
10+
href: "/favicon-light.png",
11+
media: "(prefers-color-scheme: light)",
12+
},
13+
],
14+
[
15+
"link",
16+
{
17+
rel: "icon",
18+
href: "/favicon-dark.png",
19+
media: "(prefers-color-scheme: dark)",
20+
},
21+
],
22+
["link", { rel: "apple-touch-icon", href: "/favicon-light.png" }],
623
["meta", { property: "og:site_name", content: "DASMAC" }],
724
["meta", { property: "og:type", content: "website" }],
825
["meta", { property: "og:url", content: "https://opcodes.dasmac.com/" }],
@@ -15,6 +32,30 @@ export default {
1532
"Courtesy of Distributed Atomic State Machine Algorithms Corporation (DASMAC)",
1633
},
1734
],
35+
[
36+
"meta",
37+
{
38+
property: "og:image",
39+
content: "https://opcodes.dasmac.com/dasmac-banner.png",
40+
},
41+
],
42+
["meta", { name: "twitter:card", content: "summary_large_image" }],
43+
["meta", { name: "twitter:title", content: "Solana Opcode Guide" }],
44+
[
45+
"meta",
46+
{
47+
name: "twitter:description",
48+
content:
49+
"Courtesy of Distributed Atomic State Machine Algorithms Corporation (DASMAC)",
50+
},
51+
],
52+
[
53+
"meta",
54+
{
55+
name: "twitter:image",
56+
content: "https://opcodes.dasmac.com/dasmac-banner.png",
57+
},
58+
],
1859
],
1960
srcDir: "src",
2061
markdown: {

docs/src/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<!-- markdownlint-disable MD013 -->
44

55
> [!important] Courtesy of Distributed Atomic State Machine Algorithms Corporation (DASMAC)
6+
> [DASMAC.com]
67
78
<!-- markdownlint-enable MD013 -->
89

@@ -54,6 +55,7 @@ of [SBPF opcodes][isa] and [Solana syscalls] used in the examples.
5455
["hello, world!" program]: https://en.wikipedia.org/wiki/%22Hello,_World!%22_program
5556
[anchor]: https://www.anchor-lang.com/docs
5657
[bytecode]: https://en.wikipedia.org/wiki/Bytecode
58+
[dasmac.com]: https://dasmac.com
5759
[ebpf]: https://www.rfc-editor.org/rfc/rfc9669
5860
[elf]: https://en.wikipedia.org/wiki/Executable_and_Linkable_Format
5961
[isa]: https://github.com/anza-xyz/sbpf/blob/v0.13.0/doc/bytecode.md

docs/src/public/dasmac-banner.png

294 KB
Loading

docs/src/public/favicon-dark.png

8.68 KB
Loading

docs/src/public/favicon-light.png

5.34 KB
Loading

0 commit comments

Comments
 (0)