From 7cce75805bbba8bfbcb08c0a77178b4b9599ea71 Mon Sep 17 00:00:00 2001 From: Saeid Darvish Date: Sun, 25 May 2025 12:37:21 +0200 Subject: [PATCH 1/5] Update README.md changed domain --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3aa10e2..753a2ce 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@

-This is an open-source and online book that provides a comprehensive tutorial on the Python programming language in Persian. The book is available at [python.coderz.club](https://python.coderz.club/) and covers a wide range of topics, including: +This is an open-source and online book that provides a comprehensive tutorial on the Python programming language in Persian. The book is available at [PythonPersian.com](https://pythonpersian.com/) and covers a wide range of topics, including: - Introduction - Setup and starting a new project @@ -33,7 +33,7 @@ This book is designed for Persian-speaking learners without prior experience wit To get started with this book, you can: -- Simply visit [python.coderz.club](https://python.coderz.club/) and start reading. +- Simply visit [PythonPersian.com](https://pythonpersian.com/) and start reading. - Download the source code from GitHub and run it on your local machine: From de64e61613c82cfdb2ecd64726556072bef2bf64 Mon Sep 17 00:00:00 2001 From: Saeid Darvish Date: Sun, 25 May 2025 13:40:10 +0200 Subject: [PATCH 2/5] change domain --- .github/FUNDING.yml | 2 +- README.md | 4 +- source/_static/robots.txt | 2 +- source/_static/sitemap-index.xml | 72 +++++++++---------- .../sphinx_minoo_theme/includes/bottom.html | 10 ++- .../sphinx_minoo_theme/includes/header.html | 10 +-- source/changelog.rst | 16 +++-- 7 files changed, 59 insertions(+), 57 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 3080ba8..dc71af1 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1 @@ -custom: ['https://www.buymeacoffee.com/saeiddrv', 'https://paypal.me/saeiddrv', 'https://python.coderz.club/support.html'] +custom: ['https://www.buymeacoffee.com/saeiddrv', 'https://paypal.me/saeiddrv', 'https://pythonpersian.com/support.html'] diff --git a/README.md b/README.md index 753a2ce..924e170 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ [![Documentation Status](https://readthedocs.org/projects/pythonpersiantutorial/badge/?version=latest)](https://readthedocs.org/projects/pythonpersiantutorial/?badge=latest)

- - + +

This is an open-source and online book that provides a comprehensive tutorial on the Python programming language in Persian. The book is available at [PythonPersian.com](https://pythonpersian.com/) and covers a wide range of topics, including: diff --git a/source/_static/robots.txt b/source/_static/robots.txt index 42f6430..81a40d5 100644 --- a/source/_static/robots.txt +++ b/source/_static/robots.txt @@ -2,6 +2,6 @@ User-agent: * Disallow: -Sitemap: https://python.coderz.club/_static/sitemap-index.xml +Sitemap: https://pythonpersian.com/_static/sitemap-index.xml diff --git a/source/_static/sitemap-index.xml b/source/_static/sitemap-index.xml index 740db69..b0009da 100644 --- a/source/_static/sitemap-index.xml +++ b/source/_static/sitemap-index.xml @@ -5,182 +5,182 @@ xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> - https://python.coderz.club/ + https://pythonpersian.com/ 2021-03-17T17:10:23+00:00 1.00 - https://python.coderz.club/preface.html + https://pythonpersian.com/preface.html 2021-03-17T17:10:24+00:00 0.80 - https://python.coderz.club/lessons/l01-introduction-to-python.html + https://pythonpersian.com/lessons/l01-introduction-to-python.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l02-setup-python.html + https://pythonpersian.com/lessons/l02-setup-python.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l03-create-and-run-a-python-project.html + https://pythonpersian.com/lessons/l03-create-and-run-a-python-project.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l04-python-interactive-mode.html + https://pythonpersian.com/lessons/l04-python-interactive-mode.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l05-object-oriented-programming.html + https://pythonpersian.com/lessons/l05-object-oriented-programming.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l06-python-syntax.html + https://pythonpersian.com/lessons/l06-python-syntax.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l07-numeric-types-in-python.html + https://pythonpersian.com/lessons/l07-numeric-types-in-python.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l07-string-and-bytes-in-python.html + https://pythonpersian.com/lessons/l07-string-and-bytes-in-python.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l08-list-and-tuple-in-python.html + https://pythonpersian.com/lessons/l08-list-and-tuple-in-python.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l08-set-and-dict-in-python.html + https://pythonpersian.com/lessons/l08-set-and-dict-in-python.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l09-control-flow-statements-in-python.html + https://pythonpersian.com/lessons/l09-control-flow-statements-in-python.html 2023-03-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l10-input-print-and-files-in-python.html + https://pythonpersian.com/lessons/l10-input-print-and-files-in-python.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l11-python-standard-library.html + https://pythonpersian.com/lessons/l11-python-standard-library.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l12-function-in-python.html + https://pythonpersian.com/lessons/l12-function-in-python.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l13-decorator-generator-and-lambda-with-python-functions.html + https://pythonpersian.com/lessons/l13-decorator-generator-and-lambda-with-python-functions.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l14-recursive-functions-and-memoization-in-python.html + https://pythonpersian.com/lessons/l14-recursive-functions-and-memoization-in-python.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l15-regular-expression-in-python.html + https://pythonpersian.com/lessons/l15-regular-expression-in-python.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l16-python-module-re.html + https://pythonpersian.com/lessons/l16-python-module-re.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l17-object-oriented-programming-with-python.html + https://pythonpersian.com/lessons/l17-object-oriented-programming-with-python.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l18-inheritance-and-association-in-python.html + https://pythonpersian.com/lessons/l18-inheritance-and-association-in-python.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l19-metaclass-and-abstraction-in-python.html + https://pythonpersian.com/lessons/l19-metaclass-and-abstraction-in-python.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l20-encapsulation-polymorphism-in-python.html + https://pythonpersian.com/lessons/l20-encapsulation-polymorphism-in-python.html 2023-04-18T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l21-descriptors-and-context-manager-in-python.html + https://pythonpersian.com/lessons/l21-descriptors-and-context-manager-in-python.html 2023-04-19T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l22-type-hinting-and-data-class-in-python.html + https://pythonpersian.com/lessons/l22-type-hinting-and-data-class-in-python.html 2023-04-19T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l23-traceback-and-exception-handling-in-python.html + https://pythonpersian.com/lessons/l23-traceback-and-exception-handling-in-python.html 2023-04-29T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l24-raise-exception-warning-and-assertion-in-python.html + https://pythonpersian.com/lessons/l24-raise-exception-warning-and-assertion-in-python.html 2023-04-01T17:10:25+00:00 0.80 - https://python.coderz.club/lessons/l25-python-module-datetime.html + https://pythonpersian.com/lessons/l25-python-module-datetime.html 2023-04-15T17:10:25+00:00 0.80 - https://python.coderz.club/changelog.html + https://pythonpersian.com/changelog.html 2023-04-17T17:10:19+00:00 0.80 - https://python.coderz.club/support.html + https://pythonpersian.com/support.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/support-report.html + https://pythonpersian.com/support-report.html 2023-04-17T17:10:25+00:00 0.80 - https://python.coderz.club/python-interactive.html + https://pythonpersian.com/python-interactive.html 2021-04-17T17:10:19+00:00 0.80 - https://python.coderz.club/python-resources.html + https://pythonpersian.com/python-resources.html 2021-04-20T17:10:19+00:00 0.80 - https://python.coderz.club/index.html + https://pythonpersian.com/index.html 2021-04-17T17:10:23+00:00 0.64 - https://python.coderz.club/challenges/python-code-challenges-basic.html + https://pythonpersian.com/challenges/python-code-challenges-basic.html 2023-05-05T17:10:23+00:00 0.64 diff --git a/source/_templates/sphinx_minoo_theme/includes/bottom.html b/source/_templates/sphinx_minoo_theme/includes/bottom.html index a785932..a4e1e36 100644 --- a/source/_templates/sphinx_minoo_theme/includes/bottom.html +++ b/source/_templates/sphinx_minoo_theme/includes/bottom.html @@ -5,7 +5,7 @@ {% if theme_direction == "ltr" %} {% if prev %}   {{glossary.btn_previous}} - {% endif %} + {% endif %} {% if next %} {{glossary.btn_next}}   {% endif %} @@ -29,8 +29,7 @@

از تلاش برای ایجاد و نگهداری این کتاب حمای

- -
+
@@ -46,7 +45,7 @@

از تلاش برای ایجاد و نگهداری این کتاب حمای

- diff --git a/source/_templates/sphinx_minoo_theme/includes/header.html b/source/_templates/sphinx_minoo_theme/includes/header.html index 82cd874..e072b9e 100644 --- a/source/_templates/sphinx_minoo_theme/includes/header.html +++ b/source/_templates/sphinx_minoo_theme/includes/header.html @@ -1,8 +1,7 @@ - - + {{ metatags }} @@ -87,18 +86,15 @@ {% endif %} - + - - - diff --git a/source/changelog.rst b/source/changelog.rst index 88751ff..0670500 100644 --- a/source/changelog.rst +++ b/source/changelog.rst @@ -6,11 +6,20 @@ :keywords: معرفی پایتون, تاریخچه پایتون, کارایی پایتون, نسخه های پایتون, ویژگی های پایتون, آشنایی با پایتون, آموزش, آموزش پایتون, آموزش برنامه نویسی, پایتون -.. _reports: +.. _reports: گزارش توسعه ============= +.. raw:: html + +

00140 - یک‌شنبه ۴ خرداد ۱۴۰۳

+ +* دامنه کتاب به ``https://pythonpersian.com`` تغییر یافته است. +* دامنه‌های قبلی ``https://python.coderz.club`` و ``https://python.coderz.ir`` تا پایان امسال همچنان معتبر هستند. + +---- + .. raw:: html @@ -19,7 +28,6 @@ * دامنه سرویس کدرز به ``club.‍‍`` تغییر داده شد. * صفحه حمایت مالی بروز گردید. - ---- @@ -341,7 +349,7 @@

00110 - چهارشنبه ۵ تیر ۱۳۹۸

-درس دوازدهم اضافه شد. با امید اینکه بروز رسانی‌های بعدی در فاصله زمانی کمتری انجام بشه. +درس دوازدهم اضافه شد. با امید اینکه بروز رسانی‌های بعدی در فاصله زمانی کمتری انجام بشه. :emoji-size:`😉` ---- @@ -374,7 +382,7 @@

00107 - جمعه ۲۰ آذر ۱۳۹۴

-درس دهم با عنوان «ورودی و خروجی» به فهرست کتاب افزوده شد. +درس دهم با عنوان «ورودی و خروجی» به فهرست کتاب افزوده شد. :emoji-size:`😉` ---- From b814f447d154b31d991593b1199e7fb9a4a0509a Mon Sep 17 00:00:00 2001 From: Saeid Darvish Date: Sun, 25 May 2025 13:47:23 +0200 Subject: [PATCH 3/5] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 924e170..74ae096 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ If you'd like to contribute to the book, you can fork the repository on GitHub a ## Credits -This book was authored by [**Saeid Darvish**](https://saeiddrv.com). +This book was authored by [**Saeid Darvishghazvini**](https://saeiddrv.com). ## License From 339aed8f2f5facf2eee123699cf98e249faaa4e2 Mon Sep 17 00:00:00 2001 From: Saeid Darvish Date: Sun, 25 May 2025 14:34:43 +0200 Subject: [PATCH 4/5] add a auto-detected dark-style --- README.md | 26 +- .../sphinx_minoo_theme/includes/header.html | 16 +- .../sphinx_minoo_theme/includes/top.html | 3 +- .../sphinx_minoo_theme/static/minoo-dark.css | 224 ++++++++++++++++++ source/conf.py | 4 +- 5 files changed, 255 insertions(+), 18 deletions(-) create mode 100644 source/_templates/sphinx_minoo_theme/static/minoo-dark.css diff --git a/README.md b/README.md index 924e170..4114ca9 100644 --- a/README.md +++ b/README.md @@ -33,40 +33,41 @@ This book is designed for Persian-speaking learners without prior experience wit To get started with this book, you can: -- Simply visit [PythonPersian.com](https://pythonpersian.com/) and start reading. +- Simply visit [PythonPersian.com](https://pythonpersian.com/) and start reading. - Download the source code from GitHub and run it on your local machine: ``` $ git clone https://github.com/saeiddrv/PythonPersianTutorial.git - + + $ cd PythonPersianTutorial + $ pip install -U pip $ pip install virtualenv $ python -m virtualenv .venv $ source .venv/bin/activate - - $ cd PythonPersianTutorial + $ pip install -r requirements.txt - + $ make html - + $ cd ./build/html $ python -m http.server 8000 ``` then visit http://127.0.0.1:8000 - + - Download the source code from GitHub and run it in Docker: - + ``` $ git clone https://github.com/saeiddrv/PythonPersianTutorial.git - + $ cd PythonPersianTutorial - + $ docker build -t pypersian . $ docker run -d --name pypersian -p 80:8000 pypersian ``` then visit http://127.0.0.1 - + ## Contributions @@ -74,7 +75,7 @@ If you'd like to contribute to the book, you can fork the repository on GitHub a ## Credits -This book was authored by [**Saeid Darvish**](https://saeiddrv.com). +This book was authored by [**Saeid Darvishghazvini**](https://saeiddrv.com). ## License @@ -83,4 +84,3 @@ This book is licensed under the Creative Commons Attribution-NonCommercial-Share ## Acknowledgments Special thanks to the Python community and the contributors of open-source Python packages and libraries, without whom this book would not have been possible. - diff --git a/source/_templates/sphinx_minoo_theme/includes/header.html b/source/_templates/sphinx_minoo_theme/includes/header.html index e072b9e..485ec8e 100644 --- a/source/_templates/sphinx_minoo_theme/includes/header.html +++ b/source/_templates/sphinx_minoo_theme/includes/header.html @@ -38,9 +38,11 @@ {% if theme_direction == "ltr" %} {% else %} - + {% endif %} + + {%- block linktags %} {%- if hasdoc('about') %} @@ -99,3 +101,15 @@ + + diff --git a/source/_templates/sphinx_minoo_theme/includes/top.html b/source/_templates/sphinx_minoo_theme/includes/top.html index b2564f9..5de9338 100644 --- a/source/_templates/sphinx_minoo_theme/includes/top.html +++ b/source/_templates/sphinx_minoo_theme/includes/top.html @@ -10,7 +10,6 @@   {{ title }} {% else %}   {{glossary.root_page}} -   در کدرز {% endif %} {% if pagename != "search" %} {% if display_github %} @@ -38,7 +37,7 @@ حمایت مالی
- +