Commit 9ad3cf5b authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1204957 - Locally compiled POD documentation is no longer accessible from docs/en/html/api/

r=dkl
parent 652ee918
...@@ -4,7 +4,8 @@ WebService API Reference ...@@ -4,7 +4,8 @@ WebService API Reference
======================== ========================
This Bugzilla installation has the following WebService APIs available This Bugzilla installation has the following WebService APIs available
(as of the last time you compiled the documentation): (as of the last time you compiled the documentation). Documentation for
the deprecated :ref:`XML-RPC and JSON-RPC APIs <api-list>` is also available.
.. toctree:: .. toctree::
:glob: :glob:
......
...@@ -383,4 +383,13 @@ pdf_fit_background_mode = 'scale' ...@@ -383,4 +383,13 @@ pdf_fit_background_mode = 'scale'
# Temporary highlighting of TODO items # Temporary highlighting of TODO items
todo_include_todos = False todo_include_todos = False
extlinks = {'bug': ('https://bugzilla.mozilla.org/show_bug.cgi?id=%s', 'bug ')} # The readthedocs.org website cannot access POD.
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if on_rtd:
base_api_url = 'https://www.bugzilla.org/docs/tip/en/html/api/'
else:
base_api_url = '../integrating/api/'
extlinks = {'bug': ('https://bugzilla.mozilla.org/show_bug.cgi?id=%s', 'bug '),
'api': (base_api_url + '%s', '')}
...@@ -12,6 +12,13 @@ coming soon. ...@@ -12,6 +12,13 @@ coming soon.
The APIs currently available are as follows: The APIs currently available are as follows:
Core Module API
===============
Most of the core Bugzilla modules have extensive documentation inside the modules
themselves. You can view the :api:`POD documentation <index.html>` to help with
using the core modules in your extensions.
Ad-Hoc APIs Ad-Hoc APIs
=========== ===========
...@@ -23,8 +30,7 @@ to alternate data formats where they are available. ...@@ -23,8 +30,7 @@ to alternate data formats where they are available.
XML-RPC XML-RPC
======= =======
Bugzilla has an `XML-RPC API Bugzilla has an :api:`XML-RPC API <Bugzilla/WebService/Server/XMLRPC.html>`.
<http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Server/XMLRPC.html>`_.
This will receive no further updates and will be removed in a future version This will receive no further updates and will be removed in a future version
of Bugzilla. of Bugzilla.
...@@ -33,8 +39,7 @@ Endpoint: :file:`/xmlrpc.cgi` ...@@ -33,8 +39,7 @@ Endpoint: :file:`/xmlrpc.cgi`
JSON-RPC JSON-RPC
======== ========
Bugzilla has a `JSON-RPC API Bugzilla has a :api:`JSON-RPC API <Bugzilla/WebService/Server/JSONRPC.html>`.
<http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Server/JSONRPC.html>`_.
This will receive no further updates and will be removed in a future version This will receive no further updates and will be removed in a future version
of Bugzilla. of Bugzilla.
......
...@@ -35,7 +35,7 @@ use lib qw(.. ../lib lib); ...@@ -35,7 +35,7 @@ use lib qw(.. ../lib lib);
use Cwd; use Cwd;
use File::Copy::Recursive qw(rcopy); use File::Copy::Recursive qw(rcopy);
use File::Find; use File::Find;
use File::Path qw(rmtree); use File::Path qw(rmtree make_path);
use File::Which qw(which); use File::Which qw(which);
use Pod::Simple; use Pod::Simple;
...@@ -52,7 +52,6 @@ sub MakeDocs { ...@@ -52,7 +52,6 @@ sub MakeDocs {
my ($name, $cmdline) = @_; my ($name, $cmdline) = @_;
say "Creating $name documentation ..." if defined $name; say "Creating $name documentation ..." if defined $name;
say "make $cmdline\n";
system('make', $cmdline) == 0 system('make', $cmdline) == 0
or $error_found = 1; or $error_found = 1;
print "\n"; print "\n";
...@@ -83,12 +82,11 @@ END_HTML ...@@ -83,12 +82,11 @@ END_HTML
$converter->contents_page_start($contents_start); $converter->contents_page_start($contents_start);
$converter->contents_page_end("</body></html>"); $converter->contents_page_end("</body></html>");
$converter->add_css('./../../../style.css'); $converter->add_css('./../../../../style.css');
$converter->javascript_flurry(0); $converter->javascript_flurry(0);
$converter->css_flurry(0); $converter->css_flurry(0);
mkdir("html"); make_path('html/integrating/api');
mkdir("html/api"); $converter->batch_convert(['../../'], 'html/integrating/api');
$converter->batch_convert(['../../'], 'html/api/');
print "\n"; print "\n";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment