Go to file
Ingo Schommer da441b231d Better syntax highlighting
Specifically, the old highlighter didn't support the "diff" format which was important for changelogs.
Changed the style from dark to light, since it's way too contrasty on a light background - makes it hard to scan both text and code.
And reduced the padding between code and content (mostly using the highlight style defaults)
Added a slight background shadow on code to visually offset the relatively light background color
Changed existing background color for <pre> to a slightly lighter shade, better contrast
Didn't create a custom *.ss style yet, too much work, and XML is good enough for now
2017-06-29 11:13:01 +12:00
_config FIX: Add tests and correct behaviour for next/prev 2014-09-21 11:18:36 +12:00
code Better syntax highlighting 2017-06-29 11:13:01 +12:00
css Better syntax highlighting 2017-06-29 11:13:01 +12:00
docs ENHANCEMENT A missing sources dir will simply disable that repo with a warning, rather than fatally erroring 2016-06-21 18:00:30 +12:00
images These changes make a number of improvements, mostly typographical, to improve readability and to render properly on small devices. 2014-11-07 12:01:07 +13:00
javascript Better syntax highlighting 2017-06-29 11:13:01 +12:00
lang Hotfix/remove search hamburger (#125) 2016-11-04 16:51:02 +13:00
templates FIX Use the first stable version to list pages in "all" 2016-12-12 13:42:58 +13:00
tests Support parsing and removing a YAML metadata block in markdown. 2017-03-22 09:55:31 +13:00
thirdparty Better syntax highlighting 2017-06-29 11:13:01 +12:00
.editorconfig Added standard editor config 2015-11-21 19:51:34 +13:00
.gitattributes Added standard git attributes 2015-11-21 20:09:58 +13:00
.gitignore MINOR: ignore ds store files 2012-04-08 21:19:29 +12:00
.scrutinizer.yml Added standard Scrutinizer config 2015-11-21 19:34:48 +13:00
.travis.yml Remove old CORE_RELEASE versions 2016-12-02 15:57:47 +13:00
README.md ENHANCEMENT A missing sources dir will simply disable that repo with a warning, rather than fatally erroring 2016-06-21 18:00:30 +12:00
_config.php PSR2 Formatting 2016-12-02 15:31:18 +13:00
code-of-conduct.md Added standard code of conduct 2015-11-21 20:19:12 +13:00
composer.json Support parsing and removing a YAML metadata block in markdown. 2017-03-22 09:55:31 +13:00
license.md Updated license year 2016-01-01 06:31:01 +13:00

README.md

Documentation Viewer Module

Build Status

Maintainer Contact

Requirements

These are pulled in via Composer.

  • SilverStripe 3.1
  • Parsedown and Parsedown Extra.

Summary

Reads markdown files from a given list of folders from your installation and provides a web interface for viewing the documentation. Ideal for providing documentation alongside your module or project code.

A variation of this module powers the main SilverStripe developer documentation and the user help websites.

For more documentation on how to use the module please read /docs/Writing-Documentation.md (or via this in /dev/docs/docsviewer/Writing-Documentation in your webbrowser)

Installation

composer require "silverstripe/docsviewer" "dev-master"

Usage

After installing the files via composer, rebuild the SilverStripe database..

sake dev/build

Then start by viewing the documentation at yoursite.com/dev/docs.

If something isn't working, you can run the dev task at yoursite.com/dev/tasks/CheckDocsSourcesTask to automatically check for configuration or source file errors.

Out of the box the module will display the documentation files that have been bundled into any of your installed modules. To configure what is shown in the documentation viewer see the detailed documentation.

For more information about how to use the module see each of the documentation

* [Configuration](docs/en/configuration.md)
* [Markdown Syntax](docs/en/markdown.md)
* [Syntax Highlighting](docs/en/syntax-highlighting.md)
* [Publishing Static Files](docs/en/statichtml.md)

License

See LICENSE