### Install and Generate Tiptap Bundle Source: https://github.com/maglevhq/maglev-core/blob/master/scripts/tiptap-bundle/README.md Install project dependencies and run the generation script to create the `tiptap.bundle.js` file. ```bash yarn install yarn generate ``` -------------------------------- ### Local Run Commands for Lookbook Host App Source: https://github.com/maglevhq/maglev-core/blob/master/docs/lookbook_host.md Commands to install dependencies and start the Rails server for local development. Ensure you are in the repository root before executing. ```bash cd lookbook_host bundle install ./bin/rails server ``` -------------------------------- ### Override Editor Topbar Partial in Rails App Source: https://github.com/maglevhq/maglev-core/blob/master/docs/v3-editor-architecture.md Example of how to override the default editor topbar partial in a host Rails application by creating a new ERB file. This allows for custom actions and branding in the editor's top bar. ```erb <% topbar.with_logo(root_path: "/", logo_url: maglev_editor_logo_url) %> <% topbar.with_actions do %> <%= link_to "My docs", "/docs", class: "text-sm underline mr-4" %> <% end %> ``` -------------------------------- ### Import and Initialize Tiptap Editor Source: https://github.com/maglevhq/maglev-core/blob/master/scripts/tiptap-bundle/README.md Import necessary Tiptap components and initialize the editor with specified extensions and content. Ensure `tiptap.bundle.js` is accessible. ```html ``` -------------------------------- ### Run Maglev Locally with Lookbook Source: https://github.com/maglevhq/maglev-core/blob/master/docs/v3-editor-architecture.md Commands to set up and run the dummy application locally to preview Maglev components using Lookbook. Access the Lookbook interface via the provided URL. ```bash cd spec/dummy bin/rails db:prepare bin/dev ``` -------------------------------- ### Docker Build and Run Commands for Lookbook Host App Source: https://github.com/maglevhq/maglev-core/blob/master/docs/lookbook_host.md Commands to build the Docker image and run the container for the Lookbook host app. The build context must be the repository root. ```bash docker build -f lookbook_host/Dockerfile -t maglev-lookbook . docker run --rm -p 3000:3000 \ -e SECRET_KEY_BASE="$(openssl rand -hex 32)" \ maglev-lookbook ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.