@mdfriday/foundry
Version:
The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.
57 lines • 1.36 kB
TypeScript
import { ServiceConfig } from '../type';
/**
* Service entity holds service configuration
*/
export declare class Service {
private serviceConfig;
constructor(serviceConfig: ServiceConfig);
/**
* Check if Google Analytics is enabled
*/
isGoogleAnalyticsEnabled(): boolean;
/**
* Get Google Analytics ID
*/
googleAnalyticsID(): string;
/**
* Check if Google Analytics should respect Do Not Track
*/
isGoogleAnalyticsRespectDoNotTrack(): boolean;
/**
* Check if Disqus is enabled
*/
isDisqusEnabled(): boolean;
/**
* Get Disqus shortname
*/
disqusShortname(): string;
/**
* Get RSS limit
*/
rssLimit(): number;
/**
* Get the service configuration
*/
getServiceConfig(): ServiceConfig;
/**
* Get Google Analytics configuration
*/
getGoogleAnalytics(): import("../type").GoogleAnalytics;
/**
* Get Disqus configuration
*/
getDisqus(): import("../type").Disqus;
/**
* Get RSS configuration
*/
getRSS(): import("../type").RSS;
/**
* Check if any service is enabled
*/
hasEnabledServices(): boolean;
}
/**
* Create a new Service instance from provider data
*/
export declare function newService(data: any): Service;
//# sourceMappingURL=service.d.ts.map