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

Refactor nb blocks (fix #24) #78

Merged
merged 31 commits into from
Mar 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d0fa04f
new newBlock (with test)
pietroppeter Jan 8, 2022
7edae61
code is stripped as default
pietroppeter Jan 8, 2022
4943eac
imporve tests
pietroppeter Jan 8, 2022
19c0d17
add dev notes (to be removed at the end)
pietroppeter Jan 8, 2022
c58f53b
moved templates outside of nbInit
pietroppeter Jan 8, 2022
d02c817
update dev notes
pietroppeter Jan 8, 2022
d2c65f3
preliminaries to change rendering of block
pietroppeter Jan 9, 2022
7cfac36
newNbBlock refactored (and renamed)
pietroppeter Jan 9, 2022
c6f4c4a
nbNormalize
pietroppeter Jan 9, 2022
44bed19
add note \c == \r and \l == \n
pietroppeter Jan 9, 2022
b992098
change name to tests
pietroppeter Jan 9, 2022
daa4c1f
add new nbText, nbCode with tests
pietroppeter Jan 9, 2022
affb2c8
only log output if there is output
pietroppeter Jan 9, 2022
087c01a
use always check
pietroppeter Jan 9, 2022
29f127d
new renderBlock working with (minimal) test
pietroppeter Jan 9, 2022
a1b54c0
nim r hello works! 🍾
pietroppeter Jan 9, 2022
2a13871
mostaccio ok
pietroppeter Jan 9, 2022
de2c1f6
numerical ok
pietroppeter Jan 9, 2022
b430c0e
nolan ok
pietroppeter Jan 9, 2022
23adfa1
pythno ok
pietroppeter Jan 9, 2022
33cfc2b
remove ptest
pietroppeter Jan 9, 2022
aad5961
general cleanup
pietroppeter Jan 10, 2022
9cf278f
update nbImage to refactored blocks
pietroppeter Jan 16, 2022
f39d032
minimal plan to just merge
pietroppeter Mar 6, 2022
5e97a70
cheatsheet fixed
pietroppeter Mar 6, 2022
85238b4
update nimble docs
pietroppeter Mar 6, 2022
821b95b
markdown backend + index
pietroppeter Mar 6, 2022
4884b3a
update nimble docs and rerun
pietroppeter Mar 6, 2022
865e617
more cleanup and remove NbKind
pietroppeter Mar 6, 2022
98d0474
finalize notes
pietroppeter Mar 6, 2022
60bf9ad
remove refactor notes
pietroppeter Mar 6, 2022
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: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
nim-version: '1.6.x'
- run: nimble deps
- run: nimble tdeps
#- run: nimble ptest
- run: nimble test
- run: nimble docs # not to publish but to test it works
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*
!/**/
!*.*
.DS_store

*.exe
*.tmp.html
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# nimib 🐳 - nim 👑 driven ⛵ publishing ✍

Nimib provides an API to convert your Nim code and its outputs to html documents.
Expand Down Expand Up @@ -108,7 +109,6 @@ in this repo:
* [numerical](https://pietroppeter.github.io/nimib/numerical.html): example usage of NumericalNim (example of custom style, usage of latex)
* [cheatsheet](https://pietroppeter.github.io/nimib/cheatsheet.html): markdown cheatsheet (example of a custom block, custom highlighting and a simple TOC)
* [mostaccio](https://pietroppeter.github.io/nimib/mostaccio.html): examples of usage of nim-mustache and of dark mode.
* [ptest](https://pietroppeter.github.io/nimib/ptest.html): print testing for nimib

elsewhere:

Expand Down Expand Up @@ -292,4 +292,3 @@ because I made a [package](https://github.com/pietroppeter/nimoji) for that and
because [someone made it into an art form](https://github.com/oakes/vim_cubed#q--a)
and they tell me [imitation is the sincerest form of flattery](https://www.goodreads.com/quotes/558084-imitation-is-the-sincerest-form-of-flattery-that-mediocrity-can)


Loading