-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
591 changed files
with
570 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ hide: | |
- navigation | ||
- toc | ||
--- | ||
# About us | ||
# About me |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
--- | ||
hide: | ||
- navigation | ||
--- | ||
# tilearn.show_mytime | ||
|
||
!!! info | ||
For a more in-depth understanding of the concept, you can check [here](../../user-guide/single-machine/completion/index.md#the-total-weighted-completion-time--show_mytime). | ||
|
||
## tilearn.<span style="color:#ffde59;">show_mytime</span>(*list, due date*) | ||
|
||
- **Paramenter:** | ||
|
||
- **list: list or an array, that holds the job table data.** | ||
|
||
Each element in this collection should represent a job name, including relevant attributes such as job ID, quantity, release time, due date, and priority. These attributes are necessary for scheduling the jobs. See [notes](#notes) for a more detailed explanation of which elements in the array need to be used. | ||
|
||
- **due date : deadline by which all jobs in the provided list need to be completed.** | ||
|
||
It represents a specific date and time and is crucial for scheduling purposes. The function will use this date to determine whether each job can be completed on time or if adjustments need to be made to meet this deadline. The due date should be formatted correctly to ensure accurate comparisons and calculations within the function. | ||
|
||
### Notes | ||
|
||
The list is a key function that displays your job data. | ||
|
||
See the example below for more details: | ||
|
||
<figure markdown="span"> | ||
![alt text](job-light.png#only-dark){ width="400" } | ||
![alt text](job-dark.png#only-light){ width="400" } | ||
<figcaption>List example.</figcaption> | ||
</figure> | ||
|
||
Explanation: | ||
|
||
<table> | ||
<thead> | ||
<tr> | ||
<th style="width: 200px; text-align: center;">Column position</th> | ||
<th>Meaning</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td style="text-align: center;">The first column</td> | ||
<td>Indicates the job name.</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align: center;">The second column</td> | ||
<td>Displays the quantity required to complete each job. For example, Job 1 requires 12 units to be finished. The unit type is not crucial; it is up to your discretion and it simply serves as a value for determining how weighty the job is. (e.g. 12 <em>minutes</em>, 12 <em>pages</em> for reading,...)</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align: center;">The third column</td> | ||
<td>Details the release time of each job. For example, Job 1 is released on day 0.</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align: center;">The fourth column</td> | ||
<td>Specifies the due date of each job. For example, Job 1 is due on day 30.</td> | ||
</tr> | ||
<tr> | ||
<td style="text-align: center;">The last column</td> | ||
<td>Exhibits the job’s weight (representing job’s priority value, you can assign weight values from 1 to 3 or 1 to 10, based on your judgment). The higher the priority value, the more important it is, if all jobs have equal priority, their weights would be 1. For example, the priority of Job 1 is 2.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
### Examples | ||
Code Implementation: | ||
|
||
```py | ||
import tilearn as tl | ||
|
||
data = [['Job 1', 4, 0, 10, 1], ['Job 2', 9, 0, 10, 3], ['Job 3', 6, 0, 10, 2], ['Job 4', 7, 0, 10, 3], ['Job 5', 4, 0, 10, 2], ['Job 6', 5, 0, 10, 1], ['Job 7', 8, 0, 10, 3], ['Job 8', 3, 0, 10, 1], ['Job 9', 2, 0, 10, 1], ['Job 10', 6, 0, 10, 2]] | ||
|
||
print(tl.show_mytime(data, 10)) | ||
``` | ||
*Output:* | ||
```output | ||
[['Job 5', 4, 0, 10, 2, 0.7407407407407407, 2.7], ['Job 9', 2, 0, 10, 1, 0.37037037037037035, 2.7], ['Job 4', 7, 0, 10, 3, 1.2962962962962963, 2.3142857142857145], ['Job 7', 8, 0, 10, 3, 1.4814814814814814, 2.025], ['Job 2', 9, 0, 10, 3, 1.6666666666666667, 1.7999999999999998], ['Job 3', 6, 0, 10, 2, 1.1111111111111112, 1.7999999999999998], ['Job 8', 3, 0, 10, 1, 0.5555555555555556, 1.7999999999999998], ['Job 10', 6, 0, 10, 2, 1.1111111111111112, 1.7999999999999998], ['Job 1', 4, 0, 10, 1, 0.7407407407407407, 1.35], ['Job 6', 5, 0, 10, 1, 0.9259259259259259, 1.08]] | ||
``` | ||
|
||
To make the output more readable, you can adjust your code as shown below: | ||
|
||
```py | ||
schedule = tl.show_mytime(data, 10) | ||
|
||
for row in schedule: | ||
print(row) | ||
``` | ||
*Output:* | ||
```output | ||
['Job 5', 4, 0, 10, 2, 0.7407407407407407, 2.7] | ||
['Job 9', 2, 0, 10, 1, 0.37037037037037035, 2.7] | ||
['Job 4', 7, 0, 10, 3, 1.2962962962962963, 2.3142857142857145] | ||
['Job 7', 8, 0, 10, 3, 1.4814814814814814, 2.025] | ||
['Job 2', 9, 0, 10, 3, 1.6666666666666667, 1.7999999999999998] | ||
['Job 3', 6, 0, 10, 2, 1.1111111111111112, 1.7999999999999998] | ||
['Job 8', 3, 0, 10, 1, 0.5555555555555556, 1.7999999999999998] | ||
['Job 10', 6, 0, 10, 2, 1.1111111111111112, 1.7999999999999998] | ||
['Job 1', 4, 0, 10, 1, 0.7407407407407407, 1.35] | ||
['Job 6', 5, 0, 10, 1, 0.9259259259259259, 1.08] | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
hide: | ||
- navigation | ||
- toc | ||
--- | ||
# TiLearn reference | ||
|
||
!!! info | ||
- Release: 0.0.12 | ||
- Date: August 27, 2024 | ||
|
||
This reference manual offers an extensive overview of the functions, modules, and objects available in TiLearn. Each section thoroughly explains the components, including their definitions, functionalities, and practical applications within the library. | ||
|
||
By exploring this manual, users can gain a clear understanding of how to utilize these elements effectively in their projects. For a more in-depth exploration of the underlying concepts and advanced usage examples, please refer to the [full tutorial](../user-guide/index.md). | ||
|
||
## Python API | ||
- [The Total (Weighted) Completion Time](#python-api) | ||
- [Independence jobs (``show_mytime``)](in-job/i-job.md#tilearnshow_mytimelist-due-date) | ||
|
||
## Acknowledgements | ||
|
||
Significant portions of this manual are based on foundational texts in the field, including "Single Machine Scheduling" by Le Minh Huy and "Scheduling: Theory, Algorithms, and Systems" by Michael Pinedo. These sources provide the theoretical background and algorithms that underpin many of the scheduling concepts presented here. | ||
|
||
The reference documentation within this manual, detailing the various functions, modules, and objects available in TiLearn, has been meticulously developed by the contributors and developers of TiLearn. Each entry has been carefully written to provide [comprehensive explanations](../user-guide/index.md), practical examples, and insights into how to effectively utilize these components within scheduling and optimization projects. For more advanced topics and extended examples, users are encouraged to consult the [full references](../getting-started/index.md#references). |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
docs/how/single-machine/completion/index.md → ...-guide/single-machine/completion/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+8 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/AES.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.11 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+9.41 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_cbc.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+24.2 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_ccm.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+9.77 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_cfb.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+13.9 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_ctr.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+14.7 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_eax.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+7.26 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_ecb.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+22.4 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_gcm.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+19.4 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_ocb.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+9.22 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_ofb.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_openpgp.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+14.2 KB
venv/lib/python3.12/site-packages/Crypto/Cipher/__pycache__/_mode_siv.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+9.04 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/BLAKE2s.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+11.3 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/CMAC.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+8.01 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/HMAC.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6.68 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/MD5.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6.75 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/SHA1.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6.98 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/SHA256.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+7.75 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/SHA512.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+4.02 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/SHAKE256.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.25 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6.89 KB
venv/lib/python3.12/site-packages/Crypto/Hash/__pycache__/keccak.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+681 Bytes
venv/lib/python3.12/site-packages/Crypto/Math/__pycache__/Numbers.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+15.1 KB
venv/lib/python3.12/site-packages/Crypto/Math/__pycache__/_IntegerBase.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+32.4 KB
venv/lib/python3.12/site-packages/Crypto/Math/__pycache__/_IntegerGMP.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+193 Bytes
venv/lib/python3.12/site-packages/Crypto/Math/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+26.2 KB
venv/lib/python3.12/site-packages/Crypto/Protocol/__pycache__/KDF.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+244 Bytes
venv/lib/python3.12/site-packages/Crypto/Protocol/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+69.3 KB
venv/lib/python3.12/site-packages/Crypto/PublicKey/__pycache__/ECC.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.67 KB
venv/lib/python3.12/site-packages/Crypto/PublicKey/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.35 KB
venv/lib/python3.12/site-packages/Crypto/Random/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+4.88 KB
venv/lib/python3.12/site-packages/Crypto/Random/__pycache__/random.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+393 Bytes
venv/lib/python3.12/site-packages/Crypto/Signature/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+13.8 KB
venv/lib/python3.12/site-packages/Crypto/Signature/__pycache__/eddsa.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+3.16 KB
venv/lib/python3.12/site-packages/Crypto/Util/__pycache__/Padding.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.12 KB
venv/lib/python3.12/site-packages/Crypto/Util/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+853 Bytes
venv/lib/python3.12/site-packages/Crypto/Util/__pycache__/_cpu_features.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.22 KB
venv/lib/python3.12/site-packages/Crypto/Util/__pycache__/_file_system.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+12.6 KB
venv/lib/python3.12/site-packages/Crypto/Util/__pycache__/_raw_api.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+39.6 KB
venv/lib/python3.12/site-packages/Crypto/Util/__pycache__/asn1.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+64.1 KB
venv/lib/python3.12/site-packages/Crypto/Util/__pycache__/number.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6.88 KB
venv/lib/python3.12/site-packages/Crypto/Util/__pycache__/py3compat.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+4.14 KB
venv/lib/python3.12/site-packages/Crypto/Util/__pycache__/strxor.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+464 Bytes
venv/lib/python3.12/site-packages/Crypto/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.96 KB
venv/lib/python3.12/site-packages/__pycache__/yaml_env_tag.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+10.3 KB
venv/lib/python3.12/site-packages/_distutils_hack/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+984 Bytes
venv/lib/python3.12/site-packages/babel/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+49.7 KB
venv/lib/python3.12/site-packages/babel/__pycache__/core.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+79.9 KB
venv/lib/python3.12/site-packages/babel/__pycache__/dates.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+12.6 KB
venv/lib/python3.12/site-packages/babel/__pycache__/localedata.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+61.1 KB
venv/lib/python3.12/site-packages/babel/__pycache__/numbers.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+31 KB
venv/lib/python3.12/site-packages/babel/__pycache__/plural.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+34.9 KB
venv/lib/python3.12/site-packages/babel/__pycache__/support.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.26 KB
venv/lib/python3.12/site-packages/babel/localtime/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.58 KB
venv/lib/python3.12/site-packages/babel/localtime/__pycache__/_fallback.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.12 KB
venv/lib/python3.12/site-packages/babel/localtime/__pycache__/_helpers.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+3.86 KB
venv/lib/python3.12/site-packages/babel/localtime/__pycache__/_unix.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+32.9 KB
venv/lib/python3.12/site-packages/bs4/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+11.2 KB
venv/lib/python3.12/site-packages/bs4/__pycache__/css.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+36.9 KB
venv/lib/python3.12/site-packages/bs4/__pycache__/dammit.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+90 KB
venv/lib/python3.12/site-packages/bs4/__pycache__/element.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+8.25 KB
venv/lib/python3.12/site-packages/bs4/__pycache__/formatter.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+22.8 KB
venv/lib/python3.12/site-packages/bs4/builder/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+20.6 KB
venv/lib/python3.12/site-packages/bs4/builder/__pycache__/_html5lib.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+12.9 KB
venv/lib/python3.12/site-packages/bs4/builder/__pycache__/_htmlparser.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+14.8 KB
venv/lib/python3.12/site-packages/bs4/builder/__pycache__/_lxml.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.69 KB
venv/lib/python3.12/site-packages/charset_normalizer/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+16.9 KB
venv/lib/python3.12/site-packages/charset_normalizer/__pycache__/api.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+13.1 KB
venv/lib/python3.12/site-packages/charset_normalizer/__pycache__/cd.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+37.9 KB
venv/lib/python3.12/site-packages/charset_normalizer/__pycache__/constant.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.45 KB
venv/lib/python3.12/site-packages/charset_normalizer/__pycache__/legacy.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+16.2 KB
venv/lib/python3.12/site-packages/charset_normalizer/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+14 KB
venv/lib/python3.12/site-packages/charset_normalizer/__pycache__/utils.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+332 Bytes
venv/lib/python3.12/site-packages/charset_normalizer/__pycache__/version.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.64 KB
venv/lib/python3.12/site-packages/click/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+26.8 KB
venv/lib/python3.12/site-packages/click/__pycache__/_compat.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+132 KB
venv/lib/python3.12/site-packages/click/__pycache__/core.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+23.4 KB
venv/lib/python3.12/site-packages/click/__pycache__/decorators.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+14.4 KB
venv/lib/python3.12/site-packages/click/__pycache__/exceptions.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+13.7 KB
venv/lib/python3.12/site-packages/click/__pycache__/formatting.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+3.05 KB
venv/lib/python3.12/site-packages/click/__pycache__/globals.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+21 KB
venv/lib/python3.12/site-packages/click/__pycache__/parser.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+32 KB
venv/lib/python3.12/site-packages/click/__pycache__/termui.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+48.3 KB
venv/lib/python3.12/site-packages/click/__pycache__/types.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+25.7 KB
venv/lib/python3.12/site-packages/click/__pycache__/utils.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+196 Bytes
venv/lib/python3.12/site-packages/encryptcontent/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+69.6 KB
venv/lib/python3.12/site-packages/encryptcontent/__pycache__/plugin.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.62 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.09 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/_identifier.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+3.99 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/async_utils.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+18.9 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/bccache.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+99.9 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/compiler.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.57 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/defaults.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+74.9 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/environment.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+7.54 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/exceptions.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+40.9 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/ext.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+70.3 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/filters.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+18.7 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/idtracking.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+31.3 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/lexer.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+30.2 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/loaders.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+56.8 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/nodes.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.63 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/optimizer.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+59.4 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/parser.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+47.3 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/runtime.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+8.84 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/tests.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+33.7 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/utils.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+5.23 KB
venv/lib/python3.12/site-packages/jinja2/__pycache__/visitor.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.16 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.11 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/__meta__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6.27 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/blockparser.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+29.7 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/blockprocessors.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+21.9 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/core.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+16.2 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/htmlparser.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+44.2 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/inlinepatterns.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6.38 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/postprocessors.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+3.93 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/preprocessors.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6.19 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/serializers.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+20.4 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/treeprocessors.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+15.7 KB
venv/lib/python3.12/site-packages/markdown/__pycache__/util.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+5.14 KB
venv/lib/python3.12/site-packages/markdown/extensions/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+6.75 KB
venv/lib/python3.12/site-packages/markdown/extensions/__pycache__/admonition.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+9.04 KB
venv/lib/python3.12/site-packages/markdown/extensions/__pycache__/attr_list.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+14.3 KB
venv/lib/python3.12/site-packages/markdown/extensions/__pycache__/codehilite.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+8.58 KB
.../lib/python3.12/site-packages/markdown/extensions/__pycache__/fenced_code.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+21.1 KB
venv/lib/python3.12/site-packages/markdown/extensions/__pycache__/footnotes.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+18.1 KB
venv/lib/python3.12/site-packages/markdown/extensions/__pycache__/md_in_html.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+9.97 KB
venv/lib/python3.12/site-packages/markdown/extensions/__pycache__/tables.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+21.7 KB
venv/lib/python3.12/site-packages/markdown/extensions/__pycache__/toc.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+17 KB
venv/lib/python3.12/site-packages/markupsafe/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+219 Bytes
venv/lib/python3.12/site-packages/material/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+201 Bytes
venv/lib/python3.12/site-packages/material/extensions/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+3.68 KB
venv/lib/python3.12/site-packages/material/extensions/__pycache__/emoji.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+198 Bytes
venv/lib/python3.12/site-packages/material/plugins/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+205 Bytes
...lib/python3.12/site-packages/material/plugins/search/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.21 KB
venv/lib/python3.12/site-packages/material/plugins/search/__pycache__/config.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+19.2 KB
venv/lib/python3.12/site-packages/material/plugins/search/__pycache__/plugin.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+200 Bytes
venv/lib/python3.12/site-packages/material/templates/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+328 Bytes
venv/lib/python3.12/site-packages/mergedeep/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+4.39 KB
venv/lib/python3.12/site-packages/mergedeep/__pycache__/mergedeep.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+216 Bytes
venv/lib/python3.12/site-packages/mkdocs/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+17.8 KB
venv/lib/python3.12/site-packages/mkdocs/__pycache__/__main__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.94 KB
venv/lib/python3.12/site-packages/mkdocs/__pycache__/exceptions.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+4.14 KB
venv/lib/python3.12/site-packages/mkdocs/__pycache__/localization.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+32 KB
venv/lib/python3.12/site-packages/mkdocs/__pycache__/plugins.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+8.08 KB
venv/lib/python3.12/site-packages/mkdocs/__pycache__/theme.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+197 Bytes
venv/lib/python3.12/site-packages/mkdocs/commands/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+16.9 KB
venv/lib/python3.12/site-packages/mkdocs/commands/__pycache__/build.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+4.7 KB
venv/lib/python3.12/site-packages/mkdocs/commands/__pycache__/serve.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+306 Bytes
venv/lib/python3.12/site-packages/mkdocs/config/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+18.7 KB
venv/lib/python3.12/site-packages/mkdocs/config/__pycache__/base.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+60.7 KB
venv/lib/python3.12/site-packages/mkdocs/config/__pycache__/config_options.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+8.17 KB
venv/lib/python3.12/site-packages/mkdocs/config/__pycache__/defaults.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+196 Bytes
venv/lib/python3.12/site-packages/mkdocs/contrib/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+7.87 KB
venv/lib/python3.12/site-packages/mkdocs/contrib/search/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+10.3 KB
...b/python3.12/site-packages/mkdocs/contrib/search/__pycache__/search_index.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+20.1 KB
venv/lib/python3.12/site-packages/mkdocs/livereload/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.88 KB
venv/lib/python3.12/site-packages/mkdocs/structure/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+30.6 KB
venv/lib/python3.12/site-packages/mkdocs/structure/__pycache__/files.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+11.5 KB
venv/lib/python3.12/site-packages/mkdocs/structure/__pycache__/nav.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+25.6 KB
venv/lib/python3.12/site-packages/mkdocs/structure/__pycache__/pages.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+4.29 KB
venv/lib/python3.12/site-packages/mkdocs/structure/__pycache__/toc.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+19 KB
venv/lib/python3.12/site-packages/mkdocs/utils/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+4.32 KB
venv/lib/python3.12/site-packages/mkdocs/utils/__pycache__/meta.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+5.17 KB
venv/lib/python3.12/site-packages/mkdocs/utils/__pycache__/rendering.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+2.43 KB
venv/lib/python3.12/site-packages/mkdocs/utils/__pycache__/templates.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+8.16 KB
venv/lib/python3.12/site-packages/mkdocs/utils/__pycache__/yaml.cpython-312.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions
1
venv/lib/python3.12/site-packages/mkdocs_glightbox-0.4.0.dist-info/INSTALLER
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pip |
21 changes: 21 additions & 0 deletions
21
venv/lib/python3.12/site-packages/mkdocs_glightbox-0.4.0.dist-info/LICENSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 Blueswen | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
113 changes: 113 additions & 0 deletions
113
venv/lib/python3.12/site-packages/mkdocs_glightbox-0.4.0.dist-info/METADATA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
Metadata-Version: 2.1 | ||
Name: mkdocs-glightbox | ||
Version: 0.4.0 | ||
Summary: MkDocs plugin supports image lightbox with GLightbox. | ||
Home-page: https://blueswen.github.io/mkdocs-glightbox | ||
Author: Blueswen | ||
Author-email: [email protected] | ||
License: MIT | ||
Project-URL: Source, https://github.com/Blueswen/mkdocs-glightbox | ||
Keywords: mkdocs,plugin,lightbox | ||
Platform: UNKNOWN | ||
Description-Content-Type: text/markdown | ||
License-File: LICENSE | ||
|
||
# MkDocs GLightbox | ||
|
||
<p align="center"> | ||
<a target="_blank" href="https://pypi.org/project/mkdocs-glightbox"><img src="https://img.shields.io/pypi/v/mkdocs-glightbox.svg" alt="PyPI version"/></a> | ||
<a target="_blank" href="https://pypi.org/project/mkdocs-glightbox"><img src="https://img.shields.io/pypi/dm/mkdocs-glightbox.svg" alt="PyPI downloads"/></a> | ||
<a target="_blank" href="https://codecov.io/gh/blueswen/mkdocs-glightbox"><img src="https://codecov.io/gh/blueswen/mkdocs-glightbox/branch/main/graph/badge.svg?token=KAJS3NU81H" alt="Codecov"/></a> | ||
</p> | ||
|
||
A MkDocs plugin supports image lightbox with [GLightbox](https://github.com/biati-digital/glightbox). | ||
|
||
GLightbox is a pure javascript lightbox library with mobile support. | ||
|
||
[Live demo](https://blueswen.github.io/mkdocs-glightbox/) with [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/). | ||
|
||
## Dependency | ||
|
||
1. GLightbox javascript file and CSS file | ||
1. GLightbox==3.2.0 | ||
|
||
## Usage | ||
|
||
1. Install the plugin from PyPI | ||
|
||
```bash | ||
pip install mkdocs-glightbox | ||
``` | ||
|
||
2. Add ```glightbox``` plugin to your mkdocs.yml plugins sections: | ||
|
||
```yaml | ||
plugins: | ||
- glightbox | ||
``` | ||
|
||
3. All images will be added to the lightbox effect automatically, except images in an anchor tag and emoji images from [pymdown-extensions](https://facelessuser.github.io/pymdown-extensions/extensions/emoji/). | ||
|
||
4. You may customize the plugin by passing options in mkdocs.yml: | ||
|
||
```yaml | ||
plugins: | ||
- glightbox: | ||
touchNavigation: true | ||
loop: false | ||
effect: zoom | ||
slide_effect: slide | ||
width: 100% | ||
height: auto | ||
zoomable: true | ||
draggable: true | ||
skip_classes: | ||
- custom-skip-class-name | ||
auto_caption: false | ||
caption_position: bottom | ||
background: white | ||
shadow: true | ||
manual: false | ||
``` | ||
|
||
| Option | Default | Description | | ||
|---|---|---| | ||
| touchNavigation | true | Enable or disable the touch navigation (swipe). | | ||
| loop | false | Loop slides on end. | | ||
| effect | zoom | Name of the effect on lightbox open. (zoom, fade, none) | | ||
| slide_effect | slide | Name of the effect on lightbox slide. (slide, zoom, fade, none) | | ||
| width | auto | Width for inline elements and iframes. You can use any unit for example 90% or 100vw for full width. | | ||
| height | auto | Height for inline elements and iframes. You can use any unit for example 90%, 100vh or auto. | | ||
| zoomable | true | Enable or disable zoomable images. | | ||
| draggable | true | Enable or disable mouse drag to go prev and next slide. | | ||
| skip_classes | [ ] | Disable lightbox of those image with specific custom class name. | | ||
| auto_caption | false | Enable or disable using alt of image as caption title automatically. | | ||
| caption_position | bottom | Default captions position. (bottom, top, left, right) | | ||
| background | white | The background CSS of lightbox image. The background will shown when the image is transparent. You can use any CSS value for the background for example `#74b9ff` or `Gainsboro` or `none` for nothing. | | ||
| shadow | true | Enable or disable the shadow of lightbox image. Disable it when the background is `none` to prevent shadow around the transparent image. | | ||
| manual | false | When true, lightbox has to be enabled for each image manually by adding `on-glb` class to it or adding `glightbox: true` meta on page. | | ||
|
||
Check more options information on [GLightbox Docs](https://github.com/biati-digital/glightbox#lightbox-options). | ||
|
||
5. For more flexibility: | ||
1. [Disable by image](https://blueswen.github.io/mkdocs-glightbox/flexibility/disable-by-image.md): Disable the lightbox for specific images. Suitable for a few amount of images that don't need the lightbox effect. | ||
2. [Disable by page](https://blueswen.github.io/mkdocs-glightbox/flexibility/disable-by-page.md): Disable the lightbox for specific pages. Suitable for a few amount of pages that don't need the lightbox effect. | ||
3. [Enable by image](https://blueswen.github.io/mkdocs-glightbox/flexibility/disable-by-page-enable-by-image.md): Disable the lightbox for specific pages but enable some images on those pages. Suitable for a few amount of images that need the lightbox effect. | ||
4. [Disable globally but enable by image or page](https://blueswen.github.io/mkdocs-glightbox/flexibility/enable-by-image-or-page.md): Disable the lightbox globally but enable specific images or specific pages. Suitable for a large number of images or pages that don't need the lightbox effect. | ||
6. Support lightbox image caption, check more details on [Caption](https://blueswen.github.io/mkdocs-glightbox/caption/caption/). | ||
7. Support grouping images as galleries, check more details on [Gallery](https://blueswen.github.io/mkdocs-glightbox/gallery/gallery/). | ||
|
||
> [!NOTE] | ||
> If this is your first time using the MkDocs plugin feature, you should know that MkDocs includes a default plugin named `search`. If you want to keep the search feature, you need to add the `search` plugin back to the `plugins` list. | ||
|
||
## How it works | ||
|
||
1. Copy GLightbox script file into `site/assets/javascripts/` directory and CSS file into `site/assets/stylesheets/` directory | ||
2. Import GLightbox script and CSS file and add javascript code on each page excluded disabled pages | ||
3. Search all image tags and warp with an anchor tag for GLightbox excluded images with skip class or already warped with an anchor tag | ||
|
||
## License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/Blueswen/mkdocs-glightbox/blob/main/LICENSE) file for details. | ||
|
||
|
Oops, something went wrong.