In general, all contributions should be made by forking this repository, making your changes on a feature branch, and proposing that feature branch as a pull request in GitHub.
This site is generated using the Jekyll framework, with several customizations to create the look and feel. Please reference their documentation for questions about the usage of jekyll features in your documents.
For most changes that are proposed to this repository you will simply need to get approval by another community member. This includes all changes that cover things like grammar/spelling updates, bug fixes, and smaller articles.
When proposing larger changes (eg modifications to major style components,
adding large tutorials, reorganizing content) you will need to get approval
from 3 community members before a merge will occur. For convenience you
may mention the @radanalyticsio/radanalytics-io team to get the attention
of a larger group of reviewers. We recommend adding a reply comment to your
review with text similar to @radanalyticsio/radanalytics-io ptal (ptal means
"please take a look").
To test this site locally, you will need to have Ruby installed as well as the Bundler gem and the Bower application. This will make installing and running the site much simpler. With all the required development software installed, you should be able to run the site locally as follows:
$ gem install bundler
$ cd radanalyticsio.github.io
$ bundle install --path .vendor
$ bower install
$ bundle exec jekyll serve
At this point the site will be running and served locally at
http://localhost:4000, with the server running any file changes will be
automatically picked up and the site re-generated.
A note on Mac OSX development
A common source of problems for Mac users when installing Jekyll's
dependencies is the Nokogiri library. Should your
bundle install run into trouble installing Nokogiri, please see the
suggestions offered in the Nokogiri docs
or consult Stack Overflow for other possible
fixes.
If you would prefer to use a self-contained environment for testing your changes, a Dockerfile is provided in the root of the project which will allow you to leverage the convenience of docker. To test your changes using this methodology run the following:
$ cd radanalytics.github.io
$ chmod -R go+rX .
$ docker build -t radanalytics.io .
$ docker run --rm -it -p 4000:4000 radanalytics.io
The site will now be served locally at http://localhost:4000
If you would like to propose a new application or example for inclusion in the tutorials section, there are a couple steps that need to be completed:
- Copy the
_templates/application_or_example.adocfile to the_applicationsor_examplesdirectory depending on its type and rename it to suite your tutorial's name. - Edit your new tutorial AsciiDoc file with the appropriate information. (there is information in the example on what to provide)
- If your tutorial will require additional assets (images, slide deck, etc),
create a directory for your tutorial documentation assets in the
assetsdirectory. This new directory should be named to match the value you provided in thepage-linkattribute entry in your tutorial document. - Add any assets you will need (graphics, files, etc) to your assets directory.
- If your tutorial includes a lightning talk, copy the
_templates/lightningdirectory into your assets directory. This directory contains the reveal.js slide deck template. Also ensure that thepage-menu_itemsattribute entry contains thelightningvalue, this will create the proper menu link for the slide deck. - Edit the
index.htmlfile for the lightning slide deck. (there is information in the file on what to provide) - Commit the files to your feature branch and propose a pull request when you are ready.
The Frequently Asked Questions (FAQ) page is generated from the collection of
documents stored in the _faqs directory. To add a new question/answer pair,
simply do the following:
- Copy the
_templates/faq.adocfile to the_faqsdirectory, and rename it to reflect your question. - Edit the contents of the new file to contain your question, the title of the document will get converted to be used in the FAQ page.
- Commit the new file to your feature branch and propose a pull request when you are ready.
The "How do I?" page is generated from the collection of
documents stored in the _howdoi directory. To add a new question/answer pair,
simply do the following:
- Copy the
_templates/how-do-i.adocfile to the_howdoidirectory, and rename it to reflect your question. - Edit the contents of the new file to contain your question, the title of the document will get converted to be used in the "How do I" page.
- If you need to add media files for your entry, add them to the
assets/howdoidirectory. - Commit the new file to your feature branch and propose a pull request when you are ready.
The community page contains a list of presentations given by and about radanalytics related topics. If you would like to add your presentation to this list, please follow these instructions:
- Copy the
_templates/presentation.adocfile to the_presentationsdirectory and rename it to reflect the name of your presentation. - Edit the contents of the new file to contain your presentation abstract and related information.
- Commit the new file to your feature branch and propose a pull request when you are ready.
The projects page contains a list of the radanalytics hosted projects. If you would like to add a new project to this list, please follow these instructions:
- Copy the
_templates/project.adocfile to the_projectsdirectory and rename it to reflect the name of the project. - Edit the contents of the new file to contain the project information and links.
- Commit the new file to your feature branch and propose a pull request when you are ready.
Files that will be processed by jekyll contain a bit at the beginning referred to as front matter. This is a small section of YAML that contains variables which will be available to the processing engine. When creating your application documentation there are several front matter variables which will help with the proper display of your information. Please be careful to follow the instructions in the template about their usage.
As the content of this repository is converted from Markdown to AsciiDoc, you might notice some changes in the way the front matter variables are handled. AsciiDoc documents may contain AttributeEntry blocks in their headers. These variables are used in a similar manner as the Jekyll front matter variables. Although these attribute entries and front matter can co-exist within the current deployment framework, the preference should be to always use AsciiDoc attribute entries when possible.