Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
feature #40 Generate HTTPS links for php.net (stof)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.0-dev branch.

Discussion
----------

Generate HTTPS links for php.net

Commits
-------

d059f86 Generate HTTPS links for php.net
  • Loading branch information
fabpot committed Apr 20, 2018
2 parents e0472cd + d059f86 commit 578573f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sensio/sphinx/phpcode.py
Expand Up @@ -80,7 +80,7 @@ def php_phpclass_role(typ, rawtext, text, lineno, inliner, options={}, content=[
text = utils.unescape(text)
has_explicit_title, title, full_class = split_explicit_title(text)

full_url = 'http://php.net/manual/en/class.%s.php' % full_class.lower()
full_url = 'https://secure.php.net/manual/en/class.%s.php' % full_class.lower()

if not has_explicit_title:
title = full_class
Expand All @@ -96,7 +96,7 @@ def php_phpmethod_role(typ, rawtext, text, lineno, inliner, options={}, content=
full_class = class_and_method[:ns]
method = class_and_method[ns+2:]

full_url = 'http://php.net/manual/en/%s.%s.php' % (full_class.lower(), method.lower())
full_url = 'https://secure.php.net/manual/en/%s.%s.php' % (full_class.lower(), method.lower())

if not has_explicit_title:
title = full_class + '::' + method + '()'
Expand All @@ -108,7 +108,7 @@ def php_phpfunction_role(typ, rawtext, text, lineno, inliner, options={}, conten
text = utils.unescape(text)
has_explicit_title, title, full_function = split_explicit_title(text)

full_url = 'http://php.net/manual/en/function.%s.php' % full_function.replace('_', '-').lower()
full_url = 'https://secure.php.net/manual/en/function.%s.php' % full_function.replace('_', '-').lower()

if not has_explicit_title:
title = full_function
Expand Down

0 comments on commit 578573f

Please sign in to comment.