M content/reference/core/generator.nuj => content/reference/core/generator.nuj +12 -0
@@ 83,12 83,24 @@
(when (meta f :internal)
"{{ (component :InternalWarning) }}"))
+(defn closure-html-bytecode (f)
+ (try (fn (err)
+ (fmt "<box-wrap box-color=red><h3>Error</h3><p>Couldn't disassemble {}</p></box-wrap>" (closure/name f)))
+ (def T (type-of f))
+ (when (or (= T :lambda) (= T :macro))
+ (def disassembly (disassemble f))
+ (when disassembly
+ (cat "<h4>Bytecode</h4><p>Probably only interesting to you if you want to understand more about the Nujel VM or care very much about performance.</p><pre class=\"docstring-bytecode source source-nujel\">"
+ (pp-nujel disassembly :html)
+ "</pre>")))))
+
(defn generate-reference-for (f)
(cat (closure-signature f)
"<br/><br/>"
(closure-html-internal f)
(closure-html-documentation f)
(closure-html-examples f)
+ (closure-html-bytecode f)
(closure-html-related f)))
(defn generate-content-for (f)
M deploy.sh => deploy.sh +1 -1
@@ 1,2 1,2 @@
#!/bin/sh
-rm -rf deploy/ && ./main.nuj && rsync -avhe ssh deploy/ wolkenwelten.net:/home/nujel/nujel.net/>
\ No newline at end of file
+rm -rf deploy/ && ./main.nuj && rsync -avhe ssh deploy/ wolkenwelten.net:/srv/http/nujel.net/
A ssg/theme/default/components/Error.html => ssg/theme/default/components/Error.html +4 -0
@@ 0,0 1,4 @@
+<box-wrap box-color="red">
+ <h3>Error</h3>
+ {{ (tree/ref props :message) }}
+</box-wrap>
M ssg/theme/default/resources/main.css => ssg/theme/default/resources/main.css +21 -3
@@ 7,6 7,22 @@ body {
margin: 0;
}
+h1 {
+ font-size: 3.2rem;
+}
+
+h2 {
+ font-size: 2,4rem;
+}
+
+h3 {
+ font-size: 1.6rem;
+}
+
+h4 {
+ font-size: 1.2rem;
+}
+
h1,h2,h3,h4,h5,h6 {
margin: 0 0 0.5em 0;
}
@@ 38,6 54,7 @@ pre {
color: #333;
padding: .75em .5em;
font-family: 'Courier New', Courier, monospace;
+ border-radius: 2px;
}
nav.top-chapter-nav {
@@ 190,7 207,7 @@ box-wrap {
box-sizing:border-box;
display: block;
margin-bottom:0.6rem;
- border-radius: 0 0 1rem 0;
+ border-radius: 2px;
}
box-wrap[box-color="red"] {
@@ 330,6 347,7 @@ body[page-type="post"] > main {
border: solid 1px #581;
background-color: #5814;
border-top-width: 8px;
+ border-radius: 2px;;
}
.post-snippet::after {
@@ 351,7 369,7 @@ h6 a{
margin-left: 0;
display: block;
padding: 0.6rem;
- border-radius:0;
+ border-radius: 2px;
border: none;
color: #d7dae0;
background-color: #000;
@@ 483,4 501,4 @@ h4 {
a.tag-internal {
color: #8f949e;
-}>
\ No newline at end of file
+}