Embedded Plugin


This plugin lets you embed HTML files (eg. documentation, test reports...) in your projects.

It has builtin templates to display the following files nicely: Doxygen and Javadoc documentation and Rcov coverage reports. Any other HTML files can be displayed as well unless they contain HTML frames.

It adds a new permission View embedded doc and a new module Embedded that can be enabled/disabled at project level.


This plugin requires Redmine r1659 or higher running Rails 2.1. Due to some changes in the plugin API, it won't work with 0.7.x releases.


The plugin can be installed by running the following command from your redmine directory:

ruby script/plugin install

Then restart Redmine.


1. Go to Administration -> Plugins -> Embedded -> Configure to configure the plugin:

  • HTML directory: enter the root directory where HTML files can be found for each project. You can use this tag: {PROJECT} in the path to represent the project identifier. The application need to have read access on this path.
    For example, this setting should be set to /var/{PROJECT}/doxygen if you have a directory structure like below, where foo and bar are 2 projects:
 | |-doxygen
 |  |-doc.html
 |  |-index.html
  • Index files: a space separated list of file names that are displayed by default.
  • Valid extension: a space separated list of file extensions that can be displayed. Access to a file with a different extension will be denied.
  • Default template: Default template (stylesheet and javascript) that will be used when displaying a file.
    If you have more than one kind of document (eg. Doxygen and Rdoc files), the template to use can be detected based on the file's path. For example, a file located in a path that contain doxygen (as in the example above) will be automatically displayed with the Doxygen template.
  • Encoding: enter the files encoding if they're not UTF-8 encoded. Files are reencoded to UTF-8 to be properly displayed in Redmine.
  • Tab caption: text that is used for the navigation tab added to the project menu.
    No navigation tab is added if this field is left blank. That way, you can link to the pages from your wiki.

2. Go to Administration -> Roles and Permissions to give the new permission to your roles.

3. Enable the module in the project(s) settings.


  • If you enable the navigation tab, make sure that one of the index files you entered (eg. index.html) is present in the root directory of your project, otherwise clicking this tab will lead to a 404 error.
  • The URL pattern for accessing embedded pages is: /embedded/:project/:path where :project is the project identifier and :path is the path of the embedded file relative to the HTML directory entered in the plugin settings.
    Examples based on the above directory structure and HTML directory set to /var/{PROJECT}/doxygen:
/embedded/foo                           => displays /var/foo/doxygen/index.html
/embedded/foo/index.html                => same as above
/embedded/foo/subdirectory              => displays /var/foo/doxygen/subdirectory/index.html
/embedded/foo/subdirectory/misc.html    => displays /var/foo/doxygen/subdirectory/misc.html
  • You can define new templates by adding stylesheets to the /assets/stylesheets directory of the plugin. Needs application restart.

Updated by Dominic Clifton about 14 years ago · 3 revisions