Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

Dynamic Documentation

Making documentation friendly & fun...

slides: https://www.slideshare.net/DanielDannyLawrence/dynamic-documentation-srecon-2017

Copy everything below in order to have the wiki page be dynamic!

insert this into the top of the page.

{html}
<div ng-app="DDOCApp" ng-controller="DDOCCntl">
{html}

insert this into the bottom of the page.

{html}
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.1/angular.min.js"></script>
<script>
    angular.module('DDOCApp', [], function($locationProvider) {
	      $locationProvider.html5Mode({enabled: true, requireBase: false});
	}).controller('DDOCCntl', function DDOCCntl($scope, $location) {
	$scope.service_name = $location.search()['service_name'] || '{{service-name}}';
					
	// pull out result data
	result_raw = $location.search()['result'] || {};
	$scope.result = angular.fromJson(result_raw)[0];
									  
	// pull out service data
	service_raw = $location.search()['service'] || {};
	$scope.service = angular.fromJson(service_raw)[0];

	});
</script>
{html}

About

Dynamic Documentation - Making documentation friendly & fun

Resources

License

Releases

No releases published

Packages

No packages published

Languages