- Open Terminal.
- Check whether you have Ruby 2.1.0 or higher installed:
ruby --version
ruby 2.X.X
-
If you don't have Ruby installed, install Ruby 2.0.0 or higher.
-
Install Bundler:
gem install bundler
# Installs the Bundler gem
- Run Bundler:
bundle
git clone git@github.com:modelica/fmi-standard.org.git
bundle exec jekyll serve
You should get:
Configuration file: /www/sites/fmi-standard/public/_config.yml
Source: /www/sites/fmi-standard/public
Destination: /www/sites/fmi-standard/public/_site
Generating...
done.
Auto-regeneration: enabled for '/www/sites/fmi-standard/public'
Configuration file: /www/sites/fmi-standard/public/_config.yml
Server address: http://0.0.0.0:4000/fmi-standard.org/
Server running... press ctrl-c to stop.
Webpage is on URL http://localhost:4000/fmi-standard.org/
_data
- text content[page_name]
[section_name]
section.yml
- contain title of section[box_name].yml
- text content, more is below
_includes
- parts templates_layout
- layout templates_posts
news
- newsYYYY-MM-DD-title.md
- write news in markdown
_sass
- styles soures_site
- compiled webpageassets
- assets filescss
- stylesheet prepared to compilationpages
- webpage structure_congfig.yml
- site settingsGemfile
- gem configGemfile.lock
Text content is in in yml files.
You can use this fields:
-
title:
- main box title -
content:
or usecontent: >
when you can't write content inline, content must be indentedYou can use markdown and html If you need two column with subtitles use array:
content: #first column - - title: content: - title: Voting content: # second column - - title: content: - title: content:
-
version:
- highlighted information about last release -
packageLink:
- link for package download, when is filled download button is displayed -
specificationLink
- link for specification download, when is filled download button is displayed -
downloads:
- next items to downloaddownloads: - text: link: - text: link: - text: link:
Just push to master
branch:
git push origin master
Updates appear on https://modelica.github.io/fmi-standard.org/