Skip to content

WEB: Make all links in the website relative #50897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/pandas/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<title>pandas - Python Data Analysis Library</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel='shortcut icon' type='image/x-icon' id='favicon-tag' href='{{ base_url }}/static/img/favicon.ico'/>
<link rel='shortcut icon' type='image/x-icon' id='favicon-tag' href='{{ base_url }}static/img/favicon.ico'/>
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-+0n0xVW2eSR5OomGNYDnhzAbDsOXxcvSN1TPprVMTNDbiYZCxYbOOl7+AMvyTG2x"
Expand All @@ -31,7 +31,7 @@
<span class="navbar-toggler-icon"></span>
</button>

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

<div class="collapse navbar-collapse" id="nav-content">
<ul class="navbar-nav ms-auto">
Expand Down
12 changes: 6 additions & 6 deletions web/pandas/about/citing.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ The official logos of _pandas_ are:
<table class="table logo">
<tr>
<td>
<img alt="" src="{{ base_url }}/static/img/pandas.svg"/>
<img alt="" src="{{ base_url }}static/img/pandas.svg"/>
</td>
<td style="background-color: #150458">
<img alt="" src="{{ base_url }}/static/img/pandas_white.svg"/>
<img alt="" src="{{ base_url }}static/img/pandas_white.svg"/>
</td>
</tr>
</table>
Expand All @@ -57,10 +57,10 @@ The official logos of _pandas_ are:
<table class="table logo">
<tr>
<td>
<img alt="" src="{{ base_url }}/static/img/pandas_secondary.svg"/>
<img alt="" src="{{ base_url }}static/img/pandas_secondary.svg"/>
</td>
<td style="background-color: #150458">
<img alt="" src="{{ base_url }}/static/img/pandas_secondary_white.svg"/>
<img alt="" src="{{ base_url }}static/img/pandas_secondary_white.svg"/>
</td>
</tr>
</table>
Expand All @@ -70,10 +70,10 @@ The official logos of _pandas_ are:
<table class="table logo">
<tr>
<td>
<img alt="" src="{{ base_url }}/static/img/pandas_mark.svg"/>
<img alt="" src="{{ base_url }}static/img/pandas_mark.svg"/>
</td>
<td style="background-color: #150458">
<img alt="" src="{{ base_url }}/static/img/pandas_mark_white.svg"/>
<img alt="" src="{{ base_url }}static/img/pandas_mark_white.svg"/>
</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion web/pandas/about/governance.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The official version of this document, along with a list of
individuals and institutions in the roles defined in the governance
section below, is contained in the
[Project governance](https://pandas.pydata.org/about/governance.html)
[Project governance]({{ base_url }}about/governance.html)
page of the pandas website.

## The Project
Expand Down
4 changes: 2 additions & 2 deletions web/pandas/about/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ tracked on our [issue tracker](https://github.com/pandas-dev/pandas/issues).

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

## PDEPs

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

<ul>
{% for pdep in pdeps[pdep_type] %}
<li><a href="{{ pdep.url }}">{{ pdep.title }}</a></li>
<li><a href="{% if not pdep.url.startswith("http") %}{{ base_url }}{% endif %}{{ pdep.url }}">{{ pdep.title }}</a></li>
{% else %}
<li>There are currently no PDEPs with this status</li>
{% endfor %}
Expand Down
6 changes: 3 additions & 3 deletions web/pandas/about/team.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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

## Active maintainers

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

## Governance

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

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

## Workgroups

Expand Down
4 changes: 2 additions & 2 deletions web/pandas/community/blog/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
{% for post in blog.posts %}
<div class="card">
<div class="card-body">
<h5 class="card-title"><a href="{{post.link }}" target="_blank">{{ post.title }}</a></h5>
<h5 class="card-title"><a href="{{ base_url }}{{post.link }}" target="_blank">{{ post.title }}</a></h5>
<h6 class="card-subtitle text-muted small mb-4">Source: {{ post.feed }} | Author: {{ post.author }} | Published: {{ post.published.strftime("%b %d, %Y") }}</h6>
<div class="card-text mb-2">{{ post.summary }}</div>
<a class="card-link small" href="{{post.link }}" target="_blank">Read more</a>
<a class="card-link small" href="{{ base_url }}{{post.link }}" target="_blank">Read more</a>
</div>
</div>
{% endfor %}
Expand Down
46 changes: 23 additions & 23 deletions web/pandas/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,40 @@ main:
- fenced_code
- meta
static:
logo: /static/img/pandas_white.svg
logo: static/img/pandas_white.svg
css:
- /static/css/pandas.css
- static/css/pandas.css
navbar:
- name: "About us"
target:
- name: "About pandas"
target: /about/
target: about/
- name: "Project roadmap"
target: /about/roadmap.html
target: about/roadmap.html
- name: "Governance"
target: /about/governance.html
target: about/governance.html
- name: "Team"
target: /about/team.html
target: about/team.html
- name: "Sponsors"
target: /about/sponsors.html
target: about/sponsors.html
- name: "Citing and logo"
target: /about/citing.html
target: about/citing.html
- name: "Getting started"
target: /getting_started.html
target: getting_started.html
- name: "Documentation"
target: /docs/
target: docs/
- name: "Community"
target:
- name: "Blog"
target: /community/blog/
target: community/blog/
- name: "Ask a question (StackOverflow)"
target: https://stackoverflow.com/questions/tagged/pandas
- name: "Code of conduct"
target: /community/coc.html
target: community/coc.html
- name: "Ecosystem"
target: /community/ecosystem.html
target: community/ecosystem.html
- name: "Contribute"
target: /contribute.html
target: contribute.html
blog:
num_posts: 50
posts_path: community/blog
Expand Down Expand Up @@ -141,46 +141,46 @@ sponsors:
active:
- name: "NumFOCUS"
url: https://numfocus.org/
logo: /static/img/partners/numfocus.svg
logo: static/img/partners/numfocus.svg
kind: numfocus
- name: "Two Sigma"
url: https://www.twosigma.com/
logo: /static/img/partners/two_sigma.svg
logo: static/img/partners/two_sigma.svg
kind: partner
description: "Jeff Reback"
- name: "Voltron Data"
url: https://voltrondata.com/
logo: /static/img/partners/voltron_data.svg
logo: static/img/partners/voltron_data.svg
kind: partner
description: "Joris Van den Bossche"
- name: "d-fine GmbH"
url: https://www.d-fine.com/en/
logo: /static/img/partners/dfine.svg
logo: static/img/partners/dfine.svg
kind: partner
description: "Patrick Hoefler"
- name: "Quansight"
url: https://quansight.com/
logo: /static/img/partners/quansight_labs.svg
logo: static/img/partners/quansight_labs.svg
kind: partner
description: "Marco Gorelli"
- name: "Nvidia"
url: https://www.nvidia.com
logo: /static/img/partners/nvidia.svg
logo: static/img/partners/nvidia.svg
kind: partner
description: "Matthew Roeschke"
- name: "Tidelift"
url: https://tidelift.com
logo: /static/img/partners/tidelift.svg
logo: static/img/partners/tidelift.svg
kind: regular
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."
- name: "Chan Zuckerberg Initiative"
url: https://chanzuckerberg.com/
logo: /static/img/partners/czi.svg
logo: static/img/partners/czi.svg
kind: regular
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."
- name: "Bodo"
url: https://www.bodo.ai/
logo: /static/img/partners/bodo.svg
logo: static/img/partners/bodo.svg
kind: regular
description: "Bodo's parallel computing platform uses pandas API, and Bodo financially supports pandas development to help improve pandas, in particular the pandas API"
inkind: # not included in active so they don't appear in the home page
Expand Down
12 changes: 6 additions & 6 deletions web/pandas/contribute.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
_pandas_ is and will always be **free**. To make the development sustainable, we need _pandas_ users, corporate
and individual, to support the development by providing their time and money.

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

<section>
<div class="container mt-5">
Expand All @@ -19,9 +19,9 @@ and about current sponsors in the [sponsors page](about/sponsors.html).
pandas depends on companies and institutions using the software to support its development. Hiring
people to work on pandas, or letting existing employees to contribute to the
software. Or sponsoring pandas with funds, so the project can hire people to
progress on the <a href="about/roadmap.html">pandas roadmap</a>.
progress on the <a href="{{ base_url }}about/roadmap.html">pandas roadmap</a>.
</p>
<p>More information in the <a href="about/sponsors.html">sponsors page</a></p>
<p>More information in the <a href="{{ base_url }}about/sponsors.html">sponsors page</a></p>
</div>
<div class="col-md-4">
<span class="fa-stack fa-4x">
Expand All @@ -35,7 +35,7 @@ and about current sponsors in the [sponsors page](about/sponsors.html).
to the documentation (including translators) and others. There are tasks for all
levels, including beginners.
</p>
<p>More information in the <a href="{{ base_url }}/docs/development/index.html">contributing page</a></p>
<p>More information in the <a href="{{ base_url }}docs/development/index.html">contributing page</a></p>
</div>
<div class="col-md-4">
<span class="fa-stack fa-4x">
Expand All @@ -48,7 +48,7 @@ and about current sponsors in the [sponsors page](about/sponsors.html).
infrastructure, travel expenses for our volunteer contributors to attend
the in-person sprints, or to give small grants to develop features.
</p>
<p>Make your donation in the <a href="donate.html">donate page</a></p>
<p>Make your donation in the <a href="{{ base_url }}donate.html">donate page</a></p>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions web/pandas/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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

## Tutorials

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

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

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

## Videos
Expand Down
26 changes: 13 additions & 13 deletions web/pandas/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1>pandas</h1>
built on top of the <a href="https://www.python.org">Python</a> programming language.
</p>
<p>
<a class="btn btn-primary" href="{{ base_url }}/getting_started.html">Install pandas now!</a>
<a class="btn btn-primary" href="{{ base_url }}getting_started.html">Install pandas now!</a>
</p>
</section>

Expand All @@ -19,25 +19,25 @@ <h1>pandas</h1>
<h5>Getting started</h5>
<ul>
<!-- <li><a href="{{ base_url }}/try.html">Try pandas online</a></li> -->
<li><a href="{{ base_url }}/getting_started.html">Install pandas</a></li>
<li><a href="{{ base_url }}/docs/getting_started/index.html">Getting started</a></li>
<li><a href="{{ base_url }}getting_started.html">Install pandas</a></li>
<li><a href="{{ base_url }}docs/getting_started/index.html">Getting started</a></li>
</ul>
</div>
<div class="col-md-4">
<h5>Documentation</h5>
<ul>
<li><a href="{{ base_url }}/docs/user_guide/index.html">User guide</a></li>
<li><a href="{{ base_url }}/docs/reference/index.html">API reference</a></li>
<li><a href="{{ base_url }}/docs/development/index.html">Contributing to pandas</a></li>
<li><a href="{{ base_url }}/docs/whatsnew/index.html">Release notes</a></li>
<li><a href="{{ base_url }}docs/user_guide/index.html">User guide</a></li>
<li><a href="{{ base_url }}docs/reference/index.html">API reference</a></li>
<li><a href="{{ base_url }}docs/development/index.html">Contributing to pandas</a></li>
<li><a href="{{ base_url }}docs/whatsnew/index.html">Release notes</a></li>
</ul>
</div>
<div class="col-md-4">
<h5>Community</h5>
<ul>
<li><a href="{{ base_url }}/about/index.html">About pandas</a></li>
<li><a href="{{ base_url }}about/index.html">About pandas</a></li>
<li><a href="https://stackoverflow.com/questions/tagged/pandas">Ask a question</a></li>
<li><a href="{{ base_url }}/community/ecosystem.html">Ecosystem</a></li>
<li><a href="{{ base_url }}community/ecosystem.html">Ecosystem</a></li>
</ul>
</div>
</div>
Expand All @@ -56,16 +56,16 @@ <h5>With the support of:</h5>
{% endfor %}
</div>
{% endfor %}
<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>.
<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>.
</section>
</div>
<div class="col-md-3">
{% if releases %}
<h4>Latest version: {{ releases[0].name }}</h4>
<ul>
<li><a href="docs/whatsnew/v{{ releases[0].name }}.html">What's new in {{ releases[0].name }}</a></li>
<li><a href="{{ base_url }}docs/whatsnew/v{{ releases[0].name }}.html">What's new in {{ releases[0].name }}</a></li>
<li>Release date:<br/>{{ releases[0].published.strftime("%b %d, %Y") }}</li>
<li><a href="{{ base_url}}/docs/">Documentation (web)</a></li>
<li><a href="{{ base_url}}docs/">Documentation (web)</a></li>
<li><a href="{{ releases[0].url }}">Download source code</a></li>
</ul>
{% endif %}
Expand All @@ -88,7 +88,7 @@ <h4>Follow us</h4>
<h4>Get the book</h4>
<p class="book">
<a href="https://amzn.to/3DyLaJc">
<img class="img-fluid" alt="Python for Data Analysis" src="{{ base_url }}/static/img/pydata_book.gif"/>
<img class="img-fluid" alt="Python for Data Analysis" src="{{ base_url }}static/img/pydata_book.gif"/>
</a>
</p>
{% if releases[1:5] %}
Expand Down
21 changes: 0 additions & 21 deletions web/pandas/try.md

This file was deleted.

Loading