diff options
author | Li Jin <dragon-fly@qq.com> | 2021-04-21 09:36:25 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-04-21 09:36:25 +0800 |
commit | b7bdf7d5d36825a1a750a74641f6d374dec5d67a (patch) | |
tree | 6b27eb6590e07c07f378305c51d0f5e0779faa83 /doc/docs | |
parent | b86e5af605a170a3559df0165eac3cb6b665dc49 (diff) | |
download | yuescript-b7bdf7d5d36825a1a750a74641f6d374dec5d67a.tar.gz yuescript-b7bdf7d5d36825a1a750a74641f6d374dec5d67a.tar.bz2 yuescript-b7bdf7d5d36825a1a750a74641f6d374dec5d67a.zip |
adjust some folder levels.
Diffstat (limited to 'doc/docs')
-rwxr-xr-x | doc/docs/.vuepress/components/YueCompiler.vue | 180 | ||||
-rwxr-xr-x | doc/docs/doc/README.md | 2 |
2 files changed, 4 insertions, 178 deletions
diff --git a/doc/docs/.vuepress/components/YueCompiler.vue b/doc/docs/.vuepress/components/YueCompiler.vue index 9c09297..ea8ea11 100755 --- a/doc/docs/.vuepress/components/YueCompiler.vue +++ b/doc/docs/.vuepress/components/YueCompiler.vue | |||
@@ -74,6 +74,9 @@ | |||
74 | setTimeout(check, 100); | 74 | setTimeout(check, 100); |
75 | return; | 75 | return; |
76 | } | 76 | } |
77 | if (this.$data.code !== '') { | ||
78 | this.codeChanged(this.$data.code); | ||
79 | } | ||
77 | const textArea = editor.children[0].children[1].children[0]; | 80 | const textArea = editor.children[0].children[1].children[0]; |
78 | textArea.focus(); | 81 | textArea.focus(); |
79 | } else { | 82 | } else { |
@@ -201,182 +204,5 @@ | |||
201 | .my-editor >>> .prism-editor__textarea:focus { | 204 | .my-editor >>> .prism-editor__textarea:focus { |
202 | outline: none; | 205 | outline: none; |
203 | } | 206 | } |
204 | |||
205 | /* | ||
206 | Name: Base16 Atelier Sulphurpool Light | ||
207 | Author: Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/sulphurpool) | ||
208 | |||
209 | Prism template by Bram de Haan (http://atelierbram.github.io/syntax-highlighting/prism/) | ||
210 | Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16) | ||
211 | |||
212 | */ | ||
213 | code[class*="language-"], | ||
214 | pre[class*="language-"] { | ||
215 | font-family: Consolas, Menlo, Monaco, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", "Courier New", Courier, monospace; | ||
216 | font-size: 1em; | ||
217 | line-height: 1.375; | ||
218 | direction: ltr; | ||
219 | text-align: left; | ||
220 | white-space: pre; | ||
221 | word-spacing: normal; | ||
222 | word-break: normal; | ||
223 | -moz-tab-size: 4; | ||
224 | -o-tab-size: 4; | ||
225 | tab-size: 4; | ||
226 | -webkit-hyphens: none; | ||
227 | -moz-hyphens: none; | ||
228 | -ms-hyphens: none; | ||
229 | hyphens: none; | ||
230 | background: #f5f7ff; | ||
231 | color: #5e6687; | ||
232 | } | ||
233 | |||
234 | pre > code[class*="language-"] { | ||
235 | font-size: 1em; | ||
236 | } | ||
237 | |||
238 | pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection, | ||
239 | code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection { | ||
240 | text-shadow: none; | ||
241 | background: #dfe2f1; | ||
242 | } | ||
243 | |||
244 | pre[class*="language-"]::selection, pre[class*="language-"] ::selection, | ||
245 | code[class*="language-"]::selection, code[class*="language-"] ::selection { | ||
246 | text-shadow: none; | ||
247 | background: #dfe2f1; | ||
248 | } | ||
249 | |||
250 | /* Code blocks */ | ||
251 | pre[class*="language-"] { | ||
252 | padding: 1em; | ||
253 | margin: .5em 0; | ||
254 | overflow: auto; | ||
255 | } | ||
256 | |||
257 | /* Inline code */ | ||
258 | :not(pre) > code[class*="language-"] { | ||
259 | padding: .1em; | ||
260 | border-radius: .3em; | ||
261 | } | ||
262 | |||
263 | .token.comment, | ||
264 | .token.prolog, | ||
265 | .token.doctype, | ||
266 | .token.cdata { | ||
267 | color: #898ea4; | ||
268 | } | ||
269 | |||
270 | .token.punctuation { | ||
271 | color: #5e6687; | ||
272 | } | ||
273 | |||
274 | .token.namespace { | ||
275 | opacity: .7; | ||
276 | } | ||
277 | |||
278 | .token.operator, | ||
279 | .token.boolean, | ||
280 | .token.number { | ||
281 | color: #c76b29; | ||
282 | } | ||
283 | |||
284 | .token.property { | ||
285 | color: #c08b30; | ||
286 | } | ||
287 | |||
288 | .token.tag { | ||
289 | color: #3d8fd1; | ||
290 | } | ||
291 | |||
292 | .token.string { | ||
293 | color: #22a2c9; | ||
294 | } | ||
295 | |||
296 | .token.selector { | ||
297 | color: #6679cc; | ||
298 | } | ||
299 | |||
300 | .token.attr-name { | ||
301 | color: #c76b29; | ||
302 | } | ||
303 | |||
304 | .token.entity, | ||
305 | .token.url, | ||
306 | .language-css .token.string, | ||
307 | .style .token.string { | ||
308 | color: #22a2c9; | ||
309 | } | ||
310 | |||
311 | .token.attr-value, | ||
312 | .token.keyword, | ||
313 | .token.control, | ||
314 | .token.directive, | ||
315 | .token.unit { | ||
316 | color: #ac9739; | ||
317 | } | ||
318 | |||
319 | .token.statement, | ||
320 | .token.regex, | ||
321 | .token.atrule { | ||
322 | color: #22a2c9; | ||
323 | } | ||
324 | |||
325 | .token.placeholder, | ||
326 | .token.variable { | ||
327 | color: #3d8fd1; | ||
328 | } | ||
329 | |||
330 | .token.deleted { | ||
331 | text-decoration: line-through; | ||
332 | } | ||
333 | |||
334 | .token.inserted { | ||
335 | border-bottom: 1px dotted #202746; | ||
336 | text-decoration: none; | ||
337 | } | ||
338 | |||
339 | .token.italic { | ||
340 | font-style: italic; | ||
341 | } | ||
342 | |||
343 | .token.important, | ||
344 | .token.bold { | ||
345 | font-weight: bold; | ||
346 | } | ||
347 | |||
348 | .token.important { | ||
349 | color: #c94922; | ||
350 | } | ||
351 | |||
352 | .token.entity { | ||
353 | cursor: help; | ||
354 | } | ||
355 | |||
356 | pre > code.highlight { | ||
357 | outline: 0.4em solid #c94922; | ||
358 | outline-offset: .4em; | ||
359 | } | ||
360 | |||
361 | /* overrides color-values for the Line Numbers plugin | ||
362 | * http://prismjs.com/plugins/line-numbers/ | ||
363 | */ | ||
364 | .line-numbers .line-numbers-rows { | ||
365 | border-right-color: #dfe2f1; | ||
366 | } | ||
367 | |||
368 | .line-numbers-rows > span:before { | ||
369 | color: #979db4; | ||
370 | } | ||
371 | |||
372 | /* overrides color-values for the Line Highlight plugin | ||
373 | * http://prismjs.com/plugins/line-highlight/ | ||
374 | */ | ||
375 | .line-highlight { | ||
376 | background: rgba(107, 115, 148, 0.2); | ||
377 | background: -webkit-linear-gradient(left, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0)); | ||
378 | background: linear-gradient(to right, rgba(107, 115, 148, 0.2) 70%, rgba(107, 115, 148, 0)); | ||
379 | } | ||
380 | |||
381 | </style> | 207 | </style> |
382 | 208 | ||
diff --git a/doc/docs/doc/README.md b/doc/docs/doc/README.md index ec76612..76ae3c1 100755 --- a/doc/docs/doc/README.md +++ b/doc/docs/doc/README.md | |||
@@ -27,7 +27,7 @@ inventory = | |||
27 | * name: "bread" | 27 | * name: "bread" |
28 | count: 3 | 28 | count: 3 |
29 | 29 | ||
30 | -- backcall | 30 | -- pipe operator |
31 | {1, 2, 3} | 31 | {1, 2, 3} |
32 | |> map (x)-> x * 2 | 32 | |> map (x)-> x * 2 |
33 | |> filter (x)-> x > 4 | 33 | |> filter (x)-> x > 4 |