Browse Source

Enable syntax highlighting

Change front matter
master
Chris Smith 5 years ago
parent
commit
cab43a2a56

+ 1
- 0
.gitignore View File

@@ -1 +1,2 @@
1 1
 /public
2
+_gen

+ 2
- 4
content/docs/entertainment/games/warframe.adoc View File

@@ -1,7 +1,5 @@
1
----
2
-title: "Warframe"
3
----
4
-
1
++++
2
++++
5 3
 == Warframe
6 4
 
7 5
 https://www.warframe.com/[Warframe] is a free to play action game which has one

+ 2
- 3
content/docs/language/definitions.adoc View File

@@ -1,6 +1,5 @@
1
----
2
-title: "Definitions"
3
----
1
++++
2
++++
4 3
 == Definitions
5 4
 
6 5
 These are words or concepts I've come across that I've had to look up.

+ 7
- 5
content/docs/programming/golang.adoc View File

@@ -1,6 +1,8 @@
1
----
2
-title: "Golang"
3
----
1
++++
2
++++
3
+:source-highlighter: pygments
4
+:source-language: go
5
+
4 6
 == Golang
5 7
 
6 8
 https://golang.org/[Golang] is a modern programming language that can
@@ -15,7 +17,7 @@ writing services.
15 17
 Use the `signal` package to receive signals and put them
16 18
 into a channel:
17 19
 
18
-[source,golang]
20
+[source]
19 21
 ----
20 22
 c := make(chan os.Signal, 1)
21 23
 signal.Notify(c, os.Interrupt)
@@ -25,7 +27,7 @@ signal.Notify(c, syscall.SIGTERM)
25 27
 Then at the end of the main method you can perform a
26 28
 blocking read on the channel:
27 29
 
28
-[source,golang]
30
+[source]
29 31
 ----
30 32
 <-c
31 33
 ----

+ 3
- 4
content/docs/programming/kotlin.adoc View File

@@ -1,6 +1,5 @@
1
----
2
-title: "Kotlin"
3
----
1
++++
2
++++
4 3
 == Kotlin
5 4
 
6 5
 https://kotlinlang.org/[Kotlin] is a modern language that can run on
@@ -35,4 +34,4 @@ require a GUI.
35 34
 * Can get own job from `CoroutineContext[Job]`
36 35
 * `CoroutineName` gives named context
37 36
 ** Can concat contexts with `+`
38
-* `select` can receive data from multiple channels, like Go
37
+* `select` can receive data from multiple channels, like Go

+ 2
- 3
content/docs/software/alpine.adoc View File

@@ -1,6 +1,5 @@
1
----
2
-title: "Alpine"
3
----
1
++++
2
++++
4 3
 == Alpine
5 4
 
6 5
 https://www.alpinelinux.org/[Alpine] is a lightweight linux distribution that

+ 5
- 4
content/docs/software/git.adoc View File

@@ -1,6 +1,7 @@
1
----
2
-title: "Git"
3
----
1
++++
2
++++
3
+:source-highlighter: pygments
4
+
4 5
 == Git
5 6
 
6 7
 https://git-scm.com/[Git] is a distributed version control system. All
@@ -14,4 +15,4 @@ Clean up merged branches:
14 15
 [source,console]
15 16
 ----
16 17
 $ git branch --merged master | grep -v "\* master" | xargs -n 1 git branch -d
17
-----
18
+----

+ 2
- 3
content/docs/software/linux.adoc View File

@@ -1,6 +1,5 @@
1
----
2
-title: "Linux"
3
----
1
++++
2
++++
4 3
 == Linux
5 4
 
6 5
 === Notes

+ 2
- 3
content/docs/software/miniflux.adoc View File

@@ -1,6 +1,5 @@
1
----
2
-title: "Miniflux"
3
----
1
++++
2
++++
4 3
 == Miniflux
5 4
 
6 5
 https://miniflux.app/[Miniflux] is a great self-hosted RSS reader.

+ 2
- 3
content/docs/software/windows.adoc View File

@@ -1,6 +1,5 @@
1
----
2
-title: "Windows"
3
----
1
++++
2
++++
4 3
 == Windows
5 4
 
6 5
 === Random notes

+ 3
- 4
content/docs/technologies/irc.adoc View File

@@ -1,6 +1,5 @@
1
----
2
-title: "IRC"
3
----
1
++++
2
++++
4 3
 == IRC
5 4
 
6 5
 IRC (Internet Relay Chat) is a communications protocol that's been
@@ -29,4 +28,4 @@ first class support for federation of servers.
29 28
 - [[[2]]]: http://www.irc.org/history_docs/jarkko.html
30 29
 - [[[3]]]: https://tools.ietf.org/html/draft-pfenning-irc-extensions-04
31 30
 - [[[4]]]: https://tools.ietf.org/html/rfc2812
32
-- [[[5]]]: https://en.wikipedia.org/wiki/Openprojects
31
+- [[[5]]]: https://en.wikipedia.org/wiki/Openprojects

+ 2
- 3
content/docs/technologies/networking.adoc View File

@@ -1,6 +1,5 @@
1
----
2
-title: "Networking"
3
----
1
++++
2
++++
4 3
 == Networking
5 4
 
6 5
 === OSI model

+ 2
- 3
content/docs/technologies/tls.adoc View File

@@ -1,6 +1,5 @@
1
----
2
-title: "TLS"
3
----
1
++++
2
++++
4 3
 == TLS
5 4
 
6 5
 === Alert codes

+ 2
- 4
content/docs/work/contracting.adoc View File

@@ -1,7 +1,5 @@
1
----
2
-title: "Contracting"
3
----
4
-
1
++++
2
++++
5 3
 == Contracting
6 4
 
7 5
 I'm in the process of setting up a contracting business at https://lunarian.uk/.

+ 0
- 1
resources/_gen/assets/scss/book.scss_48b060fe05b0a273d182ef83c0605941.content
File diff suppressed because it is too large
View File


+ 0
- 1
resources/_gen/assets/scss/book.scss_48b060fe05b0a273d182ef83c0605941.json View File

@@ -1 +0,0 @@
1
-{"Target":"book.min.8a189e585e9fde680ec581d4da955a0904693730b7faf057d656b7c21b20337b.css","MediaType":"text/css","Data":{"Integrity":"sha256-ihieWF6f3mgOxYHU2pVaCQRpNzC3+vBX1la3whsgM3s="}}

+ 68
- 0
themes/book/assets/_pygments.scss View File

@@ -0,0 +1,68 @@
1
+pre.pygments .hll { background-color: #ffffcc }
2
+pre.pygments  { background: #ffffff; }
3
+pre.pygments .tok-c { color: #888888 } /* Comment */
4
+pre.pygments .tok-err { color: #a61717; background-color: #e3d2d2 } /* Error */
5
+pre.pygments .tok-k { color: #008800; font-weight: bold } /* Keyword */
6
+pre.pygments .tok-ch { color: #888888 } /* Comment.Hashbang */
7
+pre.pygments .tok-cm { color: #888888 } /* Comment.Multiline */
8
+pre.pygments .tok-cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
9
+pre.pygments .tok-cpf { color: #888888 } /* Comment.PreprocFile */
10
+pre.pygments .tok-c1 { color: #888888 } /* Comment.Single */
11
+pre.pygments .tok-cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
12
+pre.pygments .tok-gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
13
+pre.pygments .tok-ge { font-style: italic } /* Generic.Emph */
14
+pre.pygments .tok-gr { color: #aa0000 } /* Generic.Error */
15
+pre.pygments .tok-gh { color: #333333 } /* Generic.Heading */
16
+pre.pygments .tok-gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
17
+pre.pygments .tok-go { color: #888888 } /* Generic.Output */
18
+pre.pygments .tok-gp { color: #555555 } /* Generic.Prompt */
19
+pre.pygments .tok-gs { font-weight: bold } /* Generic.Strong */
20
+pre.pygments .tok-gu { color: #666666 } /* Generic.Subheading */
21
+pre.pygments .tok-gt { color: #aa0000 } /* Generic.Traceback */
22
+pre.pygments .tok-kc { color: #008800; font-weight: bold } /* Keyword.Constant */
23
+pre.pygments .tok-kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
24
+pre.pygments .tok-kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
25
+pre.pygments .tok-kp { color: #008800 } /* Keyword.Pseudo */
26
+pre.pygments .tok-kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
27
+pre.pygments .tok-kt { color: #888888; font-weight: bold } /* Keyword.Type */
28
+pre.pygments .tok-m { color: #0000DD; font-weight: bold } /* Literal.Number */
29
+pre.pygments .tok-s { color: #dd2200; background-color: #fff0f0 } /* Literal.String */
30
+pre.pygments .tok-na { color: #336699 } /* Name.Attribute */
31
+pre.pygments .tok-nb { color: #003388 } /* Name.Builtin */
32
+pre.pygments .tok-nc { color: #bb0066; font-weight: bold } /* Name.Class */
33
+pre.pygments .tok-no { color: #003366; font-weight: bold } /* Name.Constant */
34
+pre.pygments .tok-nd { color: #555555 } /* Name.Decorator */
35
+pre.pygments .tok-ne { color: #bb0066; font-weight: bold } /* Name.Exception */
36
+pre.pygments .tok-nf { color: #0066bb; font-weight: bold } /* Name.Function */
37
+pre.pygments .tok-nl { color: #336699; font-style: italic } /* Name.Label */
38
+pre.pygments .tok-nn { color: #bb0066; font-weight: bold } /* Name.Namespace */
39
+pre.pygments .tok-py { color: #336699; font-weight: bold } /* Name.Property */
40
+pre.pygments .tok-nt { color: #bb0066; font-weight: bold } /* Name.Tag */
41
+pre.pygments .tok-nv { color: #336699 } /* Name.Variable */
42
+pre.pygments .tok-ow { color: #008800 } /* Operator.Word */
43
+pre.pygments .tok-w { color: #bbbbbb } /* Text.Whitespace */
44
+pre.pygments .tok-mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */
45
+pre.pygments .tok-mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */
46
+pre.pygments .tok-mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */
47
+pre.pygments .tok-mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
48
+pre.pygments .tok-mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */
49
+pre.pygments .tok-sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */
50
+pre.pygments .tok-sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */
51
+pre.pygments .tok-sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */
52
+pre.pygments .tok-dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */
53
+pre.pygments .tok-sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */
54
+pre.pygments .tok-s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */
55
+pre.pygments .tok-se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */
56
+pre.pygments .tok-sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */
57
+pre.pygments .tok-si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */
58
+pre.pygments .tok-sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */
59
+pre.pygments .tok-sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */
60
+pre.pygments .tok-s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */
61
+pre.pygments .tok-ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */
62
+pre.pygments .tok-bp { color: #003388 } /* Name.Builtin.Pseudo */
63
+pre.pygments .tok-fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */
64
+pre.pygments .tok-vc { color: #336699 } /* Name.Variable.Class */
65
+pre.pygments .tok-vg { color: #dd7700 } /* Name.Variable.Global */
66
+pre.pygments .tok-vi { color: #3333bb } /* Name.Variable.Instance */
67
+pre.pygments .tok-vm { color: #336699 } /* Name.Variable.Magic */
68
+pre.pygments .tok-il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */

+ 1
- 0
themes/book/assets/book.scss View File

@@ -1,5 +1,6 @@
1 1
 @import "variables";
2 2
 @import "asciidoctor";
3
+@import "pygments";
3 4
 @import "utils";
4 5
 
5 6
 html {

Loading…
Cancel
Save