From 77ecdd21fb8080643020e7969a8b0eccc61c52e2 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 30 Mar 2020 13:02:23 +0200 Subject: [PATCH] Move docs scripts into a dedicated folder --- docs/{ => scripts}/releases.py | 2 +- docs/{ => scripts}/sitemap.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename docs/{ => scripts}/releases.py (98%) rename docs/{ => scripts}/sitemap.py (99%) diff --git a/docs/releases.py b/docs/scripts/releases.py similarity index 98% rename from docs/releases.py rename to docs/scripts/releases.py index 9b7388f9..ce8ab385 100644 --- a/docs/releases.py +++ b/docs/scripts/releases.py @@ -24,7 +24,7 @@ import pypandoc import requests URL = "https://api.github.com/repos/pyrogram/pyrogram/releases" -DEST = Path("source/releases") +DEST = Path("../source/releases") INTRO = """ Release Notes ============= diff --git a/docs/sitemap.py b/docs/scripts/sitemap.py similarity index 99% rename from docs/sitemap.py rename to docs/scripts/sitemap.py index 4b08f218..cc3da354 100644 --- a/docs/sitemap.py +++ b/docs/scripts/sitemap.py @@ -66,7 +66,7 @@ with open("sitemap.xml", "w") as f: urls.append((path, now(), *dirs[folder])) - search("source") + search("../source") urls.sort(key=lambda x: x[3], reverse=True)