This repo hosts the code for both status.im on the master
branch (which builds and serves through gh-pages
), and dev.status.im on the develop
branch.
Changes to the documentation can be made on GitHub by editing files in the source
folder. Please make sure that any changes you make are against develop
. The idea is that we can merge recklessly to develop
, then anyone see if the changes look OK on dev.status.im
.
master
is protected and only ever gets changed when merging develop (git merge develop --ff
). This method makes for easy maintenance AND allows a larger group of people to push directly to develop
and show their changes on the staging site when asking for review, which should smooth out and speed up the process considerably for everyone.
If you want to add a page to specific section, rather than just edit an existing page, you'll need to make sure your new page appears on the sidebar and is accessible to everyone.
- Add your page to
source/<your_section>/<your_file_here>.md
- In
source/_data/sidebars.yml
add the appropriate text to the appropriate place. - In
themes/navy/languages/en.yml
edit the sidebars section to make sure that your new text insidebars.yml
is rendered correctly.
Make sure you have node.js installed first.
- Open Terminal and navigate to the project root directory
- Run
yarn install
- Run
yarn build
- Run
yarn devel
- If you would like add new styles, you can find all the
sass
files inthemes/navy/source/scss
- add your own there and keep things modular, clean and performing well. - If you would like to add some JS for animations of images, or other potential bounties, the place to do that is
themes/navy/source/js
. - Changing the header, footer, mobile nav, or scripts (in
after_footer
) can be done inthemes/navy/layout/partial
. - Each new subdirectory gets it's own route, so if you want to add a new section like
status.im/extensions
orstatus.im/contribute
, then just create a new directory insource
, name it what you want the route to be called, and add anindex.md
file to it.
If you want it to have a unique layout, set it up something like this:
---
layout: extensions
title: Status Extensions
id: index
---
and then create the appropriate extensions.ejs
layout file in themes/navy/layout
. .ejs
files are exactly like html - so just write html in there and don't stress.
Unfortunately, adding subdirectories within subdirectories like status.im/security/guides
doesn't really work right now if you want to have a sidebar too, because it routes you to the wrong place. This could be the subject of a bounty.
For providing search an ElasticSearch cluster is used, which is available at https://search.infra.status.im/.
For more information see our article on the Search Cluster.