Skip to content
README.md 2.07 KiB
Newer Older
Sean Packham's avatar
Sean Packham committed
# docs.rocket.chat
Sean Packham's avatar
Sean Packham committed
The purpose of this project is to provide a central entry point for all Rocket.Chat projects' documentation and general documentation contribution, structure and style guides.

## Site structure

Above all else, this portal strives to keep everything simple and easy to use.

Sean Packham's avatar
Sean Packham committed
We chose Jekyll and GitLab pages because together they offer the most supported and user friendly way for others to fork, edit, preview and contribute documentation without having to setup a local development environment just to write copy, add images or manage files.
Sean Packham's avatar
Sean Packham committed
For developers, only use templates and includes when they are needed. Creating a template per page or splitting templates into many parts that are only included ones makes it challenging to maintain and contribute to the project.

### Templates

The `default.html` template is the base template used by pages or other templates (only `post.html` at the moment).

Sean Packham's avatar
Sean Packham committed
Only create a Template if it will be used by more than one page. Rather add the structure and content to the page e.g. see `index.html`.
Sean Packham's avatar
Sean Packham committed
Like Templates, only create an Include if it will be used in more than one Template.
Sean Packham's avatar
Sean Packham committed
When changing styles, bump the `version` number in `config.yml` to force browsers to load the new version.
Sean Packham's avatar
Sean Packham committed
Define Template or Page styles in their own file with the same name as the Template or Page (e.g `_templates/default.html`) and then include the style in `styles.scss`.
Sean Packham's avatar
Sean Packham committed
Only define variables for values that are used in multiple places and need to vary. Use contextually relevant names instead of calling it by the current value it holds e.g use `$body-color` instead of `$color-light-blue`. If you change the value of the variable in the second case, you have to update the name and everywhere it is referenced.

### index.html

Sean Packham's avatar
Sean Packham committed
Lists Rocket.Chat projects defined in `/_data/projects.yml` and outlines how to contribute.

### news.html

WIP: Index page for all documentation news.
Sean Packham's avatar
Sean Packham committed

Sean Packham's avatar
Sean Packham committed
### guies/*

Ideal documentation contributing, structure and style guides for all Rocket.Chat projects.

Sean Packham's avatar
Sean Packham committed
## Todo

- Design, UX and final CSS for portal