You can view this website under fossasia.github.io/kniteditor. Contributions are welcome. To easy contributing, this site has a detailed contributing section.
To contribute to this website you can
- translate the website into other languages. No installation required.
- update translations for existing languages
- install the website and change its code.
We have two branches:
gh-pages
serves the static content of the site. Do not edit this. It is generated and your changes will get lost.gh-pages-source
generates the website and should be edited.
-
Clone the website. This can be done with
git clone https://github.com/fossasia/kniteditor.git/
-
Checkout the
gh-pages-source
branch. -
Update the sbmodule in the
_site
directory. Jekyll generates the site into that directory. Therefore, it should contain thegh-pages
branch. It can be done like this:cd kniteditor git submodule init git submodule update cd _site git checkout gh-pages ls cd ..
Outcome: When doing
ls
, you should see the index.html file and other files that are part of the website as well as folders for different languages. -
Install Jekyll. Here for Ubuntu:
sudo apt-get update sudo apt-get -y install ruby-full sudo apt-get gem install jekyll
-
Install bundler to manage the dependencies:
sudo gem install bundler
-
Install the dependencies:
bundle install
-
Start the website:
jekyll serve --trace
Now, you can browse localhost:4000/kniteditor/ and view the website.
You can view all issues of the webste with the website tag.
If you work on these files continuously, you may find it handy to use the commit.bat and push.bat or correspoding linux files which update the gh-pages
branch based on the changes on the gh-pages-source
branch.
You can translate the website into your own language.
- Install POEdit
- In the _i18n folder, you can find the translations. Your language has a language code. Create a folder inside _i18n with the language code for your language.
- Open POEdit and "Create new translation".
Choose the _i18n/website.pot.
Save the file as
website.po
in the folder of your language code. - Translate with POEdit.
- Create a commit and a pull-request with the updated files.
Existing translations may be outdated. You can update them with the following process:
- Install POEdit
- In the _i18n folder, you can find the translations. Open the
.po
file of your liking and translate it further. - Create a commit and a pull-request with the updated files.