aboutsummaryrefslogtreecommitdiffstats
path: root/docs/makedocs.pl
diff options
context:
space:
mode:
authorDave Miller <github@justdave.net>2023-09-04 01:27:30 -0400
committerGitHub <noreply@github.com>2023-09-04 01:27:30 -0400
commit33dcdce548a996241a4dcc5000fcb61611d87239 (patch)
treec7f629ac77b2fe727ca6c93f09b2b6a0fc9d2398 /docs/makedocs.pl
parent0a1faaaa357d721e62610cdac8242a07799ba89a (diff)
downloadbugs-33dcdce548a996241a4dcc5000fcb61611d87239.tar
bugs-33dcdce548a996241a4dcc5000fcb61611d87239.tar.gz
bugs-33dcdce548a996241a4dcc5000fcb61611d87239.tar.bz2
bugs-33dcdce548a996241a4dcc5000fcb61611d87239.tar.xz
bugs-33dcdce548a996241a4dcc5000fcb61611d87239.zip
Bug 1769248: get ReadTheDocs to build the POD docs (#137)
Diffstat (limited to 'docs/makedocs.pl')
-rwxr-xr-xdocs/makedocs.pl10
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/makedocs.pl b/docs/makedocs.pl
index 36ffc45b5..8e11de02a 100755
--- a/docs/makedocs.pl
+++ b/docs/makedocs.pl
@@ -33,6 +33,7 @@ BEGIN { chdir dirname($0); }
use lib qw(.. ../lib lib);
use Cwd;
+use File::Copy qw(copy);
use File::Copy::Recursive qw(rcopy);
use File::Find;
use File::Path qw(rmtree make_path);
@@ -82,12 +83,19 @@ END_HTML
$converter->contents_page_start($contents_start);
$converter->contents_page_end("</body></html>");
- $converter->add_css('./../../../../style.css');
+ if (exists($::ENV{'READTHEDOCS'})) {
+ $converter->add_css('./../../style.css');
+ } else {
+ $converter->add_css('./../../../../style.css');
+ }
$converter->javascript_flurry(0);
$converter->css_flurry(0);
make_path('html/integrating/api');
$converter->batch_convert(['../../'], 'html/integrating/api');
+ if (exists($::ENV{'READTHEDOCS'})) {
+ copy('../style.css', 'html/style.css') or die "Copy failed: $!";
+ }
print "\n";
}