-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ENG-1322] I Reviewed 1,000s of Opinions on GitHub Copilot (Part 2) (#…
…308) * start blog post * add markdown class to interactive tutorial * hover is primary color in navbar * styling polish * improve styling for blogpost author sectiom * styling polish * fix typo * save * save * style blog post sidebar * add border bottom to active navbar link * save scroll position of sidebar on navigation * consistent bold font for blog sidebar * polish border radius * improve bio * TODO: add images * swizzle DocsSidebar * disable breadcrumbs * remove styling for first h1 child * remove thin-scrollbar class * swizzle breadcrumbs * style breadcrumbs * style table of contents * round images * "Docs" product * style navbar sidebar * reduce box-shadow on codehike code * add all images * polish --------- Co-authored-by: konfig-bot <[email protected]>
- Loading branch information
Showing
110 changed files
with
1,042 additions
and
28 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
386 changes: 386 additions & 0 deletions
386
generator/konfig-docs/blog/2023/10/23-github-copilot.mdx
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file added
BIN
+63.4 KB
...docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/90-percent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+44 KB
...fig-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/clippy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+219 KB
...ig-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/decades.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+281 KB
...g-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/disaster.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+243 KB
...docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/fall-short.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+144 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/far-worse.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+105 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/incorrect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+94.1 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/job-worry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+75.5 KB
...nfig-docs/blog/2023/10/github-copilot-assets/slides/after/bad-results/lying.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+135 KB
...ocs/blog/2023/10/github-copilot-assets/slides/after/bad-results/months-bugs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+111 KB
...ocs/blog/2023/10/github-copilot-assets/slides/after/better-software/amazing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+150 KB
...0/github-copilot-assets/slides/after/better-software/better-code-docs-tests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+105 KB
...log/2023/10/github-copilot-assets/slides/after/better-software/higher-level.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.1 KB
...3/10/github-copilot-assets/slides/after/better-software/really-super-powers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+70.3 KB
...blog/2023/10/github-copilot-assets/slides/after/better-software/super-power.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+229 KB
...og/2023/10/github-copilot-assets/slides/after/better-software/test-coverage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+74.9 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/calculator/calculator.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+113 KB
...cs/blog/2023/10/github-copilot-assets/slides/after/calculator/cheating-math.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+76.3 KB
...docs/blog/2023/10/github-copilot-assets/slides/after/calculator/corner-drag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+128 KB
...fig-docs/blog/2023/10/github-copilot-assets/slides/after/calculator/interns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+218 KB
...blog/2023/10/github-copilot-assets/slides/after/calculator/not-equally-good.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+223 KB
...g-docs/blog/2023/10/github-copilot-assets/slides/after/calculator/pros-cons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+74.2 KB
...s/blog/2023/10/github-copilot-assets/slides/after/faster-software/10-20-pct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72.3 KB
...log/2023/10/github-copilot-assets/slides/after/faster-software/30-line-test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+341 KB
...log/2023/10/github-copilot-assets/slides/after/faster-software/boring-stuff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+190 KB
...2023/10/github-copilot-assets/slides/after/faster-software/hours-to-minutes.png
Oops, something went wrong.
Binary file added
BIN
+309 KB
...ocs/blog/2023/10/github-copilot-assets/slides/after/faster-software/mundane.png
Oops, something went wrong.
Binary file added
BIN
+248 KB
...log/2023/10/github-copilot-assets/slides/after/faster-software/near-perfect.png
Oops, something went wrong.
Binary file added
BIN
+130 KB
...docs/blog/2023/10/github-copilot-assets/slides/after/faster-software/tedium.png
Oops, something went wrong.
Binary file added
BIN
+100 KB
...og/2023/10/github-copilot-assets/slides/after/faster-software/twice-as-fast.png
Oops, something went wrong.
Binary file added
BIN
+122 KB
...cs/blog/2023/10/github-copilot-assets/slides/after/faster-software/worth-it.png
Oops, something went wrong.
Binary file added
BIN
+141 KB
...r/konfig-docs/blog/2023/10/github-copilot-assets/slides/after/funny-angular.png
Oops, something went wrong.
Binary file added
BIN
+247 KB
...ator/konfig-docs/blog/2023/10/github-copilot-assets/slides/after/funny-chat.png
Oops, something went wrong.
Binary file added
BIN
+646 KB
...fig-docs/blog/2023/10/github-copilot-assets/slides/after/good-news/100m-arr.png
Oops, something went wrong.
Binary file added
BIN
+519 KB
...onfig-docs/blog/2023/10/github-copilot-assets/slides/after/good-news/codium.png
Oops, something went wrong.
Binary file added
BIN
+127 KB
...onfig-docs/blog/2023/10/github-copilot-assets/slides/after/good-news/cursor.png
Oops, something went wrong.
Binary file added
BIN
+215 KB
...konfig-docs/blog/2023/10/github-copilot-assets/slides/after/good-news/tabby.png
Oops, something went wrong.
Binary file added
BIN
+366 KB
...nfig-docs/blog/2023/10/github-copilot-assets/slides/after/good-news/tabnine.png
Oops, something went wrong.
Binary file added
BIN
+456 KB
generator/konfig-docs/blog/2023/10/github-copilot-assets/slides/after/lawsuit.png
Oops, something went wrong.
Binary file added
BIN
+105 KB
...23/10/github-copilot-assets/slides/after/more-problems/caused-more-problems.png
Oops, something went wrong.
Binary file added
BIN
+214 KB
...g-docs/blog/2023/10/github-copilot-assets/slides/after/more-problems/hassle.png
Oops, something went wrong.
Binary file added
BIN
+182 KB
...cs/blog/2023/10/github-copilot-assets/slides/after/more-problems/interferes.png
Oops, something went wrong.
Binary file added
BIN
+109 KB
...cs/blog/2023/10/github-copilot-assets/slides/after/more-problems/junior-dev.png
Oops, something went wrong.
Binary file added
BIN
+96.3 KB
...-docs/blog/2023/10/github-copilot-assets/slides/after/more-problems/screwed.png
Oops, something went wrong.
Binary file added
BIN
+386 KB
...s/blog/2023/10/github-copilot-assets/slides/after/more-problems/subtle-bugs.png
Oops, something went wrong.
Binary file added
BIN
+69.8 KB
...ocs/blog/2023/10/github-copilot-assets/slides/before/bad-results/90-percent.png
Oops, something went wrong.
Binary file added
BIN
+53 KB
...ig-docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/clippy.png
Oops, something went wrong.
Binary file added
BIN
+224 KB
...g-docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/decades.png
Oops, something went wrong.
Binary file added
BIN
+269 KB
...-docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/disaster.png
Oops, something went wrong.
Binary file added
BIN
+235 KB
...ocs/blog/2023/10/github-copilot-assets/slides/before/bad-results/fall-short.png
Oops, something went wrong.
Binary file added
BIN
+144 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/far-worse.png
Oops, something went wrong.
Binary file added
BIN
+112 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/incorrect.png
Oops, something went wrong.
Binary file added
BIN
+106 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/job-worry.png
Oops, something went wrong.
Binary file added
BIN
+82.4 KB
...fig-docs/blog/2023/10/github-copilot-assets/slides/before/bad-results/lying.png
Oops, something went wrong.
Binary file added
BIN
+144 KB
...cs/blog/2023/10/github-copilot-assets/slides/before/bad-results/months-bugs.png
Oops, something went wrong.
Binary file added
BIN
+123 KB
...cs/blog/2023/10/github-copilot-assets/slides/before/better-software/amazing.png
Oops, something went wrong.
Binary file added
BIN
+150 KB
.../github-copilot-assets/slides/before/better-software/better-code-docs-tests.png
Oops, something went wrong.
Binary file added
BIN
+111 KB
...og/2023/10/github-copilot-assets/slides/before/better-software/higher-level.png
Oops, something went wrong.
Binary file added
BIN
+82.4 KB
.../10/github-copilot-assets/slides/before/better-software/really-super-powers.png
Oops, something went wrong.
Binary file added
BIN
+80 KB
...log/2023/10/github-copilot-assets/slides/before/better-software/super-power.png
Oops, something went wrong.
Binary file added
BIN
+222 KB
...g/2023/10/github-copilot-assets/slides/before/better-software/test-coverage.png
Oops, something went wrong.
Binary file added
BIN
+79.1 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/calculator/calculator.png
Oops, something went wrong.
Binary file added
BIN
+121 KB
...s/blog/2023/10/github-copilot-assets/slides/before/calculator/cheating-math.png
Oops, something went wrong.
Binary file added
BIN
+89.7 KB
...ocs/blog/2023/10/github-copilot-assets/slides/before/calculator/corner-drag.png
Oops, something went wrong.
Binary file added
BIN
+134 KB
...ig-docs/blog/2023/10/github-copilot-assets/slides/before/calculator/interns.png
Oops, something went wrong.
Binary file added
BIN
+213 KB
...log/2023/10/github-copilot-assets/slides/before/calculator/not-equally-good.png
Oops, something went wrong.
Binary file added
BIN
+210 KB
...-docs/blog/2023/10/github-copilot-assets/slides/before/calculator/pros-cons.png
Oops, something went wrong.
Binary file added
BIN
+77.3 KB
.../blog/2023/10/github-copilot-assets/slides/before/faster-software/10-20-pct.png
Oops, something went wrong.
Binary file added
BIN
+79 KB
...og/2023/10/github-copilot-assets/slides/before/faster-software/30-line-test.png
Oops, something went wrong.
Binary file added
BIN
+358 KB
...og/2023/10/github-copilot-assets/slides/before/faster-software/boring-stuff.png
Oops, something went wrong.
Binary file added
BIN
+183 KB
...023/10/github-copilot-assets/slides/before/faster-software/hours-to-minutes.png
Oops, something went wrong.
Binary file added
BIN
+306 KB
...cs/blog/2023/10/github-copilot-assets/slides/before/faster-software/mundane.png
Oops, something went wrong.
Binary file added
BIN
+238 KB
...og/2023/10/github-copilot-assets/slides/before/faster-software/near-perfect.png
Oops, something went wrong.
Binary file added
BIN
+133 KB
...ocs/blog/2023/10/github-copilot-assets/slides/before/faster-software/tedium.png
Oops, something went wrong.
Binary file added
BIN
+105 KB
...g/2023/10/github-copilot-assets/slides/before/faster-software/twice-as-fast.png
Oops, something went wrong.
Binary file added
BIN
+124 KB
...s/blog/2023/10/github-copilot-assets/slides/before/faster-software/worth-it.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
.../konfig-docs/blog/2023/10/github-copilot-assets/slides/before/funny-angular.png
Oops, something went wrong.
Binary file added
BIN
+237 KB
...tor/konfig-docs/blog/2023/10/github-copilot-assets/slides/before/funny-chat.png
Oops, something went wrong.
Binary file added
BIN
+676 KB
...ig-docs/blog/2023/10/github-copilot-assets/slides/before/good-news/100m-arr.png
Oops, something went wrong.
Binary file added
BIN
+569 KB
...nfig-docs/blog/2023/10/github-copilot-assets/slides/before/good-news/codium.png
Oops, something went wrong.
Binary file added
BIN
+142 KB
...nfig-docs/blog/2023/10/github-copilot-assets/slides/before/good-news/cursor.png
Oops, something went wrong.
Binary file added
BIN
+228 KB
...onfig-docs/blog/2023/10/github-copilot-assets/slides/before/good-news/tabby.png
Oops, something went wrong.
Binary file added
BIN
+390 KB
...fig-docs/blog/2023/10/github-copilot-assets/slides/before/good-news/tabnine.png
Oops, something went wrong.
Binary file added
BIN
+461 KB
generator/konfig-docs/blog/2023/10/github-copilot-assets/slides/before/lawsuit.png
Oops, something went wrong.
Binary file added
BIN
+110 KB
...3/10/github-copilot-assets/slides/before/more-problems/caused-more-problems.png
Oops, something went wrong.
Binary file added
BIN
+205 KB
...-docs/blog/2023/10/github-copilot-assets/slides/before/more-problems/hassle.png
Oops, something went wrong.
Binary file added
BIN
+185 KB
...s/blog/2023/10/github-copilot-assets/slides/before/more-problems/interferes.png
Oops, something went wrong.
Binary file added
BIN
+117 KB
...s/blog/2023/10/github-copilot-assets/slides/before/more-problems/junior-dev.png
Oops, something went wrong.
Binary file added
BIN
+104 KB
...docs/blog/2023/10/github-copilot-assets/slides/before/more-problems/screwed.png
Oops, something went wrong.
Binary file added
BIN
+332 KB
.../blog/2023/10/github-copilot-assets/slides/before/more-problems/subtle-bugs.png
Oops, something went wrong.
102 changes: 102 additions & 0 deletions
102
generator/konfig-docs/blog/2023/10/github-copilot-assets/slides/crop.py
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 @@ | ||
import os | ||
import cv2 | ||
import numpy as np | ||
from PIL import Image | ||
|
||
def find_content_bounds(image_path, buffer_pixels=5): | ||
# Load the image using OpenCV | ||
img = cv2.imread(image_path, cv2.IMREAD_GRAYSCALE) | ||
|
||
# Apply Canny edge detection | ||
edges = cv2.Canny(img, threshold1=100, threshold2=200) | ||
|
||
# Find contours of the content | ||
contours, _ = cv2.findContours(edges, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE) | ||
|
||
if contours: | ||
# Find the bounding rectangle of the largest contour | ||
largest_contour = max(contours, key=cv2.contourArea) | ||
x, y, w, h = cv2.boundingRect(largest_contour) | ||
|
||
# Add buffer to the detected content region | ||
x -= buffer_pixels | ||
y -= buffer_pixels | ||
w += 2 * buffer_pixels | ||
h += 2 * buffer_pixels | ||
|
||
# Ensure the new region does not go outside the image bounds | ||
x = max(0, x) | ||
y = max(0, y) | ||
w = min(img.shape[1], x + w) - x | ||
h = min(img.shape[0], y + h) - y | ||
|
||
return x, y, x + w, y + h | ||
|
||
return None | ||
|
||
def crop_and_pad_center(image_path, output_path, padding): | ||
# Find content bounds | ||
content_bounds = find_content_bounds(image_path) | ||
|
||
if content_bounds: | ||
# Open the image using Pillow | ||
img = Image.open(image_path) | ||
|
||
# Check if the image has an alpha channel (transparency) | ||
has_alpha = img.mode == 'RGBA' | ||
|
||
# Calculate cropping coordinates | ||
left, upper, right, lower = content_bounds | ||
|
||
# Crop the content | ||
cropped_img = img.crop((left, upper, right, lower)) | ||
|
||
# Calculate new dimensions for the padded image | ||
new_width = cropped_img.width + 2 * padding | ||
new_height = cropped_img.height + 2 * padding | ||
|
||
# Create a new image with padding | ||
padded_img = Image.new('RGBA' if has_alpha else 'RGB', (new_width, new_height), (255, 255, 255, 0) if has_alpha else (255, 255, 255)) | ||
padded_img.paste(cropped_img, (padding, padding)) | ||
|
||
# Save the result to the output path | ||
padded_img.save(output_path) | ||
else: | ||
print("No content detected in", image_path) | ||
|
||
|
||
def process_images_in_folder(input_folder, output_folder, padding): | ||
# Create the output folder if it doesn't exist | ||
if not os.path.exists(output_folder): | ||
os.makedirs(output_folder) | ||
|
||
# Recursively get a list of all relative file files in the input folder | ||
file_list = [] | ||
for root, directories, files in os.walk(input_folder): | ||
for filename in files: | ||
# Skip hidden files | ||
if not filename.startswith('.'): | ||
# Get relative path to file | ||
file_path = os.path.join(root, filename) | ||
relative_file_path = os.path.relpath(file_path, input_folder) | ||
file_list.append(relative_file_path) | ||
|
||
for relative_file_path in file_list: | ||
# Check if the file is an image (you can modify the extensions if needed) | ||
if relative_file_path.lower().endswith(('.png', '.jpg', '.jpeg', '.gif', '.bmp')): | ||
# Get the input and output image paths | ||
input_image_path = os.path.join(input_folder, relative_file_path) | ||
output_image_path = os.path.join(output_folder, relative_file_path) | ||
|
||
# create any missing directores for the output_image_path | ||
os.makedirs(os.path.dirname(output_image_path), exist_ok=True) | ||
|
||
# Crop and pad the image | ||
crop_and_pad_center(input_image_path, output_image_path, padding) | ||
|
||
if __name__ == "__main__": | ||
input_folder_path = "./before" # Specify the input folder path | ||
output_folder_path = "./after" # Specify the output folder path | ||
padding_amount = 20 # Specify the padding amount in pixels | ||
|
||
process_images_in_folder(input_folder_path, output_folder_path, padding_amount) |
59 changes: 59 additions & 0 deletions
59
generator/konfig-docs/blog/2023/10/github-copilot-assets/slides/generate-carousel.py
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,59 @@ | ||
import os | ||
import pyperclip | ||
from urllib.parse import urlparse | ||
|
||
def get_comment(file_path): | ||
"""Fetches the comment of a file on MacOS using AppleScript.""" | ||
script = f''' | ||
tell application "Finder" | ||
set theItem to (POSIX file "{file_path}") as alias | ||
get comment of theItem | ||
end tell | ||
''' | ||
return os.popen(f"osascript -e '{script}'").read().strip() | ||
|
||
def extract_source_website(url): | ||
"""Extracts the source website from a given URL.""" | ||
netloc = urlparse(url).netloc | ||
if "youtube" in netloc: | ||
return "YouTube" | ||
elif "news.ycombinator" in netloc: | ||
return "Hacker News" | ||
elif "twitter" in netloc: | ||
return "Twitter" | ||
elif "reddit" in netloc: | ||
return "Reddit" | ||
else: | ||
# Return the domain name as default if no other conditions match | ||
return netloc | ||
|
||
def generate_string(folder_path): | ||
output_str = "<Carousel.Wrapper>" | ||
for file_name in os.listdir(folder_path): | ||
if file_name.endswith('.png'): | ||
file_path = os.path.join(folder_path, file_name) | ||
|
||
comment = get_comment(file_path) | ||
source_website = extract_source_website(comment) | ||
|
||
file_name_without_ext = os.path.splitext(file_name)[0] | ||
folder_name = os.path.basename(os.path.normpath(folder_path)) # This gives 'bad-result' for './before/bad-result' | ||
|
||
slide = f""" | ||
<Carousel.Slide> | ||
<Figure caption={{<a href="{comment}">{source_website}</a>}}> | ||
![{file_name_without_ext}](./github-copilot-assets/slides/after/{folder_name}/{file_name}) | ||
</Figure> | ||
</Carousel.Slide>""" | ||
output_str += slide | ||
|
||
output_str += "\n</Carousel.Wrapper>" | ||
return output_str | ||
|
||
folder_path = input("Enter the path of the folder containing the images (e.g. ./before/bad-result): ") | ||
output = generate_string(folder_path) | ||
print(output) | ||
|
||
# Copy the output to the clipboard | ||
pyperclip.copy(output) | ||
print("The generated string has been copied to the clipboard!") |
Oops, something went wrong.