summaryrefslogtreecommitdiffstats
path: root/docs/makedocs.pl
diff options
context:
space:
mode:
authorGervase Markham <gerv@gerv.net>2014-02-10 17:54:03 +0100
committerGervase Markham <gerv@mozilla.org>2014-02-10 17:54:03 +0100
commit1f815b55a63db41908d7fcf382705764b6b6a8bb (patch)
treefd54a1648e7d0790dc7a99ea327f98442d5daa7b /docs/makedocs.pl
parentd05bbe563a21a61788a44bd76ebbed51f1daeb62 (diff)
downloadbugzilla-1f815b55a63db41908d7fcf382705764b6b6a8bb.tar.gz
bugzilla-1f815b55a63db41908d7fcf382705764b6b6a8bb.tar.xz
Fix problem of variables not being replaced in RTD documentation by removing references to them. r=LpSolit, a=justdave.
https://bugzilla.mozilla.org/show_bug.cgi?id=964849
Diffstat (limited to 'docs/makedocs.pl')
-rwxr-xr-xdocs/makedocs.pl55
1 files changed, 1 insertions, 54 deletions
diff --git a/docs/makedocs.pl b/docs/makedocs.pl
index 2fc6721eb..d29a3fb91 100755
--- a/docs/makedocs.pl
+++ b/docs/makedocs.pl
@@ -46,65 +46,12 @@ if (eval { require Pod::Simple }) {
$pod_simple = 1;
};
-use Bugzilla::Install::Requirements
- qw(REQUIRED_MODULES OPTIONAL_MODULES);
-use Bugzilla::Constants qw(DB_MODULE BUGZILLA_VERSION);
+use Bugzilla::Constants qw(BUGZILLA_VERSION);
use File::Path qw(rmtree);
use File::Which qw(which);
###############################################################################
-# Generate minimum version list
-###############################################################################
-
-my $modules = REQUIRED_MODULES;
-my $opt_modules = OPTIONAL_MODULES;
-
-my $template;
-{
- open(TEMPLATE, '<', 'definitions.rst.tmpl')
- or die('Could not open definitions.rst.tmpl: ' . $!);
- local $/;
- $template = <TEMPLATE>;
- close TEMPLATE;
-}
-
-# This file is included at the end of Sphinx's conf.py. Unfortunately there's
-# no way to 'epilog' a file, only text.
-open(SUBSTS, '>', 'definitions.rst') or die('Could not open definitions.rst: ' . $!);
-print SUBSTS 'rst_epilog = """' . "\n$template\n";
-print SUBSTS ".. Module Versions\n\n";
-
-foreach my $module (@$modules, @$opt_modules)
-{
- my $name = $module->{'module'};
- $name =~ s/::/-/g;
- $name = lc($name);
- #This needs to be a string comparison, due to the modules having
- #version numbers like 0.9.4
- my $version = $module->{'version'} eq 0 ? 'any' : $module->{'version'};
- print SUBSTS '.. |min-' . $name . '-ver| replace:: ' . $version . "\n";
-}
-
-print SUBSTS "\n.. Database Versions\n\n";
-
-my $db_modules = DB_MODULE;
-foreach my $db (keys %$db_modules) {
- my $dbd = $db_modules->{$db}->{dbd};
- my $name = $dbd->{module};
- $name =~ s/::/-/g;
- $name = lc($name);
- my $version = $dbd->{version} || 'any';
- my $db_version = $db_modules->{$db}->{'db_version'};
- print SUBSTS '.. |min-' . $name . '-ver| replace:: ' . $version . "\n";
- print SUBSTS '.. |min-' . lc($db) . '-ver| replace:: ' . $db_version . "\n";
-}
-
-print SUBSTS '"""';
-
-close(SUBSTS);
-
-###############################################################################
# Subs
###############################################################################