This is the official repository for Rocket.Chat Documentation.
This is a quick guide on how to run the docs site locally, for a more in depth guide please look here.
- Install ruby (version 2.6 or higher recommended, if using any version prior to 2.5 you will need to install bundler with
gem install bundler
). If the above fails, try specifing the version by runnninggem install bundler -v [VERSION]
as per theBUNDLED WITH [VERSION]
definition in Gemfile.lock file. - This step is for only macOS users:
- You will need to have either
xcode
or thexcode command line tools
installed. To install the command tools usexcode-select --install
. Don't forget to accept thesudo xcodebuild -license
command. - Depending on your setup you might need to install nokogiri and its dependencies manually.
- You will need to have either
- Fork the https://github.com/RocketChat/docs repository.
- Clone your forked repository to your local enviroment.
- Run
cd docs/
to enter the cloned docs folder. - Run
bundle install
. - Start the server with
bundle exec "jekyll serve --incremental --safe"
. - The application is now available in your browser at
http://localhost:4000
.
You should always lint your changes to find errors locally before pushing your changes. This only takes seconds, from the docs
directory:
bundle exec "mdl ./ -r ~MD004 -i -g"