mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 07:53:38 +02:00
Add Documentation in Markdown plus express middleware for in-site rendering.
This commit is contained in:
14
res/app/docs/index.js
Normal file
14
res/app/docs/index.js
Normal 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'))
|
||||
Reference in New Issue
Block a user