diff --git a/README.md b/README.md index fbea3fe7..567da921 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@
- +
-Designed for simplicity, customization, and developer productivity.
@@ -27,45 +26,32 @@ ## ๐ Quick Links -1. [โก๏ธ Introduction](#๏ธ-introduction) -2. [๐พ Demo](#-demo) -3. [โ๏ธ Features](#-features) -4. [๐ธ Quickstart](#-getting-started) -5. [๐ก Configuration](#-configuration) -6. [๐ค Examples](#-examples) -7. [๐ฐ Contributing](#-contributing) - -
- + + --image custom --badge-color FF4B4B --badge-style flat-square --header-style classic
|
|
- + + --image cloud --header-style compact --toc-style fold
|
|
+ + + --badge-style for-the-badge --header-style svg
+ |
+ |
- + + --align left --badge-style flat-square --image cloud
|
- + + --align left --badge-style flat --image gradient
|
- + + --badge-style flat --image custom
|
- + + --badge-style skills-light --image grey
|
- + + --badge-style flat-square
|
- + + --badge-style flat --image black
|
- + + --image custom --badge-color 00ffe9 --badge-style flat-square --header-style classic
|
|
- + + --image llm --badge-style plastic --header-style classic
|
|
- + + --image custom --badge-color BA0098 --badge-style flat-square --header-style modern --toc-style fold
|
|
+
+ + --header-style ascii
+ |
+
+
+ + --header-style ascii_box
+ |
+
โ Generated markdown table that highlights the key technical features and components of the codebase. This table is generated using a structured prompt template.
@@ -651,32 +698,34 @@ Contributions are welcome and encouraged! If interested, please begin by reviewi --- -## ๐ Changelog - -[Changelog][0] - ---- - ## ๐ License -[MIT License][4] +README-AI is released under the terms of the [MIT License][license]. --- ## ๐ Acknowledgments * [Shields.io](https://shields.io/) +* [Simple Icons](https://simpleicons.org/) * [Aveek-Saha/GitHub-Profile-Badges](https://github.com/Aveek-Saha/GitHub-Profile-Badges) * [Ileriayo/Markdown-Badges](https://github.com/Ileriayo/markdown-badges) * [tandpfun/skill-icons](https://github.com/tandpfun/skill-icons) -
- โฌ๏ธ Top -
+ --- - + +[overview]: #-overview "๐ฎ Overview" +[demo]: (#-demo) "๐พ Demo" +[features]: (#-features) "โ๏ธ Features" +[getting-started]: (#-getting-started) "๐ธ Getting Started" +[configuration]: (#-configuration) "๐ก Configuration" +[examples]: (#-examples) "๐จ Examples" +[contributing]: (#-contributing) "๐ฐ Contributing" + + [0a]: https://github.com/eli64s/readme-ai/blob/main/examples/readme-ai.md "readme-python.md" [0b]: https://github.com/eli64s/readme-ai "readme-ai" [1a]: https://github.com/eli64s/readme-ai/blob/main/examples/readme-typescript.md "readme-typescript.md" @@ -699,9 +748,11 @@ Contributions are welcome and encouraged! If interested, please begin by reviewi [9b]: https://github.com/GokuMohandas/mlops-course "mlops-course" [10a]: https://github.com/eli64s/readme-ai/blob/main/examples/readme-local.md "readme-local.md" - -[0]: https://github.com/eli64s/readme-ai/blob/main/CHANGELOG.md "Changelog" -[1]: https://github.com/eli64s/readme-ai/blob/main/CONTRIBUTING.md "Contributing Guide" -[2]: https://github.com/eli64s/readme-ai/discussions "Start a Discussion" -[3]: https://github.com/eli64s/readme-ai/issues "Open an Issue" -[4]: https://github.com/eli64s/readme-ai/blob/main/LICENSE "License" + +[contributing]: https://github.com/eli64s/readme-ai/blob/main/CONTRIBUTING.md +[issues]: https://github.com/eli64s/readme-ai/issues +[discussions]: https://github.com/eli64s/readme-ai/discussions +[license]: https://github.com/eli64s/readme-ai/blob/main/LICENSE + + +[mkdocs]: https://eli64s.github.io/readme-ai "Official Documentation" diff --git a/docs/assets/icons/anthropic.svg b/docs/assets/icons/anthropic.svg new file mode 100644 index 00000000..3408b26e --- /dev/null +++ b/docs/assets/icons/anthropic.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/docker-color.svg b/docs/assets/icons/docker-color.svg new file mode 100644 index 00000000..c2cad332 --- /dev/null +++ b/docs/assets/icons/docker-color.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/docker.svg b/docs/assets/icons/docker.svg new file mode 100644 index 00000000..b8a5f2cc --- /dev/null +++ b/docs/assets/icons/docker.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/git-color.svg b/docs/assets/icons/git-color.svg new file mode 100644 index 00000000..82ccecae --- /dev/null +++ b/docs/assets/icons/git-color.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/git.svg b/docs/assets/icons/git.svg new file mode 100644 index 00000000..ba626c44 --- /dev/null +++ b/docs/assets/icons/git.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/gnubash-color.svg b/docs/assets/icons/gnubash-color.svg new file mode 100644 index 00000000..6dfa3152 --- /dev/null +++ b/docs/assets/icons/gnubash-color.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/gnubash.svg b/docs/assets/icons/gnubash.svg new file mode 100644 index 00000000..053771f6 --- /dev/null +++ b/docs/assets/icons/gnubash.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/googlegemini.svg b/docs/assets/icons/googlegemini.svg new file mode 100644 index 00000000..60197dc4 --- /dev/null +++ b/docs/assets/icons/googlegemini.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/ollama.svg b/docs/assets/icons/ollama.svg new file mode 100644 index 00000000..1c0ab7b6 --- /dev/null +++ b/docs/assets/icons/ollama.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/openai.svg b/docs/assets/icons/openai.svg new file mode 100644 index 00000000..7d9d324e --- /dev/null +++ b/docs/assets/icons/openai.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/pipx-color.svg b/docs/assets/icons/pipx-color.svg new file mode 100644 index 00000000..716acfb9 --- /dev/null +++ b/docs/assets/icons/pipx-color.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/pipx.svg b/docs/assets/icons/pipx.svg new file mode 100644 index 00000000..8f942eeb --- /dev/null +++ b/docs/assets/icons/pipx.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/poetry-color.svg b/docs/assets/icons/poetry-color.svg new file mode 100644 index 00000000..7edc244f --- /dev/null +++ b/docs/assets/icons/poetry-color.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/poetry.svg b/docs/assets/icons/poetry.svg new file mode 100644 index 00000000..a158c6d2 --- /dev/null +++ b/docs/assets/icons/poetry.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/pypi-color.svg b/docs/assets/icons/pypi-color.svg new file mode 100644 index 00000000..0dd96bb1 --- /dev/null +++ b/docs/assets/icons/pypi-color.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/pypi.svg b/docs/assets/icons/pypi.svg new file mode 100644 index 00000000..2207e4d2 --- /dev/null +++ b/docs/assets/icons/pypi.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/pytest-color.svg b/docs/assets/icons/pytest-color.svg new file mode 100644 index 00000000..2fbdb474 --- /dev/null +++ b/docs/assets/icons/pytest-color.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/pytest.svg b/docs/assets/icons/pytest.svg new file mode 100644 index 00000000..76597a75 --- /dev/null +++ b/docs/assets/icons/pytest.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/python-color.svg b/docs/assets/icons/python-color.svg new file mode 100644 index 00000000..fc9eb00f --- /dev/null +++ b/docs/assets/icons/python-color.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/python.svg b/docs/assets/icons/python.svg new file mode 100644 index 00000000..297a11e0 --- /dev/null +++ b/docs/assets/icons/python.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/readme-ai-banner.svg b/docs/assets/icons/readme-ai-banner.svg new file mode 100644 index 00000000..12d1d2f6 --- /dev/null +++ b/docs/assets/icons/readme-ai-banner.svg @@ -0,0 +1,84 @@ + diff --git a/docs/assets/icons/readme-ai-logo-animated.svg b/docs/assets/icons/readme-ai-logo-animated.svg new file mode 100644 index 00000000..d4a79635 --- /dev/null +++ b/docs/assets/icons/readme-ai-logo-animated.svg @@ -0,0 +1,57 @@ + diff --git a/docs/assets/icons/readme-ai-logo.svg b/docs/assets/icons/readme-ai-logo-gradient.svg similarity index 100% rename from docs/assets/icons/readme-ai-logo.svg rename to docs/assets/icons/readme-ai-logo-gradient.svg diff --git a/docs/assets/icons/readme-ai-logo-simple.svg b/docs/assets/icons/readme-ai-logo-simple.svg new file mode 100644 index 00000000..17a58074 --- /dev/null +++ b/docs/assets/icons/readme-ai-logo-simple.svg @@ -0,0 +1,62 @@ + diff --git a/docs/assets/icons/readme.svg b/docs/assets/icons/readme-logo-purple.svg similarity index 100% rename from docs/assets/icons/readme.svg rename to docs/assets/icons/readme-logo-purple.svg diff --git a/docs/assets/icons/streamlit-color.svg b/docs/assets/icons/streamlit-color.svg new file mode 100644 index 00000000..4c331bda --- /dev/null +++ b/docs/assets/icons/streamlit-color.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/icons/streamlit.svg b/docs/assets/icons/streamlit.svg new file mode 100644 index 00000000..f4b34348 --- /dev/null +++ b/docs/assets/icons/streamlit.svg @@ -0,0 +1 @@ + diff --git a/docs/assets/images/contributing_guidelines.png b/docs/assets/images/contributing/contributing-guidelines.png similarity index 100% rename from docs/assets/images/contributing_guidelines.png rename to docs/assets/images/contributing/contributing-guidelines.png diff --git a/docs/assets/images/footer.png b/docs/assets/images/contributing/footer.png similarity index 100% rename from docs/assets/images/footer.png rename to docs/assets/images/contributing/footer.png diff --git a/docs/assets/images/dalle/github-readme-quotes.png b/docs/assets/images/dalle/github-readme-quotes.png deleted file mode 100644 index 03fab33e..00000000 Binary files a/docs/assets/images/dalle/github-readme-quotes.png and /dev/null differ diff --git a/docs/assets/images/dalle/readme-ai-streamlit.png b/docs/assets/images/dalle/readme-ai-streamlit.png deleted file mode 100644 index 909d864c..00000000 Binary files a/docs/assets/images/dalle/readme-ai-streamlit.png and /dev/null differ diff --git a/docs/assets/images/directory-tree.png b/docs/assets/images/directory-tree.png deleted file mode 100644 index e7634465..00000000 Binary files a/docs/assets/images/directory-tree.png and /dev/null differ diff --git a/docs/assets/images/prerequisites.png b/docs/assets/images/getting-started/prerequisites-and-installation.png similarity index 100% rename from docs/assets/images/prerequisites.png rename to docs/assets/images/getting-started/prerequisites-and-installation.png diff --git a/docs/assets/images/usage_guide.png b/docs/assets/images/getting-started/usage-and-testing.png similarity index 100% rename from docs/assets/images/usage_guide.png rename to docs/assets/images/getting-started/usage-and-testing.png diff --git a/docs/assets/images/headers/ascii-box-toc-roman.png b/docs/assets/images/headers/ascii-box-toc-roman.png new file mode 100644 index 00000000..32ec99fd Binary files /dev/null and b/docs/assets/images/headers/ascii-box-toc-roman.png differ diff --git a/docs/assets/images/headers/ascii-box.png b/docs/assets/images/headers/ascii-box.png new file mode 100644 index 00000000..0604717c Binary files /dev/null and b/docs/assets/images/headers/ascii-box.png differ diff --git a/docs/assets/images/headers/ascii.png b/docs/assets/images/headers/ascii.png new file mode 100644 index 00000000..383ccf26 Binary files /dev/null and b/docs/assets/images/headers/ascii.png differ diff --git a/docs/assets/images/headers/header-black.png b/docs/assets/images/headers/black.png similarity index 100% rename from docs/assets/images/headers/header-black.png rename to docs/assets/images/headers/black.png diff --git a/docs/assets/images/headers/header-flat-square.png b/docs/assets/images/headers/blue.png similarity index 100% rename from docs/assets/images/headers/header-flat-square.png rename to docs/assets/images/headers/blue.png diff --git a/docs/assets/images/headers/header-toc-default.png b/docs/assets/images/headers/classic-no-emojis.png similarity index 100% rename from docs/assets/images/headers/header-toc-default.png rename to docs/assets/images/headers/classic-no-emojis.png diff --git a/docs/assets/images/headers/header-cloud.png b/docs/assets/images/headers/cloud.png similarity index 100% rename from docs/assets/images/headers/header-cloud.png rename to docs/assets/images/headers/cloud.png diff --git a/docs/assets/images/headers/header-minimal.png b/docs/assets/images/headers/compact.png similarity index 100% rename from docs/assets/images/headers/header-minimal.png rename to docs/assets/images/headers/compact.png diff --git a/docs/assets/images/headers/header-default-v2.png b/docs/assets/images/headers/custom-database.png similarity index 100% rename from docs/assets/images/headers/header-default-v2.png rename to docs/assets/images/headers/custom-database.png diff --git a/docs/assets/images/headers/custom-image.png b/docs/assets/images/headers/custom-dragon.png similarity index 100% rename from docs/assets/images/headers/custom-image.png rename to docs/assets/images/headers/custom-dragon.png diff --git a/docs/assets/images/project-logo-custom.png b/docs/assets/images/headers/custom.png similarity index 100% rename from docs/assets/images/project-logo-custom.png rename to docs/assets/images/headers/custom.png diff --git a/docs/assets/images/headers/header-custom.png b/docs/assets/images/headers/customn-balloon.png similarity index 100% rename from docs/assets/images/headers/header-custom.png rename to docs/assets/images/headers/customn-balloon.png diff --git a/docs/assets/images/project-logo-dalle.png b/docs/assets/images/headers/dalle.png similarity index 100% rename from docs/assets/images/project-logo-dalle.png rename to docs/assets/images/headers/dalle.png diff --git a/docs/assets/images/headers/header-default.png b/docs/assets/images/headers/default.png similarity index 100% rename from docs/assets/images/headers/header-default.png rename to docs/assets/images/headers/default.png diff --git a/docs/assets/images/headers/header-gradient.png b/docs/assets/images/headers/gradient.png similarity index 100% rename from docs/assets/images/headers/header-gradient.png rename to docs/assets/images/headers/gradient.png diff --git a/docs/assets/images/headers/header-mlops.png b/docs/assets/images/headers/mlops.png similarity index 100% rename from docs/assets/images/headers/header-mlops.png rename to docs/assets/images/headers/mlops.png diff --git a/docs/assets/images/headers/modern-pyflink.png b/docs/assets/images/headers/modern-flat-square.png similarity index 100% rename from docs/assets/images/headers/modern-pyflink.png rename to docs/assets/images/headers/modern-flat-square.png diff --git a/docs/assets/images/headers/modern-docker-go.png b/docs/assets/images/headers/modern-for-the-badge.png similarity index 100% rename from docs/assets/images/headers/modern-docker-go.png rename to docs/assets/images/headers/modern-for-the-badge.png diff --git a/docs/assets/images/headers/header-skills.png b/docs/assets/images/headers/skill-icons-light.png similarity index 100% rename from docs/assets/images/headers/header-skills.png rename to docs/assets/images/headers/skill-icons-light.png diff --git a/docs/assets/images/headers/header-skills-dark.png b/docs/assets/images/headers/skill-icons.png similarity index 100% rename from docs/assets/images/headers/header-skills-dark.png rename to docs/assets/images/headers/skill-icons.png diff --git a/docs/assets/images/headers/svg-banner.png b/docs/assets/images/headers/svg-banner.png new file mode 100644 index 00000000..433609ab Binary files /dev/null and b/docs/assets/images/headers/svg-banner.png differ diff --git a/docs/assets/images/llm-content/dalle/github-readme-quotes.png b/docs/assets/images/llm-content/dalle/github-readme-quotes.png new file mode 100644 index 00000000..276d345f Binary files /dev/null and b/docs/assets/images/llm-content/dalle/github-readme-quotes.png differ diff --git a/docs/assets/images/llm-content/dalle/readme-ai-bot.png b/docs/assets/images/llm-content/dalle/readme-ai-bot.png new file mode 100644 index 00000000..66f126b0 Binary files /dev/null and b/docs/assets/images/llm-content/dalle/readme-ai-bot.png differ diff --git a/docs/assets/images/llm-content/dalle/readme-ai-feather.png b/docs/assets/images/llm-content/dalle/readme-ai-feather.png new file mode 100644 index 00000000..e224cf86 Binary files /dev/null and b/docs/assets/images/llm-content/dalle/readme-ai-feather.png differ diff --git a/docs/assets/images/llm-content/dalle/readme-ai-streamlit.png b/docs/assets/images/llm-content/dalle/readme-ai-streamlit.png new file mode 100644 index 00000000..05067f1d Binary files /dev/null and b/docs/assets/images/llm-content/dalle/readme-ai-streamlit.png differ diff --git a/docs/assets/images/dalle/readme-ai.png b/docs/assets/images/llm-content/dalle/readme-ai.png similarity index 100% rename from docs/assets/images/dalle/readme-ai.png rename to docs/assets/images/llm-content/dalle/readme-ai.png diff --git a/docs/assets/images/dalle/readme-streamlit-dalle.png b/docs/assets/images/llm-content/dalle/readme-streamlit-dalle.png similarity index 100% rename from docs/assets/images/dalle/readme-streamlit-dalle.png rename to docs/assets/images/llm-content/dalle/readme-streamlit-dalle.png diff --git a/docs/assets/images/dalle/readme-streamlit-v0.5.88.png b/docs/assets/images/llm-content/dalle/readme-streamlit-v0.5.88.png similarity index 100% rename from docs/assets/images/dalle/readme-streamlit-v0.5.88.png rename to docs/assets/images/llm-content/dalle/readme-streamlit-v0.5.88.png diff --git a/docs/assets/images/dalle/thepipe.png b/docs/assets/images/llm-content/dalle/thepipe.png similarity index 100% rename from docs/assets/images/dalle/thepipe.png rename to docs/assets/images/llm-content/dalle/thepipe.png diff --git a/docs/assets/images/llm-content/dalle/thepipe_v2.png b/docs/assets/images/llm-content/dalle/thepipe_v2.png new file mode 100644 index 00000000..e0e8ed99 Binary files /dev/null and b/docs/assets/images/llm-content/dalle/thepipe_v2.png differ diff --git a/docs/assets/images/llm-features.png b/docs/assets/images/llm-content/features-table.png similarity index 100% rename from docs/assets/images/llm-features.png rename to docs/assets/images/llm-content/features-table.png diff --git a/docs/assets/images/llm-summaries.png b/docs/assets/images/llm-content/file-summaries.png similarity index 100% rename from docs/assets/images/llm-summaries.png rename to docs/assets/images/llm-content/file-summaries.png diff --git a/docs/assets/images/overview.png b/docs/assets/images/llm-content/overview.png similarity index 100% rename from docs/assets/images/overview.png rename to docs/assets/images/llm-content/overview.png diff --git a/docs/assets/images/file-summaries.png b/docs/assets/images/project-structure/file-summaries.png similarity index 100% rename from docs/assets/images/file-summaries.png rename to docs/assets/images/project-structure/file-summaries.png diff --git a/docs/assets/images/project-structure.png b/docs/assets/images/project-structure/tree.png similarity index 100% rename from docs/assets/images/project-structure.png rename to docs/assets/images/project-structure/tree.png diff --git a/docs/assets/images/quickstart.png b/docs/assets/images/quickstart.png deleted file mode 100644 index bdbac0bd..00000000 Binary files a/docs/assets/images/quickstart.png and /dev/null differ diff --git a/docs/assets/images/readme-ai-logo.png b/docs/assets/images/readme-ai-logo-gradient.png similarity index 100% rename from docs/assets/images/readme-ai-logo.png rename to docs/assets/images/readme-ai-logo-gradient.png diff --git a/docs/assets/images/readme.png b/docs/assets/images/readme-logo-purple.png similarity index 100% rename from docs/assets/images/readme.png rename to docs/assets/images/readme-logo-purple.png diff --git a/docs/assets/images/toc-quick-links.png b/docs/assets/images/table-of-contents/toc-quick-links.png similarity index 100% rename from docs/assets/images/toc-quick-links.png rename to docs/assets/images/table-of-contents/toc-quick-links.png diff --git a/docs/cli.md b/docs/cli.md deleted file mode 100644 index f3d5950b..00000000 --- a/docs/cli.md +++ /dev/null @@ -1,129 +0,0 @@ -# CLI Reference - -README-AI offers a wide range of configuration options to customize your README generation. This page provides a comprehensive list of all available options with detailed explanations. - -## CLI Options - -| Option | Description | Default | Impact | -|--------|-------------|---------|--------| -| `--align` | Text alignment in header | `center` | Affects the visual layout of the README header | -| `--api` | LLM API service | `offline` | Determines which AI service is used for content generation | -| `--badge-color` | Badge color (name or hex) | `0080ff` | Customizes the color of status badges in the README | -| `--badge-style` | Badge icon style type | `flat` | Changes the visual style of status badges | -| `--base-url` | Base URL for the repository | `v1/chat/completions` | Used for API requests to the chosen LLM service | -| `--context-window` | Max context window of LLM API | `3999` | Limits the amount of context provided to the LLM | -| `--emojis` | Add emojis to README sections | `False` | Adds visual flair to section headers | -| `--header-style` | Header template style | `classic` | Changes the overall look of the README header | -| `--image` | Project logo image | `blue` | Sets the main image displayed in the README | -| `--model` | Specific LLM model to use | `gpt-3.5-turbo` | Chooses the AI model for content generation | -| `--output` | Output filename | `readme-ai.md` | Specifies the name of the generated README file | -| `--rate-limit` | Max API requests per minute | `5` | Prevents exceeding API rate limits | -| `--repository` | Repository URL or local path | `None` | Specifies the project to analyze | -| `--temperature` | Creativity level for generation | `0.9` | Controls the randomness of the AI's output | -| `--toc-style` | Table of contents style | `bullet` | Changes the format of the table of contents | -| `--top-p` | Top-p sampling probability | `0.9` | Fine-tunes the AI's output diversity | -| `--tree-depth` | Max depth of directory tree | `2` | Controls the detail level of the project structure | - -## CLI Usage Examples - -### Using OpenAI - -```sh -readmeai --api openai --model gpt-3.5-turbo --repository https://github.com/username/project \ -``` - -### Using Ollama - -```sh -ollama run llama3 -``` - -```sh -readmeai --api ollama --model llama3 --repository https://github.com/username/project \ -``` - -### Generate README with Google Gemini - -```sh -readmeai --repository https://github.com/username/project \ - --api gemini \ - --model gemini-1.5-flash -``` - -### Generate README in Offline Mode - -```sh -readmeai --repository https://github.com/username/project \ - --api offline -``` - -### Customize Badge Style and Color - -```sh -readmeai --repository https://github.com/username/project \ - --api openai \ - --badge-style flat-square \ - --badge-color FF5733 -``` - -### Use Custom Project Logo - -```sh -readmeai --repository https://github.com/username/project \ - --api openai \ - --image custom -``` - -When prompted, enter the path or URL to your custom logo image. - -### Generate README with Emojis - -```sh -readmeai --repository https://github.com/username/project \ - --api openai \ - --emojis -``` - -These examples demonstrate basic usage of readme-ai. Lets take a look at some more advanced configurations and options next. - -## Advanced Configurations - -The following examples demonstrate advanced configurations and options for generating a README using readme-ai. - -### Generate README with Custom OpenAI API Parameters - -```sh -readmeai --repository /path/to/project \ - --api openai \ - --model gpt-4-turbo - --context-window 9999 - --temperature 0.1 - --rate-limit 20 -``` - -### Generate README with Specific Directory Depth - -```sh -readmeai --repository /path/to/project \ - --api openai \ - --tree-depth 3 -``` - -### Generate README with LLM API Parameters - -```sh -readmeai --repository /path/to/project \ - --api openai \ - --model gpt-4-turbo - --context-window 4999 - --temperature 0.7 - --top-p 0.8 -``` - -### Generate README with Custom Table of Contents Style - -```sh -readmeai --repository /path/to/project \ - --api openai \ - --toc-style fold -``` diff --git a/docs/customization/badges.md b/docs/configuration/badges.md similarity index 100% rename from docs/customization/badges.md rename to docs/configuration/badges.md diff --git a/docs/configuration/cli_reference.md b/docs/configuration/cli_reference.md new file mode 100644 index 00000000..073ff0c2 --- /dev/null +++ b/docs/configuration/cli_reference.md @@ -0,0 +1,29 @@ +--- +title: Configuration +--- + +README-AI offers a wide range of configuration options to customize your README generation. This page provides a comprehensive list of all available options with detailed explanations. + +## CLI Options + +| Option | Description | Default | Impact | +|--------|-------------|---------|--------| +| `--align` | Text alignment in header | `center` | Affects the visual layout of the README header | +| `--api` | LLM API service | `offline` | Determines which AI service is used for content generation | +| `--badge-color` | Badge color (name or hex) | `0080ff` | Customizes the color of status badges in the README | +| `--badge-style` | Badge icon style type | `flat` | Changes the visual style of status badges | +| `--base-url` | Base URL for the repository | `v1/chat/completions` | Used for API requests to the chosen LLM service | +| `--context-window` | Max context window of LLM API | `3999` | Limits the amount of context provided to the LLM | +| `--emojis` | Add emojis to README sections | `False` | Adds visual flair to section headers | +| `--header-style` | Header template style | `classic` | Changes the overall look of the README header | +| `--image` | Project logo image | `blue` | Sets the main image displayed in the README | +| `--model` | Specific LLM model to use | `gpt-3.5-turbo` | Chooses the AI model for content generation | +| `--output` | Output filename | `readme-ai.md` | Specifies the name of the generated README file | +| `--rate-limit` | Max API requests per minute | `5` | Prevents exceeding API rate limits | +| `--repository` | Repository URL or local path | `None` | Specifies the project to analyze | +| `--temperature` | Creativity level for generation | `0.9` | Controls the randomness of the AI's output | +| `--toc-style` | Table of contents style | `bullet` | Changes the format of the table of contents | +| `--top-p` | Top-p sampling probability | `0.9` | Fine-tunes the AI's output diversity | +| `--tree-depth` | Max depth of directory tree | `2` | Controls the detail level of the project structure | + +Some options have a significant impact on the generated README's appearance and content. Experiment with different settings to find the best configuration for your project. diff --git a/docs/customization/emojis.md b/docs/configuration/emojis.md similarity index 100% rename from docs/customization/emojis.md rename to docs/configuration/emojis.md diff --git a/docs/customization/header.md b/docs/configuration/header.md similarity index 100% rename from docs/customization/header.md rename to docs/configuration/header.md diff --git a/docs/customization/project_logo.md b/docs/configuration/project_logo.md similarity index 76% rename from docs/customization/project_logo.md rename to docs/configuration/project_logo.md index f50773a2..ae284a64 100644 --- a/docs/customization/project_logo.md +++ b/docs/configuration/project_logo.md @@ -80,10 +80,10 @@ Here's an example of how a generated README header might look with a logo: !!! example - === "Generated README Header with Logo" + === "Example 1"- +
@@ -91,15 +91,30 @@ Here's an example of how a generated README header might look with a logo:
-## LLM-Generated Logo Example + === "Example 2" -Here's an example of a logo generated using the OpenAI DALL-E model: ++ +
++ Your project's tagline or brief description +
+ + === "Example 3" + ++ +
++ Your project's tagline or brief description +
+ - + +:warning: The quality and relevance of LLM-generated logos can vary. It's a good idea to review and potentially edit the generated logo to ensure it meets your project's needs. ## Tips for Using Project Logos @@ -109,6 +124,3 @@ Here's an example of a logo generated using the OpenAI DALL-E model: - When using LLM-generated logos, you may want to generate several options to choose from. - Consider how the logo will look alongside your project's badges and other README content. - If your project is part of a larger organization or ecosystem, consider using a logo that aligns with that branding. - -!!! info "Note on LLM-Generated Logos" -The quality and relevance of LLM-generated logos can vary. It's a good idea to review and potentially edit the generated logo to ensure it meets your project's needs. diff --git a/docs/customization/table_of_contents.md b/docs/configuration/table_of_contents.md similarity index 100% rename from docs/customization/table_of_contents.md rename to docs/configuration/table_of_contents.md diff --git a/docs/css/extra.css b/docs/css/extra.css index 136ac133..fe79b571 100644 --- a/docs/css/extra.css +++ b/docs/css/extra.css @@ -33,7 +33,7 @@ body { font-feature-settings: "kern", "liga", "clig", "calt"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - font-family: 'Roboto', sans-serif; + font-family: 'Arial', sans-serif; } .md-grid { diff --git a/docs/examples/use_cases.md b/docs/examples/use_cases.md index e69de29b..81b607fb 100644 --- a/docs/examples/use_cases.md +++ b/docs/examples/use_cases.md @@ -0,0 +1,104 @@ + diff --git a/docs/guides/markdown_best_practices.md b/docs/guides/markdown_best_practices.md index e7141691..ed5d9477 100644 --- a/docs/guides/markdown_best_practices.md +++ b/docs/guides/markdown_best_practices.md @@ -225,6 +225,12 @@ $$ ## Images +### [Simple Icons](https://simpleicons.org/) + +# Docker + +# Docker + ### Centered Imagesdiff --git a/docs/index.md b/docs/index.md index 3db37824..20905bdf 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,11 +2,10 @@ title: README-AI --- -
- - - -
- -Installing readme-ai using `pip` or `pipx` makes it easy to get started with the tool, allowing you to directly use the CLI in your local environment. This section details how to install readme-ai using `pip`, `pipx`, and additional methods like building from source or using Docker. - -???+ note "Python Version Requirement" - Ensure you have Python version 3.9 or higher before installing readme-ai. For the latest Python installation guide, visit the [official Python documentation](https://www.python.org/downloads/). - -## Installation with Pip - -Install readme-ai from PyPI with a single command: - -```sh -pip install readmeai -``` - -Pip is the standard package manager for Python, and this command will download and install the latest version of readme-ai from the Python Package Index (PyPI). - -## Installation with Pipx - -Install readme-ai in an isolated environment using `pipx` to avoid conflicts between package dependencies: - -```sh -pipx install readmeai -``` - -???+ info "Why Pipx?" - Using `pipx` allows you to install and run Python command-line applications in isolated environments, which helps prevent dependency conflicts with other Python projects. - -## Running the CLI - -Run readme-ai directly after installation: - -```sh -readmeai --api openai --repository https://github.com/eli64s/readme-ai -``` - -Explanation of common arguments: - -| Argument | Function | -| ----------- | ------------------------------------ | -| `--api` | Specifies the LLM API service to use (e.g., OpenAI, Ollama, Anthropic). | -| `--repository` | Specifies the GitHub repository or local directory path to analyze. | - - -## Building from Source - -To build readme-ai from the source code, follow these steps: - -1. Clone the repository from GitHub: - -```sh -git clone https://github.com/eli64s/readme-ai -``` - -2. Navigate to the `readme-ai` directory: - -```sh -cd readme-ai -``` - -3. Install dependencies: - -```sh -pip install . -``` - -Alternatively, you can use `poetry` to build the project: - -```sh -poetry install -``` - -## Optional Dependencies - -To use additional LLM providers like **Anthropic** or **Google Gemini**, install the optional dependencies: - -Anthropic: - -```sh -pip install readmeai[anthropic] -``` - -Google Gemini: - -```sh -pip install readmeai[gemini] -``` - -## Usage - -### Setting Environment Variables - -**OpenAI API Key** - -Ensure you have generated an OpenAI API key and set it as an environment variable: - -```sh -export OPENAI_API_KEY=+ +
+Unleash Efficiency, Embrace Innovation!
++ + + + +
+Built with the tools and technologies:
++ + + + + + +
+THEPIPE/
+++
++ +requirements.txt +- Facilitates project dependencies management by specifying required packages and versions in the 'requirements.txt' file +
- This ensures seamless integration of essential libraries like 'llama-index', 'aiohttp', 'scikit-learn', and others, maintaining a stable and efficient codebase architecture.+ +setup.py +- Define project dependencies and configurations using setup.py for 'thepipe_api', an AI-native extractor powered by multimodal LLMs +
- Include author details, description, version, and entry points for console scripts
- Utilize requirements.txt and local.txt for install and extra dependencies, respectively.+ +local.txt +Facilitates seamless integration of essential libraries for document processing and multimedia manipulation within the project architecture. +
+++
++ +scraper.py +- The `scraper.py` file in the `thepipe` directory is responsible for handling web scraping tasks, extracting data from various sources, and processing it for further analysis within the codebase architecture +
- It utilizes concurrent processing, image manipulation, and chunking algorithms to efficiently gather and organize information
- Additionally, it interacts with external APIs and services to enhance the functionality of the project.+ +chunker.py +- Chunking functions in the code file segment text data into meaningful sections based on document structure, pages, sections, semantics, or keywords +
- These functions organize and group text chunks to enhance readability and analysis, supporting various document processing tasks within the codebase architecture.+ +core.py +- Enables compression of project files into a context prompt by processing text and images, generating tokens, and saving outputs +
- Parses arguments for source files, regex patterns, AI text extraction, and verbosity
- Supports local execution and facilitates efficient project management.+ +extract.py +- The code file `extract.py` facilitates data extraction from URLs and files using AI models, providing structured JSON output +
- It handles multiple extraction scenarios, error handling, and token calculation
- The file integrates with external APIs and supports various extraction configurations, contributing to the project's data processing capabilities.
++++workflows
++++
++ +python-publish.yml +Automates Python package publishing on GitHub releases by building and uploading the package to PyPI. ++ +python-ci.yml +- Automates Python testing and code coverage with Playwright setup, Tesseract OCR installation, and Codecov report upload +
- Integrates flake8 linting, unittest, and coverage generation for the project.
+ +
+Code consistency, creativity, and motivation unleashed!
++ + + + +
+Built with the tools and technologies:
++ + + + + +
+GITHUB-README-QUOTES/
+++
++ +pnpm-lock.yaml +- The code file `pnpm-lock.yaml` serves as a lockfile for managing dependencies within the project architecture +
- It specifies the versions of various dependencies such as '@vercel/node', axios, prettier, typescript, and vercel, ensuring consistency and reproducibility in the project's environment
- This file plays a crucial role in maintaining a stable and predictable development environment by pinning down specific versions of dependencies required for the project.+ +vercel.json +- Defines memory allocation and maximum duration for API functions, and sets up a redirect to the project's GitHub page +
- This configuration file plays a crucial role in managing serverless functions and routing within the project structure.+ +package.json +- Implements a script that formats code using Prettier across TypeScript, JSON, and Markdown files in the project +
- The script ensures consistent code styling and readability, enhancing the overall maintainability and collaboration within the codebase.+ +tsconfig.json +Enables strict type-checking and interoperability settings across the project, ensuring consistent code quality and compatibility. +
+++
++ +FUNDING.yml +Facilitates financial support for the project by defining supported funding platforms. +
+++
++ +index.ts +- Generates SVG images with quotes based on query parameters, utilizing fetcher and renderer functions +
- Allows customization of card type, theme, quote content, author, and border
- Supports caching and delivers image responses via Vercel.
++++renderer
++++
++ +render-svg.ts +- Defines a function to render SVG cards based on input data, type, theme, and border settings +
- Renders vertical or horizontal cards with specified colors and themes, falling back to defaults when necessary
- This function enhances the project's renderer capabilities, supporting various card types and themes for visual representation.+ +constants.ts +- Define and export a constant storing SVG font data for the "Poppins" font family in the renderer component +
- This file manages the configuration for displaying text in the specified font style and weight.++type
++++
++ +horizontal-card.ts +- Generates a horizontal card displaying a quote with author, customizable themes, and borders based on user-defined props +
- Handles light and dark mode themes, adapting to system settings or custom color schemes.+ +vertical-card.ts +Generate vertical card SVG markup based on quote, author, color, and border props using Poppins font and customizable themes. +++theme
++++
++ +awesome-card.ts +- Define and export interface, themes, and render function for theme customization in the renderer layer +
- Theme data includes quote, author, background, and symbol properties
- The renderTheme function validates and returns a specified theme or default light theme with dark mode support if not found.++fetcher
++++
++ +fetch-quotes.ts +- Enable fetching and parsing of random programming quotes from an external API +
- Retrieves quotes data, selects a random quote, and parses it before returning the formatted quote along with its author
- This functionality aids in injecting dynamic and motivational content into the application to inspire users.