A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ensembl.org/info/docs/webcode/custom/html_pages.html below:

Adding HTML pages

Adding HTML pages to your Ensembl website

The main htdocs/info directory contains all the technical documentation needed for an Ensembl mirror. However you may want to add your own pages, such as contact information for your project or general documentation that applies to all species.

Navigation

In order to avoid spending time maintaining navigation of static pages, the Ensembl code includes automated navigation. This is implemented as follows:

  1. At server startup, the module EnsEMBL::Web::ConfigPacker parses the entire document tree for htdocs/info/ in all plugins, to produce a combined tree for the whole site
  2. This tree is then used to generate site navigation:

In order to take advantage of this functionality, you simply need to make sure that you place your documentation in the htdocs/info directory of your plugin, and follow these simple rules when formatting your HTML files:

Sample file:

<html>
<head>
<title>About This Project</title>
</head>

<body>
<h1>About This Project</h1>

[Your content here]

</body>
</html>

Note that if you add or remove a static page, or change anything within the <head> tag, you need to delete /conf/packed/web_tree.packed and restart the server.

Omitting content from the navigation

There may be instances where you do not wish to have ConfigPacker parse sections of the tree. For example, we do not include the contents of 'Doxygen' in the Ensembl documentation tree as it contains many hundreds of files and has its own navigation menu.

To omit part or all of a directory from the tree, use the "index" meta tag as follows:

Sample file:

<html>
<head>
<title>PDoc Documentation</title>
<meta name="index" content="NO FOLLOW" />
</head>

<body>
<h1>Ensembl PDoc Documentation</h1>

[rest of page]

</body>
</html>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4