A repo for the Keycard website
Go to file
Michele Balistreri 8025d14c28 fix typo 2019-02-11 17:13:02 +03:00
.vscode Initial skeleton 2018-12-03 12:57:58 +02:00
scaffolds Initial skeleton 2018-12-03 12:57:58 +02:00
scripts remove menus, cleanup wrong links 2019-02-11 16:32:33 +03:00
source fix typo 2019-02-11 17:13:02 +03:00
themes/navy add changelog 2019-02-11 17:02:16 +03:00
.gitignore remove generated file from repo 2019-01-18 19:50:29 +03:00
Jenkinsfile Initial skeleton 2018-12-03 12:57:58 +02:00
LICENSE Initial commit 2018-12-03 11:26:34 +02:00
README.md Initial skeleton 2018-12-03 12:57:58 +02:00
_config.dev.yml add resource page 2019-02-01 13:37:50 +03:00
_config.prod.yml configuration 2019-01-18 19:48:37 +03:00
gulpfile.js Initial skeleton 2018-12-03 12:57:58 +02:00
package.json Initial skeleton 2018-12-03 12:57:58 +02:00

README.md

Keycard

This repo hosts the code for both keycard.status.im on the master branch (which builds and serves through gh-pages), and dev-keycard.status.im on the develop branch.

There is an edit button on each page, which will take you directly to the document you need to edit on the develop branch. We can then allow a large 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. master is obviously protected, and will only have changes merged in from develop once accepted.

Adding a New Page

If you want to add a page, rather than just edit, you'll need to make sure it appears on the sidebar and is accessible to everyone.

  1. Add your page to source/docs/<your_file_here>.md
  2. In source/_data/sidebars.yml add the appropriate text to the appropriate place.
  3. In themes/navy/languages/en.yml edit the sidebars section to make sure that your new text in sidebars.yml is rendered correctly.

Testing locally

Make sure you have node.js installed first.

Open Terminal and navigate to the project root directory,

npm install
./node_modules/.bin/gulp build

In another terminal:

./node_modules/.bin/hexo serve -p 8000

Open http://localhost:8000 in a browser.

This prevents the need for any global installs, and will allow you to have live reloading for any changes you are making.