Skip to content

Commit b39c78b

Browse files
WEB: Make all links in the website relative (#50897)
1 parent 8448d39 commit b39c78b

File tree

12 files changed

+65
-89
lines changed

12 files changed

+65
-89
lines changed

web/pandas/_templates/layout.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<title>pandas - Python Data Analysis Library</title>
1313
<meta charset="utf-8">
1414
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
15-
<link rel='shortcut icon' type='image/x-icon' id='favicon-tag' href='{{ base_url }}/static/img/favicon.ico'/>
15+
<link rel='shortcut icon' type='image/x-icon' id='favicon-tag' href='{{ base_url }}static/img/favicon.ico'/>
1616
<link rel="stylesheet"
1717
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
1818
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
@@ -31,7 +31,7 @@
3131
<span class="navbar-toggler-icon"></span>
3232
</button>
3333

34-
{% if static.logo %}<a class="navbar-brand" href="{{ base_url }}/"><img alt="" src="{{ base_url }}{{ static.logo }}"/></a>{% endif %}
34+
{% if static.logo %}<a class="navbar-brand" href="{{ base_url }}."><img alt="" src="{{ base_url }}{{ static.logo }}"/></a>{% endif %}
3535

3636
<div class="collapse navbar-collapse" id="nav-content">
3737
<ul class="navbar-nav ms-auto">

web/pandas/about/citing.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ The official logos of _pandas_ are:
4444
<table class="table logo">
4545
<tr>
4646
<td>
47-
<img alt="" src="{{ base_url }}/static/img/pandas.svg"/>
47+
<img alt="" src="{{ base_url }}static/img/pandas.svg"/>
4848
</td>
4949
<td style="background-color: #150458">
50-
<img alt="" src="{{ base_url }}/static/img/pandas_white.svg"/>
50+
<img alt="" src="{{ base_url }}static/img/pandas_white.svg"/>
5151
</td>
5252
</tr>
5353
</table>
@@ -57,10 +57,10 @@ The official logos of _pandas_ are:
5757
<table class="table logo">
5858
<tr>
5959
<td>
60-
<img alt="" src="{{ base_url }}/static/img/pandas_secondary.svg"/>
60+
<img alt="" src="{{ base_url }}static/img/pandas_secondary.svg"/>
6161
</td>
6262
<td style="background-color: #150458">
63-
<img alt="" src="{{ base_url }}/static/img/pandas_secondary_white.svg"/>
63+
<img alt="" src="{{ base_url }}static/img/pandas_secondary_white.svg"/>
6464
</td>
6565
</tr>
6666
</table>
@@ -70,10 +70,10 @@ The official logos of _pandas_ are:
7070
<table class="table logo">
7171
<tr>
7272
<td>
73-
<img alt="" src="{{ base_url }}/static/img/pandas_mark.svg"/>
73+
<img alt="" src="{{ base_url }}static/img/pandas_mark.svg"/>
7474
</td>
7575
<td style="background-color: #150458">
76-
<img alt="" src="{{ base_url }}/static/img/pandas_mark_white.svg"/>
76+
<img alt="" src="{{ base_url }}static/img/pandas_mark_white.svg"/>
7777
</td>
7878
</tr>
7979
</table>

web/pandas/about/governance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The official version of this document, along with a list of
44
individuals and institutions in the roles defined in the governance
55
section below, is contained in the
6-
[Project governance](https://pandas.pydata.org/about/governance.html)
6+
[Project governance]({{ base_url }}about/governance.html)
77
page of the pandas website.
88

99
## The Project

web/pandas/about/roadmap.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ tracked on our [issue tracker](https://github.com/pandas-dev/pandas/issues).
1717

1818
The roadmap is defined as a set of major enhancement proposals named PDEPs.
1919
For more information about PDEPs, and how to submit one, please refer to
20-
[PEDP-1](/pdeps/0001-purpose-and-guidelines.html).
20+
[PEDP-1]({{ base_url }}pdeps/0001-purpose-and-guidelines.html).
2121

2222
## PDEPs
2323

@@ -27,7 +27,7 @@ For more information about PDEPs, and how to submit one, please refer to
2727

2828
<ul>
2929
{% for pdep in pdeps[pdep_type] %}
30-
<li><a href="{{ pdep.url }}">{{ pdep.title }}</a></li>
30+
<li><a href="{% if not pdep.url.startswith("http") %}{{ base_url }}{% endif %}{{ pdep.url }}">{{ pdep.title }}</a></li>
3131
{% else %}
3232
<li>There are currently no PDEPs with this status</li>
3333
{% endfor %}

web/pandas/about/team.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
_pandas_ is made with love by more than [2,000 volunteer contributors](https://github.com/pandas-dev/pandas/graphs/contributors).
66

7-
If you want to support pandas development, you can find information in the [donations page](../donate.html).
7+
If you want to support pandas development, you can find information in the [donations page]({{ base_url }}donate.html).
88

99
## Active maintainers
1010

@@ -35,15 +35,15 @@ If you want to support pandas development, you can find information in the [dona
3535
> or anyone willing to increase the diversity of our team.
3636
> We have identified visible gaps and obstacles in sustaining diversity and inclusion in the open-source communities and we are proactive in increasing
3737
> the diversity of our team.
38-
> We have a [code of conduct](../community/coc.html) to ensure a friendly and welcoming environment.
38+
> We have a [code of conduct]({{ base_url }}community/coc.html) to ensure a friendly and welcoming environment.
3939
> Please send an email to [pandas-code-of-conduct-committee](mailto:[email protected]), if you think we can do a
4040
> better job at achieving this goal.
4141
4242
## Governance
4343

4444
Wes McKinney is the Benevolent Dictator for Life (BDFL).
4545

46-
The project governance is available in the [project governance page](governance.html).
46+
The project governance is available in the [project governance page]({{ base_url }}governance.html).
4747

4848
## Workgroups
4949

web/pandas/community/blog/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
{% for post in blog.posts %}
55
<div class="card">
66
<div class="card-body">
7-
<h5 class="card-title"><a href="{{post.link }}" target="_blank">{{ post.title }}</a></h5>
7+
<h5 class="card-title"><a href="{{ base_url }}{{post.link }}" target="_blank">{{ post.title }}</a></h5>
88
<h6 class="card-subtitle text-muted small mb-4">Source: {{ post.feed }} | Author: {{ post.author }} | Published: {{ post.published.strftime("%b %d, %Y") }}</h6>
99
<div class="card-text mb-2">{{ post.summary }}</div>
10-
<a class="card-link small" href="{{post.link }}" target="_blank">Read more</a>
10+
<a class="card-link small" href="{{ base_url }}{{post.link }}" target="_blank">Read more</a>
1111
</div>
1212
</div>
1313
{% endfor %}

web/pandas/config.yml

+23-23
Original file line numberDiff line numberDiff line change
@@ -19,40 +19,40 @@ main:
1919
- fenced_code
2020
- meta
2121
static:
22-
logo: /static/img/pandas_white.svg
22+
logo: static/img/pandas_white.svg
2323
css:
24-
- /static/css/pandas.css
24+
- static/css/pandas.css
2525
navbar:
2626
- name: "About us"
2727
target:
2828
- name: "About pandas"
29-
target: /about/
29+
target: about/
3030
- name: "Project roadmap"
31-
target: /about/roadmap.html
31+
target: about/roadmap.html
3232
- name: "Governance"
33-
target: /about/governance.html
33+
target: about/governance.html
3434
- name: "Team"
35-
target: /about/team.html
35+
target: about/team.html
3636
- name: "Sponsors"
37-
target: /about/sponsors.html
37+
target: about/sponsors.html
3838
- name: "Citing and logo"
39-
target: /about/citing.html
39+
target: about/citing.html
4040
- name: "Getting started"
41-
target: /getting_started.html
41+
target: getting_started.html
4242
- name: "Documentation"
43-
target: /docs/
43+
target: docs/
4444
- name: "Community"
4545
target:
4646
- name: "Blog"
47-
target: /community/blog/
47+
target: community/blog/
4848
- name: "Ask a question (StackOverflow)"
4949
target: https://stackoverflow.com/questions/tagged/pandas
5050
- name: "Code of conduct"
51-
target: /community/coc.html
51+
target: community/coc.html
5252
- name: "Ecosystem"
53-
target: /community/ecosystem.html
53+
target: community/ecosystem.html
5454
- name: "Contribute"
55-
target: /contribute.html
55+
target: contribute.html
5656
blog:
5757
num_posts: 50
5858
posts_path: community/blog
@@ -141,46 +141,46 @@ sponsors:
141141
active:
142142
- name: "NumFOCUS"
143143
url: https://numfocus.org/
144-
logo: /static/img/partners/numfocus.svg
144+
logo: static/img/partners/numfocus.svg
145145
kind: numfocus
146146
- name: "Two Sigma"
147147
url: https://www.twosigma.com/
148-
logo: /static/img/partners/two_sigma.svg
148+
logo: static/img/partners/two_sigma.svg
149149
kind: partner
150150
description: "Jeff Reback"
151151
- name: "Voltron Data"
152152
url: https://voltrondata.com/
153-
logo: /static/img/partners/voltron_data.svg
153+
logo: static/img/partners/voltron_data.svg
154154
kind: partner
155155
description: "Joris Van den Bossche"
156156
- name: "d-fine GmbH"
157157
url: https://www.d-fine.com/en/
158-
logo: /static/img/partners/dfine.svg
158+
logo: static/img/partners/dfine.svg
159159
kind: partner
160160
description: "Patrick Hoefler"
161161
- name: "Quansight"
162162
url: https://quansight.com/
163-
logo: /static/img/partners/quansight_labs.svg
163+
logo: static/img/partners/quansight_labs.svg
164164
kind: partner
165165
description: "Marco Gorelli"
166166
- name: "Nvidia"
167167
url: https://www.nvidia.com
168-
logo: /static/img/partners/nvidia.svg
168+
logo: static/img/partners/nvidia.svg
169169
kind: partner
170170
description: "Matthew Roeschke"
171171
- name: "Tidelift"
172172
url: https://tidelift.com
173-
logo: /static/img/partners/tidelift.svg
173+
logo: static/img/partners/tidelift.svg
174174
kind: regular
175175
description: "<i>pandas</i> is part of the <a href=\"https://tidelift.com/subscription/pkg/pypi-pandas?utm_source=pypi-pandas&utm_medium=referral&utm_campaign=readme\">Tidelift subscription</a>. You can support pandas by becoming a Tidelift subscriber."
176176
- name: "Chan Zuckerberg Initiative"
177177
url: https://chanzuckerberg.com/
178-
logo: /static/img/partners/czi.svg
178+
logo: static/img/partners/czi.svg
179179
kind: regular
180180
description: "<i>pandas</i> is funded by the Essential Open Source Software for Science program of the Chan Zuckerberg Initiative. The funding is used for general maintenance, improve extension types, and a efficient string type."
181181
- name: "Bodo"
182182
url: https://www.bodo.ai/
183-
logo: /static/img/partners/bodo.svg
183+
logo: static/img/partners/bodo.svg
184184
kind: regular
185185
description: "Bodo's parallel computing platform uses pandas API, and Bodo financially supports pandas development to help improve pandas, in particular the pandas API"
186186
inkind: # not included in active so they don't appear in the home page

web/pandas/contribute.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
_pandas_ is and will always be **free**. To make the development sustainable, we need _pandas_ users, corporate
44
and individual, to support the development by providing their time and money.
55

6-
You can find more information about current developers in the [team page](about/team.html),
7-
and about current sponsors in the [sponsors page](about/sponsors.html).
6+
You can find more information about current developers in the [team page]({{ base_url }}about/team.html),
7+
and about current sponsors in the [sponsors page]({{ base_url }}about/sponsors.html).
88

99
<section>
1010
<div class="container mt-5">
@@ -19,9 +19,9 @@ and about current sponsors in the [sponsors page](about/sponsors.html).
1919
pandas depends on companies and institutions using the software to support its development. Hiring
2020
people to work on pandas, or letting existing employees to contribute to the
2121
software. Or sponsoring pandas with funds, so the project can hire people to
22-
progress on the <a href="about/roadmap.html">pandas roadmap</a>.
22+
progress on the <a href="{{ base_url }}about/roadmap.html">pandas roadmap</a>.
2323
</p>
24-
<p>More information in the <a href="about/sponsors.html">sponsors page</a></p>
24+
<p>More information in the <a href="{{ base_url }}about/sponsors.html">sponsors page</a></p>
2525
</div>
2626
<div class="col-md-4">
2727
<span class="fa-stack fa-4x">
@@ -35,7 +35,7 @@ and about current sponsors in the [sponsors page](about/sponsors.html).
3535
to the documentation (including translators) and others. There are tasks for all
3636
levels, including beginners.
3737
</p>
38-
<p>More information in the <a href="{{ base_url }}/docs/development/index.html">contributing page</a></p>
38+
<p>More information in the <a href="{{ base_url }}docs/development/index.html">contributing page</a></p>
3939
</div>
4040
<div class="col-md-4">
4141
<span class="fa-stack fa-4x">
@@ -48,7 +48,7 @@ and about current sponsors in the [sponsors page](about/sponsors.html).
4848
infrastructure, travel expenses for our volunteer contributors to attend
4949
the in-person sprints, or to give small grants to develop features.
5050
</p>
51-
<p>Make your donation in the <a href="donate.html">donate page</a></p>
51+
<p>Make your donation in the <a href="{{ base_url }}donate.html">donate page</a></p>
5252
</div>
5353
</div>
5454
</div>

web/pandas/getting_started.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
The next steps provides the easiest and recommended way to set up your
66
environment to use pandas. Other installation options can be found in
7-
the [advanced installation page]({{ base_url}}/docs/getting_started/install.html).
7+
the [advanced installation page]({{ base_url}}docs/getting_started/install.html).
88

99
1. Download [Anaconda](https://www.anaconda.com/distribution/) for your operating system and
1010
the latest Python version, run the installer, and follow the steps. Please note:
@@ -32,7 +32,7 @@ the [advanced installation page]({{ base_url}}/docs/getting_started/install.html
3232

3333
## Tutorials
3434

35-
You can learn more about pandas in the [tutorials]({{ base_url }}/docs/getting_started/intro_tutorials/),
35+
You can learn more about pandas in the [tutorials]({{ base_url }}docs/getting_started/intro_tutorials/),
3636
and more about JupyterLab in the
3737
[JupyterLab documentation](https://jupyterlab.readthedocs.io/en/stable/user/interface.html).
3838

@@ -42,7 +42,7 @@ The book we recommend to learn pandas is [Python for Data Analysis](https://amzn
4242
by [Wes McKinney](https://wesmckinney.com/), creator of pandas.
4343

4444
<a href="https://amzn.to/3DyLaJc">
45-
<img alt="Python for Data Analysis" src="{{ base_url }}/static/img/pydata_book.gif"/>
45+
<img alt="Python for Data Analysis" src="{{ base_url }}static/img/pydata_book.gif"/>
4646
</a>
4747

4848
## Videos

web/pandas/index.html

+13-13
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ <h1>pandas</h1>
1010
built on top of the <a href="https://www.python.org">Python</a> programming language.
1111
</p>
1212
<p>
13-
<a class="btn btn-primary" href="{{ base_url }}/getting_started.html">Install pandas now!</a>
13+
<a class="btn btn-primary" href="{{ base_url }}getting_started.html">Install pandas now!</a>
1414
</p>
1515
</section>
1616

@@ -19,25 +19,25 @@ <h1>pandas</h1>
1919
<h5>Getting started</h5>
2020
<ul>
2121
<!-- <li><a href="{{ base_url }}/try.html">Try pandas online</a></li> -->
22-
<li><a href="{{ base_url }}/getting_started.html">Install pandas</a></li>
23-
<li><a href="{{ base_url }}/docs/getting_started/index.html">Getting started</a></li>
22+
<li><a href="{{ base_url }}getting_started.html">Install pandas</a></li>
23+
<li><a href="{{ base_url }}docs/getting_started/index.html">Getting started</a></li>
2424
</ul>
2525
</div>
2626
<div class="col-md-4">
2727
<h5>Documentation</h5>
2828
<ul>
29-
<li><a href="{{ base_url }}/docs/user_guide/index.html">User guide</a></li>
30-
<li><a href="{{ base_url }}/docs/reference/index.html">API reference</a></li>
31-
<li><a href="{{ base_url }}/docs/development/index.html">Contributing to pandas</a></li>
32-
<li><a href="{{ base_url }}/docs/whatsnew/index.html">Release notes</a></li>
29+
<li><a href="{{ base_url }}docs/user_guide/index.html">User guide</a></li>
30+
<li><a href="{{ base_url }}docs/reference/index.html">API reference</a></li>
31+
<li><a href="{{ base_url }}docs/development/index.html">Contributing to pandas</a></li>
32+
<li><a href="{{ base_url }}docs/whatsnew/index.html">Release notes</a></li>
3333
</ul>
3434
</div>
3535
<div class="col-md-4">
3636
<h5>Community</h5>
3737
<ul>
38-
<li><a href="{{ base_url }}/about/index.html">About pandas</a></li>
38+
<li><a href="{{ base_url }}about/index.html">About pandas</a></li>
3939
<li><a href="https://stackoverflow.com/questions/tagged/pandas">Ask a question</a></li>
40-
<li><a href="{{ base_url }}/community/ecosystem.html">Ecosystem</a></li>
40+
<li><a href="{{ base_url }}community/ecosystem.html">Ecosystem</a></li>
4141
</ul>
4242
</div>
4343
</div>
@@ -56,16 +56,16 @@ <h5>With the support of:</h5>
5656
{% endfor %}
5757
</div>
5858
{% endfor %}
59-
<p class="mt-4">The full list of companies supporting <i>pandas</i> is available in the <a href="{{ base_url }}/about/sponsors.html">sponsors page</a>.
59+
<p class="mt-4">The full list of companies supporting <i>pandas</i> is available in the <a href="{{ base_url }}about/sponsors.html">sponsors page</a>.
6060
</section>
6161
</div>
6262
<div class="col-md-3">
6363
{% if releases %}
6464
<h4>Latest version: {{ releases[0].name }}</h4>
6565
<ul>
66-
<li><a href="docs/whatsnew/v{{ releases[0].name }}.html">What's new in {{ releases[0].name }}</a></li>
66+
<li><a href="{{ base_url }}docs/whatsnew/v{{ releases[0].name }}.html">What's new in {{ releases[0].name }}</a></li>
6767
<li>Release date:<br/>{{ releases[0].published.strftime("%b %d, %Y") }}</li>
68-
<li><a href="{{ base_url}}/docs/">Documentation (web)</a></li>
68+
<li><a href="{{ base_url}}docs/">Documentation (web)</a></li>
6969
<li><a href="{{ releases[0].url }}">Download source code</a></li>
7070
</ul>
7171
{% endif %}
@@ -88,7 +88,7 @@ <h4>Follow us</h4>
8888
<h4>Get the book</h4>
8989
<p class="book">
9090
<a href="https://amzn.to/3DyLaJc">
91-
<img class="img-fluid" alt="Python for Data Analysis" src="{{ base_url }}/static/img/pydata_book.gif"/>
91+
<img class="img-fluid" alt="Python for Data Analysis" src="{{ base_url }}static/img/pydata_book.gif"/>
9292
</a>
9393
</p>
9494
{% if releases[1:5] %}

web/pandas/try.md

-21
This file was deleted.

0 commit comments

Comments
 (0)