Skip to content

Commit

Permalink
fix internal links to POD docs
Browse files Browse the repository at this point in the history
  • Loading branch information
justdave committed Aug 30, 2023
1 parent e4a58d9 commit 8aa3783
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ build:
apt_packages:
- libfile-copy-recursive-perl
jobs:
post_build:
- perl docs/makedocs.pl --pod-only && cp -rp docs/en/html/integrating/api/ "$READTHEDOCS_OUTPUT/html/integrating/api"
pre_build:
- mkdir -p "$READTHEDOCS_OUTPUT/html/integrating/api"
- perl docs/makedocs.pl --pod-only
- cp -rp docs/en/html/integrating/api/ "$READTHEDOCS_OUTPUT/html/integrating/api"
11 changes: 4 additions & 7 deletions docs/en/rst/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,10 @@
# Temporary highlighting of TODO items
todo_include_todos = False

# 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/5.0/en/html/integrating/api/'
else:
base_api_url = '../integrating/api/'
# Originally, the readthedocs.org website could not access POD,
# so we would conditionally override that here if we were building
# on RTD, but that's no longer the case.
base_api_url = '../integrating/api/'

extlinks = {'bug': ('https://bugzilla.mozilla.org/show_bug.cgi?id=%s', 'bug '),
'api': (base_api_url + '%s', '')}

0 comments on commit 8aa3783

Please sign in to comment.