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

deprecate/remove nbPostInit #50

Closed
pietroppeter opened this issue May 27, 2021 · 0 comments · Fixed by #61
Closed

deprecate/remove nbPostInit #50

pietroppeter opened this issue May 27, 2021 · 0 comments · Fixed by #61

Comments

@pietroppeter
Copy link
Owner

it did not look like a good idea from the beginning, but it proved to be really bad: pietroppeter/nimibook#8
The alternative mechanism should be something like #45 or pietroppeter/nimibook#15

pietroppeter added a commit that referenced this issue Nov 6, 2021
* instead of creating and injecting multiple variables
  (`nbDoc`, `nbBlock`, `nbHomeDir`, ...), nimib now only injects a `nb` variable
  that is a `NbDoc`. Some aliases are provided to minimize breakage.
* handling of paths (`srcDir` and `homeDir`) is changed and is based on the presence
  of a new config file `nimib.toml`
* command line options are now processed and can be used to skip/override the config process.
  Run any nimib file with option `--nbHelp` to see available options.
* `nbPostInit` and `nbPreSave` customization mechanism based on includes are now removed 
* added `nbShow` command option to open in browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant