👍🎉 First off, thanks for taking the time to contribute! 🎉👍
The following is a set of guidelines for contributing to AML Spec:
Think you found a bug? Please check the list of open issues to see if your bug has already been reported. If it hasn't please submit a new issue.
Here are a few tips for writing great bug reports:
- Be sure to include a descriptive title, a clear description specifying the problem
- If possible, include examples and other relevant information
- Only include one bug per issue. If you have discovered two bugs, please file two issues
Be sure to include a title, a clear description, as much relevant information as possible and examples if possible.
- Open a new GitHub pull request with the change.
- Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
- Before submitting, please read the Code contributions section to know more about the technical contribution requirements.
How to set up, run and make changes to the documentation.
- Node
- Ruby
-
Clone the project
$ git clone https://github.com/aml-org/aml-spec $ gh repo clone aml-org/aml-spec #using github CLI
-
Install Ruby (if you already have it, skip to step 3)
$ brew install ruby $ ruby --version > ruby 2.X.X
-
Install Bundler
$ gem install bundler # Installs the Bundler gem
-
Install bundler dependencies
$ bundle install > Fetching gem metadata from https://rubygems.org/............ > Fetching version metadata from https://rubygems.org/... > Fetching dependency metadata from https://rubygems.org/.. > Resolving dependencies...
-
Build local Jekyll site
# in project root directory $ bundle exec jekyll serve > Configuration file: /Users/octocat/my-site/_config.yml > Source: /Users/octocat/my-site > Destination: /Users/octocat/my-site/_site > Incremental build: disabled. Enable with --incremental > Generating... > done in 0.309 seconds. > Auto-regeneration: enabled for '/Users/amirra/mulesoft/aml-spec' > Server address: http://127.0.0.1:4000/ > Server running... press ctrl-c to stop.
-
Navigate to http://localhost:4000/aml-spec and the document should display inside your browser. All changes made are auto-reloaded while the server is running.
The steps to update documentation are:
- Update desired markdown file
- Update documentation index (if necessary)
For example, let's edit the dialects.md
file with a new topic called 'Example subtitle'.
-
Edit the markdown file
-
Add a list element to the
_includes/dialects_menu.html
like the following line of HTML:<li><a href="#example subtitle">Example Subtitle</a></li>
If you have only modified information already present, there is no need to add a new Subtitle to the index.
For more information and further customization, please refer to the Jekyll style guide.
GitHub Pages builds the files in the master
branch. Every change made (i.e. merged PR) updates the public documentation almost instantly.
Private markdown documents can be in the repository without appearing in the documentation if the variable published
is set to false in the Front Matter of said document.
- Always branch from
master
branch to ensure you are updated with the latest release. - Don’t submit unrelated changes in the same branch/pull request.
- If you need to update your branch because of changes in
master
you should always rebase, not merge. - You should always be up-to-date with the latest changes in
master
.