The version 1.x is used to work with Alchemy CMS 3.x
The alchemy-usermanual gem reads your page_layouts.yml
and elements.yml
and wraps all the interesting stuff into a module rendered in the admin-frontend of your Alchemy CMS driven application.
Users that are logged in to Alchemy can read through the self-explaining website configuration.
Add this line to your application's Gemfile
:
gem 'alchemy-usermanual', '~> 1.0'
And then run bundle install
on your terminal.
You just need to bundle the gem with your application. Then the user manual will be available in the Alchemy admin-frontend.
By default translated informations of your page_layouts and elements are presented to the user.
If you like to extend these informations with individual descriptions, you can store these translatable informations as hints in your page_layouts.yml
and elements.yml
files.
Example 1 (hint for a page_layout)
# /config/alchemy/page_layouts.yml
- name: product_detail
hint: true
elements: [...]
# /config/locales/en.yml
en:
alchemy:
page_layout_hints:
product_detail: "This page template is used for presenting all the details of one certain product... You can write a full description of what the page template is used to and what the user should consider when using it."
Example 2 (hint for an element)
# /config/alchemy/elements.yml
- name: product_detail
hint: true
elements: [...]
# /config/locales/en.yml
en:
alchemy:
element_hints:
product_video: "This element is used to play the youtube video of your product... You can write a full description of what the element is used to and what the user should consider when using it."
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request