docs
Upgrading| modified | Saturday 28 December 2024 |
|---|
If you were a user for v1 and would like to upgrade to v2 please take the following steps:
--sidebar command-line argument is removed. it had no effect for a long time already and was kept for backward compatibilitybook extension is renamed to blocks and has the same book shortcode. if you’re importing it manually you need to change the import path to import blocks insteadxlog.RegisterExtension your extension in your init() function then Register* the rest of your components in the extension .Init() function instead of the global one. this allow for future development to enable/disable extensions by the user.xlog.Config.Readonly instead of xlog.READONLY during initialization (extension Init())Get/Post/Delete/..etc doesn’t accept middlewares parameters anymore.versions subdirectories you can remove them by running rm -rf *.versionsgithub.repo and github.branch are removed in favor of github.url which is the full URL of the editing. so it should work with other git online editorscustom_css was removed as its functionality can be achieved by using custom.headcustom_head/before_view/after_view name changed to custom. replacing the _ with . for consistency with other flags