diff --git a/railseventstore.org/docs/getting-started/install.md b/railseventstore.org/docs/getting-started/install.mdx similarity index 87% rename from railseventstore.org/docs/getting-started/install.md rename to railseventstore.org/docs/getting-started/install.mdx index 1469ca397b..1f1ab55264 100644 --- a/railseventstore.org/docs/getting-started/install.md +++ b/railseventstore.org/docs/getting-started/install.mdx @@ -3,6 +3,8 @@ title: Installation sidebar_position: 2 --- +import AsciinemaWidget from '@site/src/components/Asciinema'; + ## Quick setup @@ -22,7 +24,10 @@ The template will: rails new -m https://railseventstore.org/new APP_NAME ``` - + + + Obviously, you can specify all the [options](https://guides.rubyonrails.org/command_line.html#rails-new) which `rails new` takes, e.g. database you want to use: @@ -40,7 +45,7 @@ Simply `cd` to your Rails application root directory and run: bin/rails app:template LOCATION=https://railseventstore.org/new ``` - + The template will: @@ -168,12 +173,12 @@ gem "rails_event_store" After running `bundle install`, Rails Event Store should be ready to be used. -}> + {() => { + const ref = useRef(null); + + useEffect(() => { + const script = document.createElement('script'); + script.src = src; + script.id = id; + script.async = true; + ref.current.appendChild(script); + + return () => { + ref.current.removeChild(script); + }; + }, [ref,src, id]); + + return
; + }} + + ); +}; + +export default AsciinemaWidget; \ No newline at end of file