Comments (5)
That does sound like a good solution to me :) Then it's very obvious which flags are passed as well, now you have to dig in the nimiBook source code to find them
from nimibook.
- locally you should be able to have full control on how to compile a single file using directly
nim r
and the args you want (you might need to dump the json first) - in general I think we should have the possibility to reset build default arguments (either with a new command or with a special option) and pass new ones.
- ideally you might want to have a mechanism where override/customize arguments for each specific file/folder you build
- incidentally looking at the default list of arguments I am wondering if
-f
is a good default argument
from nimibook.
locally you should be able to have full control on how to compile a single file using directly nim r and the args you want
This is exactly what I want to avoid actually, because of reproducibility. The other day we got an error on the CI but we had problems replicating it locally. If we could have seen the debug error messages directly in the CI it would have saved us much time.
in general I think we should have the possibility to reset build default arguments (either with a new command or with a special option) and pass new ones. ideally you might want to have a mechanism where override/customize arguments for each specific file/folder you build.
Agreed! Some simple files probably take more time to compile with release
than they take to run with debug
, so using debug could probably speed up things if done for those files.
incidentally looking at the default list of arguments I am wondering if -f is a good default argument
That does indeed sound very wasteful of time, I can't remember the rationale for introducing it in the first case 🤔 Feels like it had something to do with CI somehow 🤣
from nimibook.
one option would be to remove all default arguments and pass all additional arguments received (so that we do not have to think of an option name to reset default arguments). In particular to reproduce current build one would call nbook build -d:release -f --verbosity:0 --hints:off
.
from nimibook.
fixed in #50
from nimibook.
Related Issues (20)
- feature: a show source button or similar HOT 4
- support SUMMARY.md for table of contents HOT 1
- provide a nbook/nimibook binary
- highlight nim code in pages with markdown sources HOT 3
- refactor nimibook to use the new SSG
- improve clean command HOT 1
- book.json should only contain relative dirs
- refactor check to return number of failures
- useLatex as a book config
- Improve docs of toc srcDir homeDir
- Indentation of entries in sidebar in generated HTML is incorrect after sub-sections HOT 6
- next gives non existent page when last chapter is a draft
- mark as plaintext the code section of commands (otherwise highlighted as sql)
- Allow sections to be collapsed/expanded with a chevron-icon button HOT 2
- Licensing of embedded assets HOT 9
- Possible issue in parallel builds when two file have the same name HOT 10
- Allow embedding a nim file as an nbCode block HOT 18
- a `nimibook / license` module HOT 2
- Support mermaid diagrams HOT 1
- The `<code>` tag, when inline code with backticks, does not receive a background HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nimibook.