diff --git a/web/pandas/_templates/layout.html b/web/pandas/_templates/layout.html
index 3cad22bf938b0..dc91a2932e7e4 100644
--- a/web/pandas/_templates/layout.html
+++ b/web/pandas/_templates/layout.html
@@ -12,7 +12,7 @@
{% if releases %}
Latest version: {{ releases[0].name }}
{% endif %}
@@ -88,7 +88,7 @@
Follow us
Get the book
-
+
{% if releases[1:5] %}
diff --git a/web/pandas/try.md b/web/pandas/try.md
deleted file mode 100644
index 20e119759df6f..0000000000000
--- a/web/pandas/try.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Try pandas online
-
-
-
-import pandas
-fibonacci = pandas.Series([1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144])
-fibonacci.sum()
-
-
-
-
-
-## Interactive tutorials
-
-You can also try _pandas_ on [Binder](https://mybinder.org/) for one of the next topics:
-
-- Exploratory analysis of US presidents
-- Preprocessing the Titanic dataset to train a machine learning model
-- Forecasting the stock market
-
-_(links will be added soon)_
diff --git a/web/pandas_web.py b/web/pandas_web.py
index 8c508a15f9a2b..e4ffa2cde7cc9 100755
--- a/web/pandas_web.py
+++ b/web/pandas_web.py
@@ -278,7 +278,7 @@ def roadmap_pdeps(context):
context["pdeps"][status].append(
{
"title": title,
- "url": f"/pdeps/{html_file}",
+ "url": f"pdeps/{html_file}",
}
)
@@ -383,7 +383,6 @@ def extend_base_template(content: str, base_template: str) -> str:
def main(
source_path: str,
target_path: str,
- base_url: str,
) -> int:
"""
Copy every file in the source directory to the target directory.
@@ -397,7 +396,7 @@ def main(
os.makedirs(target_path, exist_ok=True)
sys.stderr.write("Generating context...\n")
- context = get_context(config_fname, base_url=base_url, target_path=target_path)
+ context = get_context(config_fname, target_path=target_path)
sys.stderr.write("Context generated\n")
templates_path = os.path.join(source_path, context["main"]["templates_path"])
@@ -420,6 +419,7 @@ def main(
content, extensions=context["main"]["markdown_extensions"]
)
content = extend_base_template(body, context["main"]["base_template"])
+ context["base_url"] = "".join(["../"] * os.path.normpath(fname).count("/"))
content = jinja_env.from_string(content).render(**context)
fname = os.path.splitext(fname)[0] + ".html"
with open(os.path.join(target_path, fname), "w") as f:
@@ -438,8 +438,5 @@ def main(
parser.add_argument(
"--target-path", default="build", help="directory where to write the output"
)
- parser.add_argument(
- "--base-url", default="", help="base url where the website is served from"
- )
args = parser.parse_args()
- sys.exit(main(args.source_path, args.target_path, args.base_url))
+ sys.exit(main(args.source_path, args.target_path))