Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
EE Module that loads the Focus Lab, LLC Developer Documentation flat file into the CP for easy reading and multiple pages
PHP
branch: master

This branch is even with focuslabllc:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
dev_docs
themes/third_party/dev_docs
.gitignore
LICENSE
readme.textile

readme.textile

Dev Docs

Dev Docs was born from a desire to have project-specific, developer-based documentation available within a site’s Control Panel.

At Focus Lab we have a file in each project’s repository root that is meant only for developers. This file is in Textile formatting (like this readme file) and is meant to be the primary source of information to get “up to speed” on the project. You can learn more about our documentation practices in our documentation article on EE Insider.

Dev Docs will parse the Textile-formatted documentation file into a multi-page Control Panel experience. Each “page” is determined by each “h1. Title” section of the document. The documentation is cached in the database to speed up page loads while reviewing the docs. If the documentation ever gets updated, the cache is automagicaly cleared and the docs are updated in the database.

Included in this download is the sample file that is referenced in our EE Insider article and in the embedded slides there. Below you can see how TextMate renders the flat file and how Dev Docs renders the same exact file without any extra effort from the developers.


A screenshot from one of our actual documentation pages on a project (slightly altered)

Compatibility

Dev Docs requires ExpressionEngine 2.x

Installation

  • Move the dev_docs folder into your expressionengine/third_party folder
  • Move the themes/third_party/dev_docs folder into your themes/third_party folder
  • Go to Modules → Dev Docs → Install
  • Update the path to your documentation file around line 78 in the dev_docs/mcp.dev_docs.php file

Setup

You can save your documentation file anywhere on your server that is accessible from EE’s control panel index/admin page. The module will break off each “section” of the document into individual pages in the CP. A “section” is defined by an h1 tag in Textile. That means each line starting with @h1. @ will cause a new page in the Dev Docs area.

Here are a few places to learn more about the Textile syntax:

To Do

  1. Styles
    I started getting the styles together but they could still use some love from a designer. One day. Maybe.
  2. Settings
    File path settings (among other things) will eventually not be hard coded into the add-on
  3. Other goodies
    Wait and see…

Change Log

August 9th, 2011: 0.1.4

  • Added Dev Docs to the CP menu (by way of the cp_menu_array hook)
  • Updated styles a bit
  • Fixed a bug where a page might not load if a short_name is provided but invalid

August 7th, 2011: 0.1.1

  • Added some initial base style overrides
  • Added new Style sample section/page to sample document

August 6th, 2011: 0.1.0

  • Initial Release
Something went wrong with that request. Please try again.