@@ -15,12 +15,119 @@ func TestRead(t *testing.T) {
15
15
expected map [string ]interface {}
16
16
}{
17
17
{
18
- desc : "" ,
18
+ desc : "with !!python" ,
19
+ filename : "sample-mkdocs.yml" ,
20
+ expected : map [string ]interface {}{
21
+ "copyright" : "Copyright © 2020 drasyl" ,
22
+ "dev_addr" : "0.0.0.0:8000" ,
23
+ "docs_dir" : "content" ,
24
+ "edit_uri" : "https://git.informatik.uni-hamburg.de/sane-public/drasyl/-/edit/master/docs/content" ,
25
+ "extra" : map [interface {}]interface {}{
26
+ "social" : []interface {}{
27
+ map [interface {}]interface {}{
28
+ "icon" : "fontawesome/brands/github" ,
29
+ "link" : "https://github.com/drasyl-overlay/drasyl/" ,
30
+ "name" : "GitHub repo of drasyl" ,
31
+ },
32
+ map [interface {}]interface {}{
33
+ "icon" : "fontawesome/brands/gitlab" ,
34
+ "link" : "https://git.informatik.uni-hamburg.de/sane-public/drasyl" ,
35
+ "name" : "GitLab repo of drasyl" ,
36
+ },
37
+ map [interface {}]interface {}{
38
+ "icon" : "fontawesome/brands/docker" ,
39
+ "link" : "https://hub.docker.com/r/drasyl/drasyl" ,
40
+ "name" : "Docker repo of drasyl" ,
41
+ },
42
+ },
43
+ },
44
+ "extra_css" : []interface {}{"assets/style/content.css" , "assets/style/atom-one-light.css" },
45
+ "extra_javascript" : []interface {}{
46
+ "assets/js/mermaid.min.js" ,
47
+ "assets/js/hljs/highlight.min.js" ,
48
+ "assets/js/extra.js" ,
49
+ },
50
+ "markdown_extensions" : []interface {}{
51
+ "admonition" ,
52
+ map [interface {}]interface {}{"toc" : map [interface {}]interface {}{"permalink" : true }},
53
+ "pymdownx.details" ,
54
+ "pymdownx.inlinehilite" ,
55
+ map [interface {}]interface {}{"pymdownx.highlight" : map [interface {}]interface {}{"use_pygments" : false }},
56
+ "pymdownx.smartsymbols" ,
57
+ map [interface {}]interface {}{"pymdownx.superfences" : map [interface {}]interface {}{
58
+ "custom_fences" : []interface {}{map [interface {}]interface {}{
59
+ "class" : "mermaid" ,
60
+ "format" : "!!python/name:pymdownx.superfences.fence_div_format" ,
61
+ "name" : "mermaid" ,
62
+ }},
63
+ }},
64
+ "pymdownx.tasklist" ,
65
+ },
66
+ "nav" : []interface {}{
67
+ map [interface {}]interface {}{"Welcome" : "index.md" },
68
+ map [interface {}]interface {}{
69
+ "Getting Started" : []interface {}{
70
+ map [interface {}]interface {}{"Quick Start" : "getting-started/quick-start.md" },
71
+ map [interface {}]interface {}{"Build" : "getting-started/build.md" },
72
+ map [interface {}]interface {}{"Snapshots" : "getting-started/snapshots.md" },
73
+ map [interface {}]interface {}{"CLI" : "getting-started/cli.md" },
74
+ map [interface {}]interface {}{"Super-Peers" : "getting-started/super-peers.md" },
75
+ },
76
+ },
77
+ map [interface {}]interface {}{
78
+ "Configuration" : []interface {}{
79
+ map [interface {}]interface {}{"Overview" : "configuration/index.md" },
80
+ },
81
+ },
82
+ map [interface {}]interface {}{"Contributing" : []interface {}{
83
+ map [interface {}]interface {}{"Submitting Issues" : "contributing/submitting_issues.md" },
84
+ map [interface {}]interface {}{"Submiting PRs" : "contributing/submitting_pull_request.md" },
85
+ }},
86
+ map [interface {}]interface {}{
87
+ "Architecture" : []interface {}{
88
+ map [interface {}]interface {}{"Concepts" : "architecture/concepts.md" },
89
+ map [interface {}]interface {}{"Diagrams" : "architecture/diagrams.md" },
90
+ },
91
+ },
92
+ },
93
+ "plugins" : []interface {}{
94
+ "search" ,
95
+ map [interface {}]interface {}{
96
+ "git-revision-date-localized" : map [interface {}]interface {}{"fallback_to_build_date" : true , "type" : "date" },
97
+ },
98
+ },
99
+ "repo_name" : "drasyl-overlay/drasyl" ,
100
+ "repo_url" : "https://github.com/drasyl-overlay/drasyl" ,
101
+ "site_author" : "drasyl" ,
102
+ "site_description" : "drasyl Documentation" ,
103
+ "site_name" : "drasyl" ,
104
+ "site_url" : "https://docs.drasyl.org" ,
105
+ "theme" : map [interface {}]interface {}{
106
+ "favicon" : "assets/img/favicon.ico" ,
107
+ "feature" : map [interface {}]interface {}{"tabs" : false },
108
+ "i18n" : map [interface {}]interface {}{
109
+ "next" : "Next" ,
110
+ "prev" : "Previous" ,
111
+ },
112
+ "icon" : map [interface {}]interface {}{"repo" : "fontawesome/brands/github" },
113
+ "include_sidebar" : true ,
114
+ "language" : "en" ,
115
+ "logo" : "assets/img/drasyl.png" ,
116
+ "name" : "material" ,
117
+ "palette" : map [interface {}]interface {}{
118
+ "accent" : "teal" ,
119
+ "primary" : "teal" ,
120
+ },
121
+ },
122
+ },
123
+ },
124
+ {
125
+ desc : "empty" ,
19
126
filename : "empty-mkdocs.yml" ,
20
127
expected : map [string ]interface {}{},
21
128
},
22
129
{
23
- desc : "" ,
130
+ desc : "traefik " ,
24
131
filename : "traefik-mkdocs.yml" ,
25
132
expected : map [string ]interface {}{
26
133
"site_name" : "Traefik" ,
0 commit comments