🏡 themes/a11yana.nim

This page uses the A11yana theme!

A11yana!

A11yana

A11yana

A11yana

A11yana
A11yana...

Using the theme

The code used to enable this theme was:

nbInit(useA11yana)

Although, you could do somthing like this instead:

nbInit
nb.useA11yana()

Lists

  1. List Item 1
  2. List Item 2
  3. List Item 3
    • Nested Unordered List Item 3.1
    • Nested Unordered List Item 3.2
    • Nested Unordered List Item 3.2

Images

Here's a complementary free image for you:

random image

Code

Also, before I forget, here's some code:

(Beware however, this code may contain some secrets)

func decode(secret: openArray[int]): string =
  ## classified by NSA as <strong>TOP SECRET</strong>
  for c in secret:
    result.add char(c)
let msg = decode secret
echo msg
hello, world

Don't I look beautiful?

import nimitheme
import nimib

nbInit(useA11yana)

nb.title = "A11yana theme"

nbText: """
# This page uses the A11yana theme!

# A11yana!
## A11yana
### A11yana
#### A11yana
##### A11yana
###### A11yana...

## Using the theme

The code used to enable this theme was:
"""

nbCodeSkip:
  nbInit(useA11yana)

nbText: """
Although, you could do somthing like this instead:
"""

nbCodeSkip:
  nbInit

  nb.useA11yana()

nbText: """
## Lists

1. List Item 1
2. List Item 2
3. List Item 3
    * Nested Unordered List Item 3.1
    * Nested Unordered List Item 3.2
    * Nested Unordered List Item 3.2

* Unordered List Item 1
* Unordered List Item 2
* Unordered List Item 3
    1. Nested Ordered List Item 3.1
    2. Nested Ordered List Item 3.2
    3. Nested Ordered List Item 3.3
"""

nbText: """
## Images

Here's a complementary free image for you:
"""

nbImage(
  "https://picsum.photos/600",
  "",
  "random image"
)

nbText: """
## Code

Also, before I forget, here's some `code`:

*(Beware however, this code may contain some [**secrets**](https://pietroppeter.github.io/nimib/hello.html))*
"""

let secret = [104, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100]

nbCode:
  func decode(secret: openArray[int]): string =
    ## classified by NSA as <strong>TOP SECRET</strong>
    for c in secret:
      result.add char(c)

nbCode:
  let msg = decode secret

  echo msg

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

nbText: """
> Don't I look ***beautiful***?
"""

var doc* = nb

when isMainModule:
  nbSave