-
Notifications
You must be signed in to change notification settings - Fork 453
/
doc.html
152 lines (143 loc) · 5.38 KB
/
doc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
---
layout: home
title: Theme Documents
titleCN: 主题文档
---
<style type="text/css">
.doc-wrapper {
width: 100%;
padding-right: 2rem;
padding-left: 2rem;
margin-right: auto;
margin-left: auto;
padding-bottom: 4rem;
}
.doc {
margin-right: auto;
margin-left: auto;
width: 600px;
/*box-shadow: 0 4px 9px rgba(0,0,0,0.3);
background-color: #f6f6f6;*/
min-height: 300px;
padding: 1rem;
}
.doc h2 {
text-align: center;
font-weight: normal;
border-bottom: 0;
font-family: 'Merriweather','Hiragino Sans GB','Microsoft YaHei','WenQuanYi Micro Hei',sans-serif;
color: #445588;
}
#content {
background-color: white;
}
.nav {
border-bottom: 1px dashed #999999;
}
a.more-content {
text-align: center;
color: #445588;
font-size: 0.9em;
display: block;
padding: 4px;
background-color: #eee;
}
a {
cursor: pointer;
}
.doc ul {
list-style-type: none;
}
.doc ul li {
position: relative;
}
.doc ul li:before {
content: "+";
display: inline-block;
position: absolute;
color: #008080;
left: -16px;
}
footer {
display: none;
}
</style>
<div class="doc-wrapper">
<div class="doc">
<h2># How to install a theme</h2>
<article>
<ul>
<li><p>Download theme from this website or other place.</p></li>
<li><p>Open typora. Click the "Open Theme Folder" button in the `Preference Panel` → `Appearance` section.</p></li>
<li><p>Put downloaded content into the opened folder. Make sure your css files are directly under that directory.</p></li>
</ul>
</article>
<a class='more-content' href="/doc/Install-Theme/">Read More...</a>
</div>
</div>
<div class="doc-wrapper">
<div class="doc">
<h2># How to write a theme</h2>
<article>
<ul>
<li><p>Write custom CSS styles for h1, p, blockquote, etc.</p></li>
<li><p>Download the <a href="https://github.com/typora/typora-theme-toolkit">toolkit</a>. Copy content into `test.css` from the toolkit folder, and check rendered HTML in browser.</p></li>
<li><p>Name your css using use lowercase and "-" (no capitalized characters or whitespace), eg: my-typora-theme.css.</p></li>
<li><p>Follow instructions for "install theme", and test in typora.</p></li>
</ul>
</article>
<a class='more-content' href="/doc/Write-Custom-Theme/">Read More...</a>
</div>
</div>
<div class="doc-wrapper">
<div class="doc">
<h2># How to submit a theme</h2>
<article>
<ul>
<li><p>Fork <a href="https://github.com/typora/typora-theme-gallery" target="_blank">this site</a> on Github</p></li>
<li><p>Create a new post in the `_posts` directory and fill out the relevant YAML fields</p></li>
<li><p>Make a 250x200 thumbnail and drop it in the `thumbnails` directory. List its filename in the post's markdown file.</p></li>
<li><p>Test it out (also test your theme), then push your changes up and open a pull request.</p></li>
</ul>
</article>
<a class='more-content' href="/doc/Submit-A-Theme/">Read More...</a>
</div>
</div>
<div class="doc-wrapper">
<div class="doc">
<h2># More Tips & Docs on Styles</h2>
<article>
<ul>
{% if site.url contains ".cn" %}
<li><p><a target="_blank" href="https://support.typoraio.cn/Add-Custom-CSS/">Add Custom CSS</a></p></li>
<li><p><a target="_blank" hre="https://support.typoraio.cn//Custom-Font/">Custom Font</a></p></li>
<li><p><a target="_blank" href="https://support.typoraio.cn/Code-Block-Styles/">Change Code Block Styles</a></p></li>
<li><p>See "Read More.." for more documentations.</p></li>
{% else %}
<li><p><a target="_blank" href="https://support.typora.io/Add-Custom-CSS/">Add Custom CSS</a></p></li>
<li><p><a target="_blank" hre="https://support.typora.io/Custom-Font/">Custom Font</a></p></li>
<li><p><a target="_blank" href="https://support.typora.io/Code-Block-Styles/">Change Code Block Styles</a></p></li>
<li><p>See "Read More.." for more documentations.</p></li>
{% endif %}
</ul>
</article>
{% if site.url contains ".cn" %}
<a class='more-content' href="https://support.typoraio.cn/style" target="_blank">Read More...</a>
{% else %}
<a class='more-content' href="https://support.typora.io/style" target="_blank">Read More...</a>
{% endif %}
</div>
</div>
<div class="doc-wrapper">
<div class="doc">
<h2># About this Site</h2>
<article>
<ul>
<li><p>Hosted on <a href="https://github.com/typora/typora-theme-gallery" target="_blank">Github</a>.</p></li>
<li><p>Forked from <a href="https://github.com/mattvh/jekyllthemes" target="_blank">jekyllthemes</a> and <a href="https://github.com/typora/wiki-website">typora-wiki</a>.</p></li>
<li><p>Contact to <a href="mailto:[email protected]">[email protected]</a>.</p></li>
</ul>
</article>
<a class='more-content' target="_blank" href="https://github.com/typora/typora-theme-gallery" >Fork Me on Github</a>
</div>
</div>