-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
☕ ️update cli documentation and guidebook
- Added CLI section to the documentation. - Included toml dependency in pyproject.toml. - Improved the guidebook for better clarity and usability.
- Loading branch information
Showing
12 changed files
with
94 additions
and
146 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
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
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,58 @@ | ||
🥞 CLI Setup | ||
------------ | ||
|
||
To get started with the BeatPrints CLI, you'll need to set up a configuration file. | ||
|
||
Windows | ||
~~~~~~~ | ||
|
||
1. Create a folder named ``BeatPrints`` in the following directory: | ||
|
||
.. code:: python | ||
C:\Users\<YourUsername>\AppData\Roaming\ | ||
2. Inside this folder, create a file called ``config.toml`` with the | ||
following contents: | ||
|
||
.. code:: toml | ||
[general] | ||
search_limit = 7 | ||
output_directory = "<path-to-save-your-posters>" | ||
[credentials] | ||
client_id = "your-client-id" | ||
client_secret = "your-client-secret" | ||
Replace ``<path-to-save-your-posters>`` with the path where you'd like to save the generated posters, and fill in the ``client_id`` and ``client_secret`` with your Spotify credentials. | ||
|
||
|
||
.. important:: | ||
|
||
If you're using **Windows**, please ensure you use **double backslashes** (``\\``) rather than a single backslash when specifying your output path. For example: | ||
|
||
.. code:: python | ||
output_directory = "C:\\Users\\<YourUsername>\\Downloads\\Posters" | ||
Linux or macOS | ||
~~~~~~~~~~~~~~ | ||
|
||
1. Create a folder named ``BeatPrints`` in your ``~/.config/`` directory: | ||
|
||
.. code:: python | ||
~/.config/BeatPrints/ | ||
2. Inside this folder, create a file called ``config.toml`` with the same contents as mentioned above. | ||
|
||
Running the CLI | ||
~~~~~~~~~~~~~~~ | ||
|
||
Once the config file is set up, you can run the BeatPrints CLI: | ||
|
||
1. Open your terminal. | ||
2. Type ``beatprints`` and press Enter. | ||
|
||
Your poster will be saved in the output directory you specified in the ``config.toml`` file. |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Misc | ||
==== | ||
Miscellaneous | ||
============= | ||
|
||
.. toctree:: | ||
|
||
|
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
furo | ||
sphinx-copybutton | ||
sphinxcontrib-video |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "BeatPrints" | ||
version = "1.0.4" | ||
version = "1.0.5" | ||
description = "Create eye-catching, pinterest-style music posters effortlessly." | ||
authors = ["elysianmyst <[email protected]>"] | ||
license = "CC-BY-NC-4.0" | ||
|