1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-06 03:50:04 +02:00

Add Documentation in Markdown plus express middleware for in-site rendering.

This commit is contained in:
Gunther Brunner 2014-08-28 21:04:32 +09:00
parent c318cddd14
commit eb968fa737
13 changed files with 349 additions and 12 deletions

14
res/app/docs/index.js Normal file
View file

@ -0,0 +1,14 @@
require('./docs.css')
module.exports = angular.module('stf.help.docs', [])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/docs/:lang/:document*', {
templateUrl: function (params) {
var document = params.document.replace('.md', '')
return '/static/docs/' + params.lang + '/' + document
}
})
}])
.controller('DocsCtrl', require('./docs-controller'))