Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(doc-gen): Move versionInfo logic to new git dgeni-package #2444

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/dgeni-package/index.js
@@ -1,18 +1,18 @@
require('../../tools/transpiler/index.js').init();

var versionInfo = require('./versionInfo');
var Package = require('dgeni').Package;
var jsdocPackage = require('dgeni-packages/jsdoc');
var nunjucksPackage = require('dgeni-packages/nunjucks');
var linksPackage = require('../links-package');
var gitPackage = require('dgeni-packages/git');
var path = require('canonical-path');

var PARTIAL_PATH = 'partials';
var MODULES_DOCS_PATH = PARTIAL_PATH + '/modules';
var GUIDES_PATH = PARTIAL_PATH + '/guides';

// Define the dgeni package for generating the docs
module.exports = new Package('angular', [jsdocPackage, nunjucksPackage, linksPackage])
module.exports = new Package('angular', [jsdocPackage, nunjucksPackage, linksPackage, gitPackage])

// Register the services and file readers
.factory(require('./services/modules'))
Expand Down Expand Up @@ -49,7 +49,7 @@ module.exports = new Package('angular', [jsdocPackage, nunjucksPackage, linksPac
})


.config(function(renderDocsProcessor) {
.config(function(renderDocsProcessor, versionInfo) {
renderDocsProcessor.extraData.versionInfo = versionInfo;
})

Expand Down
3 changes: 0 additions & 3 deletions docs/dgeni-package/templates/lib/githubLinks.html

This file was deleted.

196 changes: 0 additions & 196 deletions docs/dgeni-package/versionInfo.js

This file was deleted.