Message ID | 3cfe5057-8bfe-4058-a0f2-058ecc480ab9@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | [v2,1/3] secilc/docs: use fenced code blocks for cil examples | expand |
On Sat, Feb 6, 2021 at 4:06 PM bauen1 <j2468h@googlemail.com> wrote: > > Since the default pandoc themes either don't highlight everything or > don't fit the black/white color style of the html / pdf I've created my > own. > > Signed-off-by: Jonathan Hettwer <j2468h@gmail.com> I am ok with these colors. Acked-by: James Carter <jwcart2@gmail.com> > --- > secilc/docs/Makefile | 2 +- > secilc/docs/theme.theme | 59 +++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 60 insertions(+), 1 deletion(-) > create mode 100644 secilc/docs/theme.theme > > diff --git a/secilc/docs/Makefile b/secilc/docs/Makefile > index a91bcde0..a03ebeed 100644 > --- a/secilc/docs/Makefile > +++ b/secilc/docs/Makefile > @@ -28,7 +28,7 @@ FILE_LIST ?= cil_introduction.md \ > > PANDOC_FILE_LIST = $(addprefix $(TMPDIR)/,$(FILE_LIST)) > > -PANDOC_HIGHLIGHT_STYLE="pygments" > +PANDOC_HIGHLIGHT_STYLE="theme.theme" > > PDF_OUT=CIL_Reference_Guide.pdf > HTML_OUT=CIL_Reference_Guide.html > diff --git a/secilc/docs/theme.theme b/secilc/docs/theme.theme > new file mode 100644 > index 00000000..5ffa9a65 > --- /dev/null > +++ b/secilc/docs/theme.theme > @@ -0,0 +1,59 @@ > +{ > + "text-color": null, > + "background-color": null, > + "line-number-color": null, > + "line-number-background-color": null, > + "text-styles": { > + "String": { > + "text-color": "#049b0a", > + "background-color": null, > + "bold": false, > + "italic": false, > + "underline": false > + }, > + "SpecialChar": { > + "text-color": "#049b0a", > + "background-color": null, > + "bold": false, > + "italic": false, > + "underline": false > + }, > + > + "Function": { > + "text-color": "#ff9358", > + "background-color": null, > + "bold": true, > + "italic": false, > + "underline": false > + }, > + > + "Operator": { > + "text-color": "#43a8ed", > + "background-color": null, > + "bold": true, > + "italic": false, > + "underline": false > + }, > + "BuiltIn": { > + "text-color": "#ff6dd3", > + "background-color": null, > + "bold": true, > + "italic": false, > + "underline": false > + }, > + "Comment": { > + "text-color": "#bc7a00", > + "background-color": null, > + "bold": false, > + "italic": true, > + "underline": false > + }, > + "Keyword": { > + "text-color": "#28648e", > + "background-color": null, > + "bold": true, > + "italic": false, > + "underline": false > + } > + } > +} > -- > 2.30.0 >
diff --git a/secilc/docs/Makefile b/secilc/docs/Makefile index a91bcde0..a03ebeed 100644 --- a/secilc/docs/Makefile +++ b/secilc/docs/Makefile @@ -28,7 +28,7 @@ FILE_LIST ?= cil_introduction.md \ PANDOC_FILE_LIST = $(addprefix $(TMPDIR)/,$(FILE_LIST)) -PANDOC_HIGHLIGHT_STYLE="pygments" +PANDOC_HIGHLIGHT_STYLE="theme.theme" PDF_OUT=CIL_Reference_Guide.pdf HTML_OUT=CIL_Reference_Guide.html diff --git a/secilc/docs/theme.theme b/secilc/docs/theme.theme new file mode 100644 index 00000000..5ffa9a65 --- /dev/null +++ b/secilc/docs/theme.theme @@ -0,0 +1,59 @@ +{ + "text-color": null, + "background-color": null, + "line-number-color": null, + "line-number-background-color": null, + "text-styles": { + "String": { + "text-color": "#049b0a", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + "SpecialChar": { + "text-color": "#049b0a", + "background-color": null, + "bold": false, + "italic": false, + "underline": false + }, + + "Function": { + "text-color": "#ff9358", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + + "Operator": { + "text-color": "#43a8ed", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + "BuiltIn": { + "text-color": "#ff6dd3", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + }, + "Comment": { + "text-color": "#bc7a00", + "background-color": null, + "bold": false, + "italic": true, + "underline": false + }, + "Keyword": { + "text-color": "#28648e", + "background-color": null, + "bold": true, + "italic": false, + "underline": false + } + } +}
Since the default pandoc themes either don't highlight everything or don't fit the black/white color style of the html / pdf I've created my own. Signed-off-by: Jonathan Hettwer <j2468h@gmail.com> --- secilc/docs/Makefile | 2 +- secilc/docs/theme.theme | 59 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 secilc/docs/theme.theme