Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 055b6b0

Browse files
Release Managervbraun
authored andcommitted
Trac #24743: more use of https links for wikipedia links
except in rst files and graph folder URL: https://trac.sagemath.org/24743 Reported by: chapoton Ticket author(s): Frédéric Chapoton Reviewer(s): Travis Scrimshaw
2 parents ed5c8ea + 5954303 commit 055b6b0

File tree

7 files changed

+27
-28
lines changed

7 files changed

+27
-28
lines changed

src/sage/categories/category_singleton.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Category_singleton(Category):
8989
9090
A *singleton* category is a category whose class takes no
9191
parameters like ``Fields()`` or ``Rings()``. See also the
92-
`Singleton design pattern <http://en.wikipedia.org/wiki/Singleton_pattern>`_.
92+
`Singleton design pattern <https://en.wikipedia.org/wiki/Singleton_pattern>`_.
9393
9494
This is a subclass of :class:`Category`, with a couple
9595
optimizations for singleton categories.

src/sage/databases/oeis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def _imaginary_entry(self, keywords=''):
554554
'%D A999999 Lewis Carroll, Alice\'s Adventures in Wonderland.\n'
555555
'%D A999999 Lewis Carroll, The Hunting of the Snark.\n'
556556
'%D A999999 Deep Thought, The Answer to the Ultimate Question of Life, The Universe, and Everything.\n'
557-
'%H A999999 Wikipedia, <a href="http://en.wikipedia.org/wiki/42_(number)">42 (number)</a>\n'
557+
'%H A999999 Wikipedia, <a href="https://en.wikipedia.org/wiki/42_(number)">42 (number)</a>\n'
558558
'%H A999999 See. also <a href="https://trac.sagemath.org/sage_trac/ticket/42">trac ticket #42</a>\n'
559559
'%H A999999 Do not confuse with the sequence <a href="/A000042">A000042</a> or the sequence <a href="/A000024">A000024</a>\n'
560560
'%H A999999 The string http://42.com is not a link.\n'
@@ -1465,7 +1465,7 @@ def links(self, browse=None, format='guess'):
14651465
'http://oeis.org/A000024'
14661466
14671467
sage: HTML = s.links(format="html"); HTML
1468-
0: Wikipedia, <a href="http://en.wikipedia.org/wiki/42_(number)">42 (number)</a>
1468+
0: Wikipedia, <a href="https://en.wikipedia.org/wiki/42_(number)">42 (number)</a>
14691469
1: See. also <a href="https://trac.sagemath.org/sage_trac/ticket/42">trac ticket #42</a>
14701470
...
14711471
sage: type(HTML)

src/sage/interacts/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def difference_quotient(
290290
"""
291291
html('<h2>Difference Quotient</h2>')
292292
html('<div style="white-space: normal;">\
293-
<a href="http://en.wikipedia.org/wiki/Difference_quotient" target="_blank">\
293+
<a href="https://en.wikipedia.org/wiki/Difference_quotient" target="_blank">\
294294
Wikipedia article about difference quotient</a></div>'
295295
)
296296

src/sage/interacts/test_jupyter.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Test all interacts from the Sage interact library::
8686
a: IntSlider(value=5, description=u'$a$', max=10)
8787
x0: IntSlider(value=2, description=u'$x_0$ (start point)', max=10)
8888
<h2>Difference Quotient</h2>
89-
<div style="white-space: normal;"> <a href="http://en.wikipedia.org/wiki/Difference_quotient" target="_blank"> Wikipedia article about difference quotient</a></div>
89+
<div style="white-space: normal;"> <a href="https://en.wikipedia.org/wiki/Difference_quotient" target="_blank"> Wikipedia article about difference quotient</a></div>
9090
<h2>Difference Quotient</h2>
9191
<br><script type="math/tex">\text{Line's equation:}</script>
9292
<script type="math/tex">y = 1/3*(x - 5)*(sin(5) - sin(2)) + sin(5)</script><br>

src/sage/numerical/mip.pyx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ r"""
22
Mixed Integer Linear Programming
33
44
This module implements classes and methods for the efficient solving of Linear
5-
Programs (`LP <http://en.wikipedia.org/wiki/Linear_programming>`_) and Mixed
6-
Integer Linear Programs (`MILP
7-
<http://en.wikipedia.org/wiki/Mixed_integer_linear_programming>`_).
5+
Programs (:wikipedia:`LP <Linear_programming>`) and Mixed
6+
Integer Linear Programs (:wikipedia:`MILP
7+
<Mixed_integer_linear_programming>`).
88
99
*Do you want to understand how the simplex method works?* See the
1010
:mod:`~sage.numerical.interactive_simplex_method` module (educational purposes
@@ -13,8 +13,8 @@ only)
1313
Definition
1414
----------
1515
16-
A linear program (`LP <http://en.wikipedia.org/wiki/Linear_programming>`_)
17-
is an `optimization problem <http://en.wikipedia.org/wiki/Optimization_%28mathematics%29>`_
16+
A linear program (:wikipedia:`LP <Linear_programming>`)
17+
is an optimization problem (:wikipedia:`Optimization_(mathematics)`)
1818
in the following form
1919
2020
.. MATH::
@@ -24,7 +24,7 @@ with given `A \in \mathbb{R}^{m,n}`, `b \in \mathbb{R}^m`,
2424
`c \in \mathbb{R}^n` and unknown `x \in \mathbb{R}^{n}`.
2525
If some or all variables in the vector `x` are restricted over
2626
the integers `\mathbb{Z}`, the problem is called mixed integer
27-
linear program (`MILP <http://en.wikipedia.org/wiki/Mixed_integer_linear_programming>`_).
27+
linear program (:wikipedia:`MILP <Mixed_integer_linear_programming>`).
2828
A wide variety of problems in optimization
2929
can be formulated in this standard form. Then, solvers are
3030
able to calculate a solution.
@@ -1393,8 +1393,8 @@ cdef class MixedIntegerLinearProgram(SageObject):
13931393
Writing problem data to ...
13941394
17 records were written
13951395
1396-
For information about the MPS file format :
1397-
http://en.wikipedia.org/wiki/MPS_%28format%29
1396+
For information about the MPS file format, see
1397+
:wikipedia:`MPS_(format)`
13981398
"""
13991399
self._backend.write_mps(filename, modern)
14001400

src/sage/numerical/sdp.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
r"""
22
SemiDefinite Programming
33
4-
A semidefinite program (`SDP <http://en.wikipedia.org/wiki/Semidefinite_programming>`_)
5-
is an `optimization problem <http://en.wikipedia.org/wiki/Optimization_%28mathematics%29>`_
4+
A semidefinite program (:wikipedia:`SDP <Semidefinite_programming>`)
5+
is an optimization problem (:wikipedia:`Optimization_(mathematics)>`)
66
of the following form
77
88
.. MATH::

src/sage/plot/plot3d/parametric_plot3d.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
380380
f_z = v
381381
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,-pi,pi), (v,-1,1), frame=False, color="red"))
382382
383-
A Trefoil knot https://en.wikipedia.org/wiki/Trefoil_knot::
383+
A Trefoil knot (:wikipedia:`Trefoil_knot`)::
384384
385385
sage: u, v = var('u,v')
386386
sage: f_x = (4*(1+0.25*sin(3*v))+cos(u))*cos(2*v)
@@ -414,7 +414,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
414414
f_z = cos(u) / (1 + sqrt(2))
415415
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,-pi,pi), (v,-pi,pi), frame=False, color="green"))
416416
417-
Boy's surface http://en.wikipedia.org/wiki/Boy's_surface and http://mathcurve.com/surfaces/boy/boy.shtml::
417+
Boy's surface (:wikipedia:`Boy's_surface` and https://mathcurve.com/surfaces/boy/boy.shtml)::
418418
419419
sage: u, v = var('u,v')
420420
sage: K = cos(u) / (sqrt(2) - cos(2*u)*sin(3*v))
@@ -436,7 +436,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
436436
plot_points=[90,90], frame=False, color="orange") # long time -- about 30 seconds
437437
sphinx_plot(P)
438438
439-
Maeder's Owl also known as Bour's minimal surface https://en.wikipedia.org/wiki/Bour%27s_minimal_surface::
439+
Maeder's Owl also known as Bour's minimal surface (:wikipedia:`Bour%27s_minimal_surface`)::
440440
441441
sage: u, v = var('u,v')
442442
sage: f_x = v*cos(u) - 0.5*v^2*cos(2*u)
@@ -527,8 +527,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
527527
f_z = sin(v)
528528
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,0,2*pi), (v,0,2*pi), frame=False, color="green"))
529529
530-
Yellow Whitney's umbrella
531-
http://en.wikipedia.org/wiki/Whitney_umbrella::
530+
Yellow Whitney's umbrella (:wikipedia:`Whitney_umbrella`)::
532531
533532
sage: u, v = var('u,v')
534533
sage: f_x = u*v
@@ -545,7 +544,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
545544
f_z = v**2
546545
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,-1,1), (v,-1,1), frame=False, color="yellow"))
547546
548-
Cross cap http://en.wikipedia.org/wiki/Cross-cap::
547+
Cross cap (:wikipedia:`Cross-cap`)::
549548
550549
sage: u, v = var('u,v')
551550
sage: f_x = (1+cos(v)) * cos(u)
@@ -597,8 +596,8 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
597596
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,0,4*pi), (v,0,2*pi), frame=False, color="red", opacity=0.7))
598597
599598
Steiner surface/Roman's surface (see
600-
http://en.wikipedia.org/wiki/Roman_surface and
601-
http://en.wikipedia.org/wiki/Steiner_surface)::
599+
:wikipedia:`Roman_surface` and
600+
:wikipedia:`Steiner_surface`)::
602601
603602
sage: u, v = var('u,v')
604603
sage: f_x = (sin(2*u) * cos(v) * cos(v))
@@ -615,7 +614,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
615614
f_z = (cos(u) * sin(2*v))
616615
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,-pi/2,pi/2), (v,-pi/2,pi/2), frame=False, color="red"))
617616
618-
Klein bottle? (see http://en.wikipedia.org/wiki/Klein_bottle)::
617+
Klein bottle? (see :wikipedia:`Klein_bottle`)::
619618
620619
sage: u, v = var('u,v')
621620
sage: f_x = (3*(1+sin(v)) + 2*(1-cos(v)/2)*cos(u)) * cos(v)
@@ -633,7 +632,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
633632
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,0,2*pi), (v,0,2*pi), frame=False, color="green"))
634633
635634
A Figure 8 embedding of the Klein bottle (see
636-
http://en.wikipedia.org/wiki/Klein_bottle)::
635+
:wikipedia:`Klein_bottle`)::
637636
638637
sage: u, v = var('u,v')
639638
sage: f_x = (2+cos(v/2)*sin(u)-sin(v/2)*sin(2*u)) * cos(v)
@@ -651,7 +650,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
651650
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,0,2*pi), (v,0,2*pi), frame=False, color="red"))
652651
653652
Enneper's surface (see
654-
http://en.wikipedia.org/wiki/Enneper_surface)::
653+
:wikipedia:`Enneper_surface`)::
655654
656655
sage: u, v = var('u,v')
657656
sage: f_x = u - u^3/3 + u*v^2
@@ -861,7 +860,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
861860
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,-pi,pi), (v,-pi,pi), plot_points=[50,50], frame=False, color="red"))
862861
863862
A Helicoid (lines through a helix,
864-
http://en.wikipedia.org/wiki/Helix)::
863+
:wikipedia:`Helix`)::
865864
866865
sage: u, v = var('u,v')
867866
sage: f_x = sinh(v) * sin(u)
@@ -932,7 +931,7 @@ def g(x,y): return x, y+sin(y), x**2 + y**2
932931
sphinx_plot(parametric_plot3d([f_x, f_y, f_z], (u,-25,25), (v,-25,25), plot_points=[50,50], frame=False, color="green"))
933932
934933
The breather surface
935-
(http://en.wikipedia.org/wiki/Breather_surface)::
934+
(:wikipedia:`Breather_surface`)::
936935
937936
sage: K = sqrt(0.84)
938937
sage: G = (0.4*((K*cosh(0.4*u))^2 + (0.4*sin(K*v))^2))

0 commit comments

Comments
 (0)