Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implementing Basic theme #16

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

*.exe

docs/*.html
!docs/.gitkeep
# file prefixed by x_ are ignored
x_*

Expand Down
2 changes: 1 addition & 1 deletion dates.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ noting here for convenience publication dates (taken from git commits, will add
- Mar 18: display_multidim_arrays
- Mar 24: pixie_chessboard
- Mar 24: random_palette
- Apr 13: bernulli_and_beyond
- Apr 13: bernoulli_and_beyond
- May 7: mustache_specs
- May 15: toc_mustache

Expand Down
Empty file added docs/.gitkeep
Empty file.
4 changes: 4 additions & 0 deletions docs/arraymancer_tutorial.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions docs/city_in_a_bottle.json

Large diffs are not rendered by default.

356 changes: 0 additions & 356 deletions drafts/arraymancer_tutorial.html

This file was deleted.

114 changes: 0 additions & 114 deletions drafts/city_in_a_bottle.html

This file was deleted.

31 changes: 0 additions & 31 deletions drafts/city_in_a_bottle.nim

This file was deleted.

1 change: 0 additions & 1 deletion head_other.mustache

This file was deleted.

15 changes: 14 additions & 1 deletion nblog.nimble
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
# just a placeholder to help nimib get a HomeDir (but it should fall back on git repo!)
# Package

version = "0.1.0"
author = "Pietro Peterlongo"
description = "simple nimib blog generator"
license = "MIT"
srcDir = "src"
bin = @["nblog"]

# Deps

requires "nim >= 1.4.0"
requires "nimib >= 1.3.0"
requires "climate >= 1.0.2"
4 changes: 2 additions & 2 deletions nimib.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[nimib]
srcDir = "."
homeDir = "."
srcDir = "posts"
homeDir = "docs"
18 changes: 10 additions & 8 deletions drafts/arraymancer_tutorial.nim → posts/arraymancer_tutorial.nim
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import nimib
# I want to use this notebook also to show how one can customzie the nbCode block output
# (to have output shown as comments) and also possibly to stitch together subsequent code samples
# (I should use a render change in nbDoc). Probably I should do this after rendering refactoring.
nbInit
nbText: """
# Arraymancer Tutorial - First steps
import nblog

nbInit(theme = useNblog)
nb.title "Arraymancer Tutorial - First steps"
nb.subtitle "A remake of the original tutorial using nimib"
nb.pubDate 2021, 3, 12

> A remake of the original tutorial using nimib: <https://mratsim.github.io/Arraymancer/tuto.first_steps.html>
nbText: """
> original tutorial: <https://mratsim.github.io/Arraymancer/tuto.first_steps.html>
>
> I will note differences with the original in quoted sections.

Expand Down Expand Up @@ -135,4 +136,5 @@ This behaviour is the same as Numpy and Julia,
reasons can be found in the following
[under the hood article](https://mratsim.github.io/Arraymancer/uth.copy_semantics.html).
"""
nbShow

nbSaveJson
Loading