Skip to content

EE Module that loads the Focus Lab, LLC Developer Documentation flat file into the CP for easy reading and multiple pages

License

Notifications You must be signed in to change notification settings

adrienne/dev_docs.ee_addon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 either Textile, Markdown or HTML syntax (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 documentation file into a multi-page Control Panel experience. Each “page” is determined by each section of the document starting with an H1 tag. 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 Textile document 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
  • Create a config value for your documentation path using $config['dd:docs_path'] = ''; in your config file
  • Note: if you’re following along Dev Docs during the beta there are no update scripts run. You must uninstall and reinstall each time you update the code. You won’t lose any data.

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. That means each <h1> will cause a new page in the Dev Docs area and be listed in the menu.

Supported Syntaxes

Dev Docs supports three file types so far. Textile, Markdown and straight HTML. You don’t need to define what syntax you want to use. Dev Docs will detect that based on the file’s extension.

You can optionally create sections before and after your documentation that will not appear within the EE Control Panel. To do this just create a paragraph line with ::start:: or ::end::. Anything above ::start:: or below ::end:: will not be parsed and saved into the Control Panel.

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…

About

EE Module that loads the Focus Lab, LLC Developer Documentation flat file into the CP for easy reading and multiple pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%