Skip to content

Commit

Permalink
move favicon to common.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist committed Jun 20, 2024
1 parent a7e5158 commit 81780f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions docsrc/common.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const faviconPaint* = """data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2280%22>🎨</text></svg>"""
1 change: 1 addition & 0 deletions docsrc/index.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ else:
nbInit(useTerminal)

nb.pathToRoot = "."
nb.favicon = faviconPaint
nb.title = "Nimitheme Docs"

nbText: """
Expand Down
5 changes: 3 additions & 2 deletions docsrc/themes/gendoc.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import nimib

const faviconPaint* = """data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2280%22>🎨</text></svg>"""
import ../common

export common

template genThemeDoc*(theme: proc (doc: var NbDoc), themeName: string) {.dirty.} =
nb.favicon = faviconPaint
Expand Down Expand Up @@ -81,7 +83,6 @@ template genThemeDoc*(theme: proc (doc: var NbDoc), themeName: string) {.dirty.}

nbCode:
let msg = decode secret

echo msg

# TODO add audio and video when they're added to nimib
Expand Down

0 comments on commit 81780f9

Please sign in to comment.