-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 @@
[](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:001.00
- https://python.coderz.club/preface.html
+ https://pythonpersian.com/preface.html2021-03-17T17:10:24+00:000.80
- https://python.coderz.club/lessons/l01-introduction-to-python.html
+ https://pythonpersian.com/lessons/l01-introduction-to-python.html2023-03-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l02-setup-python.html
+ https://pythonpersian.com/lessons/l02-setup-python.html2023-03-17T17:10:25+00:000.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.html2023-03-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l04-python-interactive-mode.html
+ https://pythonpersian.com/lessons/l04-python-interactive-mode.html2023-03-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l05-object-oriented-programming.html
+ https://pythonpersian.com/lessons/l05-object-oriented-programming.html2023-03-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l06-python-syntax.html
+ https://pythonpersian.com/lessons/l06-python-syntax.html2023-03-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l07-numeric-types-in-python.html
+ https://pythonpersian.com/lessons/l07-numeric-types-in-python.html2023-03-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l07-string-and-bytes-in-python.html
+ https://pythonpersian.com/lessons/l07-string-and-bytes-in-python.html2023-03-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l08-list-and-tuple-in-python.html
+ https://pythonpersian.com/lessons/l08-list-and-tuple-in-python.html2023-03-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l08-set-and-dict-in-python.html
+ https://pythonpersian.com/lessons/l08-set-and-dict-in-python.html2023-03-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l09-control-flow-statements-in-python.html
+ https://pythonpersian.com/lessons/l09-control-flow-statements-in-python.html2023-03-17T17:10:25+00:000.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.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l11-python-standard-library.html
+ https://pythonpersian.com/lessons/l11-python-standard-library.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l12-function-in-python.html
+ https://pythonpersian.com/lessons/l12-function-in-python.html2023-04-17T17:10:25+00:000.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.html2023-04-17T17:10:25+00:000.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.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l15-regular-expression-in-python.html
+ https://pythonpersian.com/lessons/l15-regular-expression-in-python.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l16-python-module-re.html
+ https://pythonpersian.com/lessons/l16-python-module-re.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l17-object-oriented-programming-with-python.html
+ https://pythonpersian.com/lessons/l17-object-oriented-programming-with-python.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l18-inheritance-and-association-in-python.html
+ https://pythonpersian.com/lessons/l18-inheritance-and-association-in-python.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l19-metaclass-and-abstraction-in-python.html
+ https://pythonpersian.com/lessons/l19-metaclass-and-abstraction-in-python.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/lessons/l20-encapsulation-polymorphism-in-python.html
+ https://pythonpersian.com/lessons/l20-encapsulation-polymorphism-in-python.html2023-04-18T17:10:25+00:000.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.html2023-04-19T17:10:25+00:000.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.html2023-04-19T17:10:25+00:000.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.html2023-04-29T17:10:25+00:000.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.html2023-04-01T17:10:25+00:000.80
- https://python.coderz.club/lessons/l25-python-module-datetime.html
+ https://pythonpersian.com/lessons/l25-python-module-datetime.html2023-04-15T17:10:25+00:000.80
- https://python.coderz.club/changelog.html
+ https://pythonpersian.com/changelog.html2023-04-17T17:10:19+00:000.80
- https://python.coderz.club/support.html
+ https://pythonpersian.com/support.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/support-report.html
+ https://pythonpersian.com/support-report.html2023-04-17T17:10:25+00:000.80
- https://python.coderz.club/python-interactive.html
+ https://pythonpersian.com/python-interactive.html2021-04-17T17:10:19+00:000.80
- https://python.coderz.club/python-resources.html
+ https://pythonpersian.com/python-resources.html2021-04-20T17:10:19+00:000.80
- https://python.coderz.club/index.html
+ https://pythonpersian.com/index.html2021-04-17T17:10:23+00:000.64
- https://python.coderz.club/challenges/python-code-challenges-basic.html
+ https://pythonpersian.com/challenges/python-code-challenges-basic.html2023-05-05T17:10:23+00:000.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 @@
+
+* دامنه کتاب به ``https://pythonpersian.com`` تغییر یافته است.
+* دامنههای قبلی ``https://python.coderz.club`` و ``https://python.coderz.ir`` تا پایان امسال همچنان معتبر هستند.
+
+----
+
.. raw:: html
@@ -19,7 +28,6 @@
* دامنه سرویس کدرز به ``club.`` تغییر داده شد.
* صفحه حمایت مالی بروز گردید.
-
----
@@ -341,7 +349,7 @@
-درس دوازدهم اضافه شد. با امید اینکه بروز رسانیهای بعدی در فاصله زمانی کمتری انجام بشه.
+درس دوازدهم اضافه شد. با امید اینکه بروز رسانیهای بعدی در فاصله زمانی کمتری انجام بشه.
:emoji-size:`😉`
----
@@ -374,7 +382,7 @@
-درس دهم با عنوان «ورودی و خروجی» به فهرست کتاب افزوده شد.
+درس دهم با عنوان «ورودی و خروجی» به فهرست کتاب افزوده شد.
: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 @@
حمایت مالی